SAP RCP302_RECIPES_OBJECTS_WRITE Function Module for RMS-RCP: Writing RCP Objects
RCP302_RECIPES_OBJECTS_WRITE is a standard rcp302 recipes objects write SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RMS-RCP: Writing RCP Objects 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 rcp302 recipes objects write FM, simply by entering the name RCP302_RECIPES_OBJECTS_WRITE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RCP302
Program Name: SAPLRCP302
Main Program: SAPLRCP302
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RCP302_RECIPES_OBJECTS_WRITE 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 'RCP302_RECIPES_OBJECTS_WRITE'"RMS-RCP: Writing RCP Objects.
EXPORTING
I_DATA_SCENARIO = "
* IT_STATUS = "RMS-RCP: API - Table Type for Status
* I_FLG_NO_AENNR_DATE_CHECK = ' ' "General Indicator
* IT_USTATUS = "RMS-RCP: API - Table Type for User Status
IMPORTING
ET_EVT_OBJ_CHANGE = "RMS-ATL: API - Table Type for Event Handling Obj-Spec. Attr.
ET_EVT_RELOBJ_CHANGE = "RMS-ATL: API - Table Type for Event Handling Dep. Objects
CHANGING
* XT_RCP = "RMS-RCP: API - Table Type for Recipe Data
* XT_PRO = "RMS-RCP: API - Table Type for Process
* XT_PST = "RMS-RCP: API - Table Type for Process Stage
* XT_POP = "RMS-RCP: API - Table Type for Process Operation
* XT_PAC = "RMS-RCP: API - Table Type for Process Action
* XT_EQR = "RMS-RCP: API - Table Type for Equipment Requirement
* XT_REPLACE = "RMS-RCP: API - Table Type for Recipe Replacement
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for RCP302_RECIPES_OBJECTS_WRITE
I_DATA_SCENARIO -
Data type: RCPE_DATASCENOptional: No
Call by Reference: Yes
IT_STATUS - RMS-RCP: API - Table Type for Status
Data type: RCPTY_API_STATUSOptional: Yes
Call by Reference: Yes
I_FLG_NO_AENNR_DATE_CHECK - General Indicator
Data type: FLAGDefault: SPACE
Optional: No
Call by Reference: Yes
IT_USTATUS - RMS-RCP: API - Table Type for User Status
Data type: RCPTY_API_USTATUSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RCP302_RECIPES_OBJECTS_WRITE
ET_EVT_OBJ_CHANGE - RMS-ATL: API - Table Type for Event Handling Obj-Spec. Attr.
Data type: RMSATY_EVT_OBJ_CHANGEOptional: No
Call by Reference: Yes
ET_EVT_RELOBJ_CHANGE - RMS-ATL: API - Table Type for Event Handling Dep. Objects
Data type: RMSATY_EVT_RELOBJ_CHANGEOptional: No
Call by Reference: Yes
CHANGING Parameters details for RCP302_RECIPES_OBJECTS_WRITE
XT_RCP - RMS-RCP: API - Table Type for Recipe Data
Data type: RCPTY_API_RCPOptional: Yes
Call by Reference: Yes
XT_PRO - RMS-RCP: API - Table Type for Process
Data type: RCPTY_API_PROOptional: Yes
Call by Reference: Yes
XT_PST - RMS-RCP: API - Table Type for Process Stage
Data type: RCPTY_API_PSTOptional: Yes
Call by Reference: Yes
XT_POP - RMS-RCP: API - Table Type for Process Operation
Data type: RCPTY_API_POPOptional: Yes
Call by Reference: Yes
XT_PAC - RMS-RCP: API - Table Type for Process Action
Data type: RCPTY_API_PACOptional: Yes
Call by Reference: Yes
XT_EQR - RMS-RCP: API - Table Type for Equipment Requirement
Data type: RCPTY_API_EQROptional: Yes
Call by Reference: Yes
XT_REPLACE - RMS-RCP: API - Table Type for Recipe Replacement
Data type: RCPTY_API_REPLACEOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR - Error while exporting data
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RCP302_RECIPES_OBJECTS_WRITE 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_error | TYPE STRING, " | |||
| lv_xt_rcp | TYPE RCPTY_API_RCP, " | |||
| lv_i_data_scenario | TYPE RCPE_DATASCEN, " | |||
| lv_et_evt_obj_change | TYPE RMSATY_EVT_OBJ_CHANGE, " | |||
| lv_xt_pro | TYPE RCPTY_API_PRO, " | |||
| lv_it_status | TYPE RCPTY_API_STATUS, " | |||
| lv_et_evt_relobj_change | TYPE RMSATY_EVT_RELOBJ_CHANGE, " | |||
| lv_xt_pst | TYPE RCPTY_API_PST, " | |||
| lv_i_flg_no_aennr_date_check | TYPE FLAG, " SPACE | |||
| lv_xt_pop | TYPE RCPTY_API_POP, " | |||
| lv_it_ustatus | TYPE RCPTY_API_USTATUS, " | |||
| lv_xt_pac | TYPE RCPTY_API_PAC, " | |||
| lv_xt_eqr | TYPE RCPTY_API_EQR, " | |||
| lv_xt_replace | TYPE RCPTY_API_REPLACE. " |
|   CALL FUNCTION 'RCP302_RECIPES_OBJECTS_WRITE' "RMS-RCP: Writing RCP Objects |
| EXPORTING | ||
| I_DATA_SCENARIO | = lv_i_data_scenario | |
| IT_STATUS | = lv_it_status | |
| I_FLG_NO_AENNR_DATE_CHECK | = lv_i_flg_no_aennr_date_check | |
| IT_USTATUS | = lv_it_ustatus | |
| IMPORTING | ||
| ET_EVT_OBJ_CHANGE | = lv_et_evt_obj_change | |
| ET_EVT_RELOBJ_CHANGE | = lv_et_evt_relobj_change | |
| CHANGING | ||
| XT_RCP | = lv_xt_rcp | |
| XT_PRO | = lv_xt_pro | |
| XT_PST | = lv_xt_pst | |
| XT_POP | = lv_xt_pop | |
| XT_PAC | = lv_xt_pac | |
| XT_EQR | = lv_xt_eqr | |
| XT_REPLACE | = lv_xt_replace | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " RCP302_RECIPES_OBJECTS_WRITE | ||
ABAP code using 7.40 inline data declarations to call FM RCP302_RECIPES_OBJECTS_WRITE
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_i_flg_no_aennr_date_check) | = ' '. | |||
Search for further information about these or an SAP related objects