SAP HRUS_BUILD_USER_TCRT Function Module for Build_User_TCRT
HRUS_BUILD_USER_TCRT is a standard hrus build user tcrt SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Build_User_TCRT 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 hrus build user tcrt FM, simply by entering the name HRUS_BUILD_USER_TCRT into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRTU
Program Name: SAPLHRTU
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRUS_BUILD_USER_TCRT 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 'HRUS_BUILD_USER_TCRT'"Build_User_TCRT.
EXPORTING
DATUM = "
MOLGA = "
SW_AUFROLLUNG = "
SW_OVER_UNDER = "
TXCMP = "
TABLES
RT = "
OLD_RT = "
TCRT = "
DFRT = "
EXCEPTIONS
NO_ENTRY_FOUND = 1
IMPORTING Parameters details for HRUS_BUILD_USER_TCRT
DATUM -
Data type: DOptional: No
Call by Reference: No ( called with pass by value option)
MOLGA -
Data type: PC202-MOLGAOptional: No
Call by Reference: No ( called with pass by value option)
SW_AUFROLLUNG -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
SW_OVER_UNDER -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
TXCMP -
Data type: T5U0P-TXCMPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HRUS_BUILD_USER_TCRT
RT -
Data type: PC207Optional: No
Call by Reference: No ( called with pass by value option)
OLD_RT -
Data type: PC207Optional: No
Call by Reference: No ( called with pass by value option)
TCRT -
Data type: PC23HOptional: No
Call by Reference: No ( called with pass by value option)
DFRT -
Data type: PC23ROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ENTRY_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRUS_BUILD_USER_TCRT 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: | ||||
| lt_rt | TYPE STANDARD TABLE OF PC207, " | |||
| lv_datum | TYPE D, " | |||
| lv_no_entry_found | TYPE D, " | |||
| lv_molga | TYPE PC202-MOLGA, " | |||
| lt_old_rt | TYPE STANDARD TABLE OF PC207, " | |||
| lt_tcrt | TYPE STANDARD TABLE OF PC23H, " | |||
| lv_sw_aufrollung | TYPE C, " | |||
| lt_dfrt | TYPE STANDARD TABLE OF PC23R, " | |||
| lv_sw_over_under | TYPE C, " | |||
| lv_txcmp | TYPE T5U0P-TXCMP. " |
|   CALL FUNCTION 'HRUS_BUILD_USER_TCRT' "Build_User_TCRT |
| EXPORTING | ||
| DATUM | = lv_datum | |
| MOLGA | = lv_molga | |
| SW_AUFROLLUNG | = lv_sw_aufrollung | |
| SW_OVER_UNDER | = lv_sw_over_under | |
| TXCMP | = lv_txcmp | |
| TABLES | ||
| RT | = lt_rt | |
| OLD_RT | = lt_old_rt | |
| TCRT | = lt_tcrt | |
| DFRT | = lt_dfrt | |
| EXCEPTIONS | ||
| NO_ENTRY_FOUND = 1 | ||
| . " HRUS_BUILD_USER_TCRT | ||
ABAP code using 7.40 inline data declarations to call FM HRUS_BUILD_USER_TCRT
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.| "SELECT single MOLGA FROM PC202 INTO @DATA(ld_molga). | ||||
| "SELECT single TXCMP FROM T5U0P INTO @DATA(ld_txcmp). | ||||
Search for further information about these or an SAP related objects