SAP OIRA_PROCESS_STATUS_UPDATE Function Module for Process Control - Execute status update
OIRA_PROCESS_STATUS_UPDATE is a standard oira process status update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Process Control - Execute status update processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for oira process status update FM, simply by entering the name OIRA_PROCESS_STATUS_UPDATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIRA_APP01
Program Name: SAPLOIRA_APP01
Main Program: SAPLOIRA_APP01
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIRA_PROCESS_STATUS_UPDATE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'OIRA_PROCESS_STATUS_UPDATE'"Process Control - Execute status update.
EXPORTING
* PI_APPL_LOG_WRITE_INSIDE = ' ' "
PI_PROCESS_STATUS = "Process Control Status (IS-OIL SSR)
CHANGING
PC_PC_OBJ = "
* PC_CR_OBJ = "
* PC_CE_OBJ = "
* PC_MM01_OBJ = "
* PC_MR01_OBJ = "
* PC_DR01_OBJ = "
* PC_PR01_OBJ = "
* PC_IS01_OBJ = "
* PC_CC01_OBJ = "
* PC_PRN1_OBJ = "
EXCEPTIONS
STATUS_UPDATE_NOT_POSSIBLE = 1 APPLICATION_LOG_NOT_SET_UP = 2 UNKNOWN_ERROR = 3
IMPORTING Parameters details for OIRA_PROCESS_STATUS_UPDATE
PI_APPL_LOG_WRITE_INSIDE -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_PROCESS_STATUS - Process Control Status (IS-OIL SSR)
Data type: OIRAPROCSTAT-STATUSOptional: No
Call by Reference: Yes
CHANGING Parameters details for OIRA_PROCESS_STATUS_UPDATE
PC_PC_OBJ -
Data type: OIRA1_PC_REFOBJOptional: No
Call by Reference: Yes
PC_CR_OBJ -
Data type: OIRA1_CR_REFOBJOptional: Yes
Call by Reference: Yes
PC_CE_OBJ -
Data type: OIRA1_CE_REFOBJOptional: Yes
Call by Reference: Yes
PC_MM01_OBJ -
Data type: OIRA1_MM01_REFOBJOptional: Yes
Call by Reference: Yes
PC_MR01_OBJ -
Data type: OIRA1_MR01_REFOBJOptional: Yes
Call by Reference: Yes
PC_DR01_OBJ -
Data type: OIRA1_DR01_REFOBJOptional: Yes
Call by Reference: Yes
PC_PR01_OBJ -
Data type: OIRA1_PR01_REFOBJOptional: Yes
Call by Reference: Yes
PC_IS01_OBJ -
Data type: OIRA1_IS01_REFOBJOptional: Yes
Call by Reference: Yes
PC_CC01_OBJ -
Data type: OIRA1_CC01_REFOBJOptional: Yes
Call by Reference: Yes
PC_PRN1_OBJ -
Data type: OIRA1_PRN1_REFOBJOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
STATUS_UPDATE_NOT_POSSIBLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
APPLICATION_LOG_NOT_SET_UP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNKNOWN_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIRA_PROCESS_STATUS_UPDATE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_pc_pc_obj | TYPE OIRA1_PC_REFOBJ, " | |||
| lv_pi_appl_log_write_inside | TYPE C, " ' ' | |||
| lv_status_update_not_possible | TYPE C, " | |||
| lv_pc_cr_obj | TYPE OIRA1_CR_REFOBJ, " | |||
| lv_pc_ce_obj | TYPE OIRA1_CE_REFOBJ, " | |||
| lv_pi_process_status | TYPE OIRAPROCSTAT-STATUS, " | |||
| lv_application_log_not_set_up | TYPE OIRAPROCSTAT, " | |||
| lv_pc_mm01_obj | TYPE OIRA1_MM01_REFOBJ, " | |||
| lv_unknown_error | TYPE OIRA1_MM01_REFOBJ, " | |||
| lv_pc_mr01_obj | TYPE OIRA1_MR01_REFOBJ, " | |||
| lv_pc_dr01_obj | TYPE OIRA1_DR01_REFOBJ, " | |||
| lv_pc_pr01_obj | TYPE OIRA1_PR01_REFOBJ, " | |||
| lv_pc_is01_obj | TYPE OIRA1_IS01_REFOBJ, " | |||
| lv_pc_cc01_obj | TYPE OIRA1_CC01_REFOBJ, " | |||
| lv_pc_prn1_obj | TYPE OIRA1_PRN1_REFOBJ. " |
|   CALL FUNCTION 'OIRA_PROCESS_STATUS_UPDATE' "Process Control - Execute status update |
| EXPORTING | ||
| PI_APPL_LOG_WRITE_INSIDE | = lv_pi_appl_log_write_inside | |
| PI_PROCESS_STATUS | = lv_pi_process_status | |
| CHANGING | ||
| PC_PC_OBJ | = lv_pc_pc_obj | |
| PC_CR_OBJ | = lv_pc_cr_obj | |
| PC_CE_OBJ | = lv_pc_ce_obj | |
| PC_MM01_OBJ | = lv_pc_mm01_obj | |
| PC_MR01_OBJ | = lv_pc_mr01_obj | |
| PC_DR01_OBJ | = lv_pc_dr01_obj | |
| PC_PR01_OBJ | = lv_pc_pr01_obj | |
| PC_IS01_OBJ | = lv_pc_is01_obj | |
| PC_CC01_OBJ | = lv_pc_cc01_obj | |
| PC_PRN1_OBJ | = lv_pc_prn1_obj | |
| EXCEPTIONS | ||
| STATUS_UPDATE_NOT_POSSIBLE = 1 | ||
| APPLICATION_LOG_NOT_SET_UP = 2 | ||
| UNKNOWN_ERROR = 3 | ||
| . " OIRA_PROCESS_STATUS_UPDATE | ||
ABAP code using 7.40 inline data declarations to call FM OIRA_PROCESS_STATUS_UPDATE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_pi_appl_log_write_inside) | = ' '. | |||
| "SELECT single STATUS FROM OIRAPROCSTAT INTO @DATA(ld_pi_process_status). | ||||
Search for further information about these or an SAP related objects