SAP OIRC_DRH_EXEC_PC Function Module for SSR Stocks - Execute process control
OIRC_DRH_EXEC_PC is a standard oirc drh exec pc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SSR Stocks - Execute process control 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 oirc drh exec pc FM, simply by entering the name OIRC_DRH_EXEC_PC into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIRC_APP_STOCKS
Program Name: SAPLOIRC_APP_STOCKS
Main Program: SAPLOIRC_APP_STOCKS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIRC_DRH_EXEC_PC 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 'OIRC_DRH_EXEC_PC'"SSR Stocks - Execute process control.
EXPORTING
I_PROC = "Process ID
I_RNBT = "Retail network business type
* I_CE_PARAMETERS = "Customer Enhancements Parameter structure (IS-OIL SSR)
TABLES
T_DRUPLD = "SSR Stocks - Dip readings upload structure
* T_CE_TABLE8 = "Customer enhancement table structure (IS-OIL SSR)
* T_CE_TABLE9 = "Customer enhancement table structure (IS-OIL SSR)
* T_CE_TABLE10 = "Customer enhancement table structure (IS-OIL SSR)
* T_DRREJ_DEL = "SSR Stocks - Dip readings rejected records
* T_CE_TABLE1 = "Customer enhancement table structure (IS-OIL SSR)
* T_CE_TABLE2 = "Customer enhancement table structure (IS-OIL SSR)
* T_CE_TABLE3 = "Customer enhancement table structure (IS-OIL SSR)
* T_CE_TABLE4 = "Customer enhancement table structure (IS-OIL SSR)
* T_CE_TABLE5 = "Customer enhancement table structure (IS-OIL SSR)
* T_CE_TABLE6 = "Customer enhancement table structure (IS-OIL SSR)
* T_CE_TABLE7 = "Customer enhancement table structure (IS-OIL SSR)
EXCEPTIONS
PROCESS_NOT_EXIST = 1 ROUTINE_NOT_FOUND = 2 BT_MISSMATCH = 3 PROCESS_CONTROL_ERROR = 4 RECORD_PROCESS_ERROR = 5 MAIN_PROCESS_NOT_FOUND = 6 UNKNOWN_ERROR = 7
IMPORTING Parameters details for OIRC_DRH_EXEC_PC
I_PROC - Process ID
Data type: OIRA_PROCOptional: No
Call by Reference: Yes
I_RNBT - Retail network business type
Data type: OIRA_RNBTOptional: No
Call by Reference: Yes
I_CE_PARAMETERS - Customer Enhancements Parameter structure (IS-OIL SSR)
Data type: OIRA_CE_PARAMETERSOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for OIRC_DRH_EXEC_PC
T_DRUPLD - SSR Stocks - Dip readings upload structure
Data type: ROIRC_DRUPLDOptional: No
Call by Reference: Yes
T_CE_TABLE8 - Customer enhancement table structure (IS-OIL SSR)
Data type: OIRA_CE_TABLE_STRUCTURE8Optional: Yes
Call by Reference: Yes
T_CE_TABLE9 - Customer enhancement table structure (IS-OIL SSR)
Data type: OIRA_CE_TABLE_STRUCTURE9Optional: Yes
Call by Reference: Yes
T_CE_TABLE10 - Customer enhancement table structure (IS-OIL SSR)
Data type: OIRA_CE_TABLE_STRUCTURE10Optional: Yes
Call by Reference: Yes
T_DRREJ_DEL - SSR Stocks - Dip readings rejected records
Data type: OIRC_DRREJOptional: Yes
Call by Reference: Yes
T_CE_TABLE1 - Customer enhancement table structure (IS-OIL SSR)
Data type: OIRA_CE_TABLE_STRUCTURE1Optional: Yes
Call by Reference: Yes
T_CE_TABLE2 - Customer enhancement table structure (IS-OIL SSR)
Data type: OIRA_CE_TABLE_STRUCTURE2Optional: Yes
Call by Reference: Yes
T_CE_TABLE3 - Customer enhancement table structure (IS-OIL SSR)
Data type: OIRA_CE_TABLE_STRUCTURE3Optional: Yes
Call by Reference: Yes
T_CE_TABLE4 - Customer enhancement table structure (IS-OIL SSR)
Data type: OIRA_CE_TABLE_STRUCTURE4Optional: Yes
Call by Reference: Yes
T_CE_TABLE5 - Customer enhancement table structure (IS-OIL SSR)
Data type: OIRA_CE_TABLE_STRUCTURE5Optional: Yes
Call by Reference: Yes
T_CE_TABLE6 - Customer enhancement table structure (IS-OIL SSR)
Data type: OIRA_CE_TABLE_STRUCTURE6Optional: Yes
Call by Reference: Yes
T_CE_TABLE7 - Customer enhancement table structure (IS-OIL SSR)
Data type: OIRA_CE_TABLE_STRUCTURE7Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
PROCESS_NOT_EXIST - Process not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ROUTINE_NOT_FOUND - Prerequisites/execution routine not found.
Data type:Optional: No
Call by Reference: Yes
BT_MISSMATCH - Business type does not match process definition
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROCESS_CONTROL_ERROR - Internal process control error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RECORD_PROCESS_ERROR - Records not processed after loop end
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MAIN_PROCESS_NOT_FOUND - Main process not found
Data type:Optional: No
Call by Reference: Yes
UNKNOWN_ERROR - Other errors
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OIRC_DRH_EXEC_PC 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_i_proc | TYPE OIRA_PROC, " | |||
| lt_t_drupld | TYPE STANDARD TABLE OF ROIRC_DRUPLD, " | |||
| lv_process_not_exist | TYPE ROIRC_DRUPLD, " | |||
| lt_t_ce_table8 | TYPE STANDARD TABLE OF OIRA_CE_TABLE_STRUCTURE8, " | |||
| lt_t_ce_table9 | TYPE STANDARD TABLE OF OIRA_CE_TABLE_STRUCTURE9, " | |||
| lt_t_ce_table10 | TYPE STANDARD TABLE OF OIRA_CE_TABLE_STRUCTURE10, " | |||
| lv_i_rnbt | TYPE OIRA_RNBT, " | |||
| lt_t_drrej_del | TYPE STANDARD TABLE OF OIRC_DRREJ, " | |||
| lv_routine_not_found | TYPE OIRC_DRREJ, " | |||
| lt_t_ce_table1 | TYPE STANDARD TABLE OF OIRA_CE_TABLE_STRUCTURE1, " | |||
| lv_bt_missmatch | TYPE OIRA_CE_TABLE_STRUCTURE1, " | |||
| lv_i_ce_parameters | TYPE OIRA_CE_PARAMETERS, " | |||
| lt_t_ce_table2 | TYPE STANDARD TABLE OF OIRA_CE_TABLE_STRUCTURE2, " | |||
| lv_process_control_error | TYPE OIRA_CE_TABLE_STRUCTURE2, " | |||
| lt_t_ce_table3 | TYPE STANDARD TABLE OF OIRA_CE_TABLE_STRUCTURE3, " | |||
| lv_record_process_error | TYPE OIRA_CE_TABLE_STRUCTURE3, " | |||
| lt_t_ce_table4 | TYPE STANDARD TABLE OF OIRA_CE_TABLE_STRUCTURE4, " | |||
| lv_main_process_not_found | TYPE OIRA_CE_TABLE_STRUCTURE4, " | |||
| lt_t_ce_table5 | TYPE STANDARD TABLE OF OIRA_CE_TABLE_STRUCTURE5, " | |||
| lv_unknown_error | TYPE OIRA_CE_TABLE_STRUCTURE5, " | |||
| lt_t_ce_table6 | TYPE STANDARD TABLE OF OIRA_CE_TABLE_STRUCTURE6, " | |||
| lt_t_ce_table7 | TYPE STANDARD TABLE OF OIRA_CE_TABLE_STRUCTURE7. " |
|   CALL FUNCTION 'OIRC_DRH_EXEC_PC' "SSR Stocks - Execute process control |
| EXPORTING | ||
| I_PROC | = lv_i_proc | |
| I_RNBT | = lv_i_rnbt | |
| I_CE_PARAMETERS | = lv_i_ce_parameters | |
| TABLES | ||
| T_DRUPLD | = lt_t_drupld | |
| T_CE_TABLE8 | = lt_t_ce_table8 | |
| T_CE_TABLE9 | = lt_t_ce_table9 | |
| T_CE_TABLE10 | = lt_t_ce_table10 | |
| T_DRREJ_DEL | = lt_t_drrej_del | |
| T_CE_TABLE1 | = lt_t_ce_table1 | |
| T_CE_TABLE2 | = lt_t_ce_table2 | |
| T_CE_TABLE3 | = lt_t_ce_table3 | |
| T_CE_TABLE4 | = lt_t_ce_table4 | |
| T_CE_TABLE5 | = lt_t_ce_table5 | |
| T_CE_TABLE6 | = lt_t_ce_table6 | |
| T_CE_TABLE7 | = lt_t_ce_table7 | |
| EXCEPTIONS | ||
| PROCESS_NOT_EXIST = 1 | ||
| ROUTINE_NOT_FOUND = 2 | ||
| BT_MISSMATCH = 3 | ||
| PROCESS_CONTROL_ERROR = 4 | ||
| RECORD_PROCESS_ERROR = 5 | ||
| MAIN_PROCESS_NOT_FOUND = 6 | ||
| UNKNOWN_ERROR = 7 | ||
| . " OIRC_DRH_EXEC_PC | ||
ABAP code using 7.40 inline data declarations to call FM OIRC_DRH_EXEC_PC
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.Search for further information about these or an SAP related objects