SAP RPM_WRITE_CONTAINER Function Module for Wrapper function to SAP_WAPI_WRITE_CONTAINER
RPM_WRITE_CONTAINER is a standard rpm write container SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Wrapper function to SAP_WAPI_WRITE_CONTAINER 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 rpm write container FM, simply by entering the name RPM_WRITE_CONTAINER into the relevant SAP transaction such as SE37 or SE38.
Function Group: RPM_WORKFLOW
Program Name: SAPLRPM_WORKFLOW
Main Program: SAPLRPM_WORKFLOW
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RPM_WRITE_CONTAINER 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 'RPM_WRITE_CONTAINER'"Wrapper function to SAP_WAPI_WRITE_CONTAINER.
EXPORTING
WORKITEM_ID = "Work item ID
* LANGUAGE = SY-LANGU "R/3 System, current language
* ACTUAL_AGENT = SY-UNAME "SAP System, User Logon Name
* DO_COMMIT = 'X' "Checkbox
SIMPLE_CONTAINER = "Container Table
IMPORTING
RETURN_CODE = "Return Value, Return Value After ABAP Statements
IMPORTING Parameters details for RPM_WRITE_CONTAINER
WORKITEM_ID - Work item ID
Data type: SWW_WIIDOptional: No
Call by Reference: No ( called with pass by value option)
LANGUAGE - R/3 System, current language
Data type: SYLANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACTUAL_AGENT - SAP System, User Logon Name
Data type: SYUNAMEDefault: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)
DO_COMMIT - Checkbox
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SIMPLE_CONTAINER - Container Table
Data type: SWRTCONTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RPM_WRITE_CONTAINER
RETURN_CODE - Return Value, Return Value After ABAP Statements
Data type: SYSUBRCOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RPM_WRITE_CONTAINER 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_return_code | TYPE SYSUBRC, " | |||
| lv_workitem_id | TYPE SWW_WIID, " | |||
| lv_language | TYPE SYLANGU, " SY-LANGU | |||
| lv_actual_agent | TYPE SYUNAME, " SY-UNAME | |||
| lv_do_commit | TYPE XFELD, " 'X' | |||
| lv_simple_container | TYPE SWRTCONT. " |
|   CALL FUNCTION 'RPM_WRITE_CONTAINER' "Wrapper function to SAP_WAPI_WRITE_CONTAINER |
| EXPORTING | ||
| WORKITEM_ID | = lv_workitem_id | |
| LANGUAGE | = lv_language | |
| ACTUAL_AGENT | = lv_actual_agent | |
| DO_COMMIT | = lv_do_commit | |
| SIMPLE_CONTAINER | = lv_simple_container | |
| IMPORTING | ||
| RETURN_CODE | = lv_return_code | |
| . " RPM_WRITE_CONTAINER | ||
ABAP code using 7.40 inline data declarations to call FM RPM_WRITE_CONTAINER
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_language) | = SY-LANGU. | |||
| DATA(ld_actual_agent) | = SY-UNAME. | |||
| DATA(ld_do_commit) | = 'X'. | |||
Search for further information about these or an SAP related objects