SAP /UIF/LREP_WRITE_RA_COUNT Function Module for Update task function module for WRITE_READ_ACCESS_COUNT









/UIF/LREP_WRITE_RA_COUNT is a standard /uif/lrep write ra count SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update task function module for WRITE_READ_ACCESS_COUNT 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 ra count FM, simply by entering the name /UIF/LREP_WRITE_RA_COUNT 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: 1



Function /UIF/LREP_WRITE_RA_COUNT 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_RA_COUNT'"Update task function module for WRITE_READ_ACCESS_COUNT
EXPORTING
IV_TROBJNAME = "LRep object name of file
IV_LAYER_TYPE = "LRep layer type
IV_TYPE = "LRep type
* IV_USER = SY-UNAME "LRep user name
* IV_INCLUDE_LOGGING = ABAP_TRUE "enables the app log
* IT_MSG_TYPE = "Standard table of message types
IV_WRITE_CONTENT = "Called during content writing
.



IMPORTING Parameters details for /UIF/LREP_WRITE_RA_COUNT

IV_TROBJNAME - LRep object name of file

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

IV_LAYER_TYPE - LRep layer type

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

IV_TYPE - LRep type

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

IV_USER - LRep user name

Data type: /UIF/LREP_USER_NAME
Default: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_INCLUDE_LOGGING - enables the app log

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

IT_MSG_TYPE - Standard table of message types

Data type: /UIF/LREP_MSG_TYPE_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_WRITE_CONTENT - Called during content writing

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

Copy and paste ABAP code example for /UIF/LREP_WRITE_RA_COUNT 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_trobjname  TYPE /UIF/LREP_TROBJNAME, "   
lv_iv_layer_type  TYPE /UIF/LREP_LAYER_TYPE, "   
lv_iv_type  TYPE /UIF/LREP_TYPE, "   
lv_iv_user  TYPE /UIF/LREP_USER_NAME, "   SY-UNAME
lv_iv_include_logging  TYPE ABAP_BOOL, "   ABAP_TRUE
lv_it_msg_type  TYPE /UIF/LREP_MSG_TYPE_TAB, "   
lv_iv_write_content  TYPE ABAP_BOOL. "   

  CALL FUNCTION '/UIF/LREP_WRITE_RA_COUNT'  "Update task function module for WRITE_READ_ACCESS_COUNT
    EXPORTING
         IV_TROBJNAME = lv_iv_trobjname
         IV_LAYER_TYPE = lv_iv_layer_type
         IV_TYPE = lv_iv_type
         IV_USER = lv_iv_user
         IV_INCLUDE_LOGGING = lv_iv_include_logging
         IT_MSG_TYPE = lv_it_msg_type
         IV_WRITE_CONTENT = lv_iv_write_content
. " /UIF/LREP_WRITE_RA_COUNT




ABAP code using 7.40 inline data declarations to call FM /UIF/LREP_WRITE_RA_COUNT

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_user) = SY-UNAME.
 
DATA(ld_iv_include_logging) = ABAP_TRUE.
 
 
 


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!