SAP /UIF/LREP_WRITE_CONTENT_MASS Function Module for Mass-enabled creation/update module
/UIF/LREP_WRITE_CONTENT_MASS is a standard /uif/lrep write content mass SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Mass-enabled creation/update module 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 /uif/lrep write content mass FM, simply by entering the name /UIF/LREP_WRITE_CONTENT_MASS into the relevant SAP transaction such as SE37 or SE38.
Function Group: /UIF/LREP_UPDATE
Program Name: /UIF/SAPLLREP_UPDATE
Main Program: /UIF/SAPLLREP_UPDATE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /UIF/LREP_WRITE_CONTENT_MASS 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 '/UIF/LREP_WRITE_CONTENT_MASS'"Mass-enabled creation/update module.
EXPORTING
* IV_TMS = ABAP_TRUE "
* IV_INCLUDE_LOGGING = ABAP_TRUE "enables the app log
* IT_MSG_TYPE = "Standard table of message types
* IV_ADMIN = ABAP_FALSE "
* IV_TOLERANT = ABAP_FALSE "
CHANGING
* CT_UPDATE_CC = "
* CT_UPDATE_CD = "
* CT_UPDATE_U = "
CT_CONTENT = "
* CT_FAILED = "
EXCEPTIONS
/UIF/CX_LREP_ROOT = 1
IMPORTING Parameters details for /UIF/LREP_WRITE_CONTENT_MASS
IV_TMS -
Data type: BOOLE_DDefault: ABAP_TRUE
Optional: Yes
Call by Reference: Yes
IV_INCLUDE_LOGGING - enables the app log
Data type: ABAP_BOOLDefault: ABAP_TRUE
Optional: Yes
Call by Reference: Yes
IT_MSG_TYPE - Standard table of message types
Data type: /UIF/LREP_MSG_TYPE_TABOptional: Yes
Call by Reference: Yes
IV_ADMIN -
Data type: BOOLE_DDefault: ABAP_FALSE
Optional: Yes
Call by Reference: Yes
IV_TOLERANT -
Data type: BOOLE_DDefault: ABAP_FALSE
Optional: No
Call by Reference: Yes
CHANGING Parameters details for /UIF/LREP_WRITE_CONTENT_MASS
CT_UPDATE_CC -
Data type: /UIF/LREP_UPDATE_TABOptional: Yes
Call by Reference: Yes
CT_UPDATE_CD -
Data type: /UIF/LREP_UPDATE_TABOptional: Yes
Call by Reference: Yes
CT_UPDATE_U -
Data type: /UIF/LREP_UPDATE_TABOptional: Yes
Call by Reference: Yes
CT_CONTENT -
Data type: /UIF/LREP_WRITE_CONTENT_TABOptional: No
Call by Reference: Yes
CT_FAILED -
Data type: /UIF/LREP_CONT_ID_EXC_TABOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
/UIF/CX_LREP_ROOT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /UIF/LREP_WRITE_CONTENT_MASS 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_iv_tms | TYPE BOOLE_D, " ABAP_TRUE | |||
| lv_ct_update_cc | TYPE /UIF/LREP_UPDATE_TAB, " | |||
| lv_/uif/cx_lrep_root | TYPE /UIF/LREP_UPDATE_TAB, " | |||
| lv_ct_update_cd | TYPE /UIF/LREP_UPDATE_TAB, " | |||
| lv_iv_include_logging | TYPE ABAP_BOOL, " ABAP_TRUE | |||
| lv_ct_update_u | TYPE /UIF/LREP_UPDATE_TAB, " | |||
| lv_it_msg_type | TYPE /UIF/LREP_MSG_TYPE_TAB, " | |||
| lv_iv_admin | TYPE BOOLE_D, " ABAP_FALSE | |||
| lv_ct_content | TYPE /UIF/LREP_WRITE_CONTENT_TAB, " | |||
| lv_ct_failed | TYPE /UIF/LREP_CONT_ID_EXC_TAB, " | |||
| lv_iv_tolerant | TYPE BOOLE_D. " ABAP_FALSE |
|   CALL FUNCTION '/UIF/LREP_WRITE_CONTENT_MASS' "Mass-enabled creation/update module |
| EXPORTING | ||
| IV_TMS | = lv_iv_tms | |
| IV_INCLUDE_LOGGING | = lv_iv_include_logging | |
| IT_MSG_TYPE | = lv_it_msg_type | |
| IV_ADMIN | = lv_iv_admin | |
| IV_TOLERANT | = lv_iv_tolerant | |
| CHANGING | ||
| CT_UPDATE_CC | = lv_ct_update_cc | |
| CT_UPDATE_CD | = lv_ct_update_cd | |
| CT_UPDATE_U | = lv_ct_update_u | |
| CT_CONTENT | = lv_ct_content | |
| CT_FAILED | = lv_ct_failed | |
| EXCEPTIONS | ||
| /UIF/CX_LREP_ROOT = 1 | ||
| . " /UIF/LREP_WRITE_CONTENT_MASS | ||
ABAP code using 7.40 inline data declarations to call FM /UIF/LREP_WRITE_CONTENT_MASS
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_iv_tms) | = ABAP_TRUE. | |||
| DATA(ld_iv_include_logging) | = ABAP_TRUE. | |||
| DATA(ld_iv_admin) | = ABAP_FALSE. | |||
| DATA(ld_iv_tolerant) | = ABAP_FALSE. | |||
Search for further information about these or an SAP related objects