SAP OIRA_PROCESS_PREREQ_CHECK Function Module for Process Control - Execute prerequisite check









OIRA_PROCESS_PREREQ_CHECK is a standard oira process prereq check 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 prerequisite check 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 prereq check FM, simply by entering the name OIRA_PROCESS_PREREQ_CHECK 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_PREREQ_CHECK 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_PREREQ_CHECK'"Process Control - Execute prerequisite check
EXPORTING
* PI_APPL_LOG_WRITE_INSIDE = ' ' "

IMPORTING
PE_PREREQ_STATUS = "Process control status
PE_NO_STATUS_TABLE_UPD = "General flag

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
UNKNOWN_ERROR = 1 APPLICATION_LOG_NOT_SET_UP = 2 PREREQ_CHECK_ROUT_NOT_DEFINED = 3
.



IMPORTING Parameters details for OIRA_PROCESS_PREREQ_CHECK

PI_APPL_LOG_WRITE_INSIDE -

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for OIRA_PROCESS_PREREQ_CHECK

PE_PREREQ_STATUS - Process control status

Data type: OIRAPROCSTAT-STATUS
Optional: No
Call by Reference: No ( called with pass by value option)

PE_NO_STATUS_TABLE_UPD - General flag

Data type: FLAG
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for OIRA_PROCESS_PREREQ_CHECK

PC_PC_OBJ -

Data type: OIRA1_PC_REFOBJ
Optional: No
Call by Reference: Yes

PC_CR_OBJ -

Data type: OIRA1_CR_REFOBJ
Optional: Yes
Call by Reference: Yes

PC_CE_OBJ -

Data type: OIRA1_CE_REFOBJ
Optional: Yes
Call by Reference: Yes

PC_MM01_OBJ -

Data type: OIRA1_MM01_REFOBJ
Optional: Yes
Call by Reference: Yes

PC_MR01_OBJ -

Data type: OIRA1_MR01_REFOBJ
Optional: Yes
Call by Reference: Yes

PC_DR01_OBJ -

Data type: OIRA1_DR01_REFOBJ
Optional: Yes
Call by Reference: Yes

PC_PR01_OBJ -

Data type: OIRA1_PR01_REFOBJ
Optional: Yes
Call by Reference: Yes

PC_IS01_OBJ -

Data type: OIRA1_IS01_REFOBJ
Optional: Yes
Call by Reference: Yes

PC_CC01_OBJ -

Data type: OIRA1_CC01_REFOBJ
Optional: Yes
Call by Reference: Yes

PC_PRN1_OBJ -

Data type: OIRA1_PRN1_REFOBJ
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

UNKNOWN_ERROR -

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)

PREREQ_CHECK_ROUT_NOT_DEFINED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for OIRA_PROCESS_PREREQ_CHECK 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_unknown_error  TYPE OIRA1_PC_REFOBJ, "   
lv_pe_prereq_status  TYPE OIRAPROCSTAT-STATUS, "   
lv_pi_appl_log_write_inside  TYPE C, "   ' '
lv_pc_cr_obj  TYPE OIRA1_CR_REFOBJ, "   
lv_pc_ce_obj  TYPE OIRA1_CE_REFOBJ, "   
lv_pe_no_status_table_upd  TYPE FLAG, "   
lv_application_log_not_set_up  TYPE FLAG, "   
lv_pc_mm01_obj  TYPE OIRA1_MM01_REFOBJ, "   
lv_prereq_check_rout_not_defined  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_PREREQ_CHECK'  "Process Control - Execute prerequisite check
    EXPORTING
         PI_APPL_LOG_WRITE_INSIDE = lv_pi_appl_log_write_inside
    IMPORTING
         PE_PREREQ_STATUS = lv_pe_prereq_status
         PE_NO_STATUS_TABLE_UPD = lv_pe_no_status_table_upd
    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
        UNKNOWN_ERROR = 1
        APPLICATION_LOG_NOT_SET_UP = 2
        PREREQ_CHECK_ROUT_NOT_DEFINED = 3
. " OIRA_PROCESS_PREREQ_CHECK




ABAP code using 7.40 inline data declarations to call FM OIRA_PROCESS_PREREQ_CHECK

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.

 
 
"SELECT single STATUS FROM OIRAPROCSTAT INTO @DATA(ld_pe_prereq_status).
 
DATA(ld_pi_appl_log_write_inside) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!