SAP LTRS_RESOURCE_CHECK Function Module for Check input parameters during resource registration
LTRS_RESOURCE_CHECK is a standard ltrs resource check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check input parameters during resource registration 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 ltrs resource check FM, simply by entering the name LTRS_RESOURCE_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: LTRS_SERVICES
Program Name: SAPLLTRS_SERVICES
Main Program: SAPLLTRS_SERVICES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LTRS_RESOURCE_CHECK 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 'LTRS_RESOURCE_CHECK'"Check input parameters during resource registration.
EXPORTING
I_LOCAT = "Site location
* I_PRSDV = "Default presentation device
* I_WORKER = "Worker
* I_DEVICE = "Device
* I_ROLE = "Role of worker
* I_RSTYP = "Resource type
* I_EXT_FLAG = "External caller flag
IMPORTING
O_ROLE = "Resource element type
O_RSTYP = "Resource type
O_RSRCE = "Resource
O_DVTYP = "Resource element type
O_RSLOC = "Node
EXCEPTIONS
NO_LOGON = 1 RESOURCE_ACTIVE = 2
IMPORTING Parameters details for LTRS_RESOURCE_CHECK
I_LOCAT - Site location
Data type: LLOCT-LOCATOptional: No
Call by Reference: Yes
I_PRSDV - Default presentation device
Data type: LELMT-PRSDVOptional: Yes
Call by Reference: Yes
I_WORKER - Worker
Data type: LELMT-ELMNTOptional: Yes
Call by Reference: Yes
I_DEVICE - Device
Data type: LELMT-ELMNTOptional: Yes
Call by Reference: Yes
I_ROLE - Role of worker
Data type: LELMT-ELMTYOptional: Yes
Call by Reference: Yes
I_RSTYP - Resource type
Data type: LELMT-RSTYPOptional: Yes
Call by Reference: Yes
I_EXT_FLAG - External caller flag
Data type: FLAGOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for LTRS_RESOURCE_CHECK
O_ROLE - Resource element type
Data type: LELMT-ELMTYOptional: No
Call by Reference: Yes
O_RSTYP - Resource type
Data type: LELMT-RSTYPOptional: No
Call by Reference: Yes
O_RSRCE - Resource
Data type: LELMT-RSRCEOptional: No
Call by Reference: Yes
O_DVTYP - Resource element type
Data type: LELMT-ELMTYOptional: No
Call by Reference: Yes
O_RSLOC - Node
Data type: LRSRC-RNODE_NDOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_LOGON - Logon is impossible
Data type:Optional: No
Call by Reference: Yes
RESOURCE_ACTIVE - Resource element logged on
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for LTRS_RESOURCE_CHECK 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_o_role | TYPE LELMT-ELMTY, " | |||
| lv_i_locat | TYPE LLOCT-LOCAT, " | |||
| lv_no_logon | TYPE LLOCT, " | |||
| lv_i_prsdv | TYPE LELMT-PRSDV, " | |||
| lv_o_rstyp | TYPE LELMT-RSTYP, " | |||
| lv_resource_active | TYPE LELMT, " | |||
| lv_o_rsrce | TYPE LELMT-RSRCE, " | |||
| lv_i_worker | TYPE LELMT-ELMNT, " | |||
| lv_o_dvtyp | TYPE LELMT-ELMTY, " | |||
| lv_i_device | TYPE LELMT-ELMNT, " | |||
| lv_i_role | TYPE LELMT-ELMTY, " | |||
| lv_o_rsloc | TYPE LRSRC-RNODE_ND, " | |||
| lv_i_rstyp | TYPE LELMT-RSTYP, " | |||
| lv_i_ext_flag | TYPE FLAG. " |
|   CALL FUNCTION 'LTRS_RESOURCE_CHECK' "Check input parameters during resource registration |
| EXPORTING | ||
| I_LOCAT | = lv_i_locat | |
| I_PRSDV | = lv_i_prsdv | |
| I_WORKER | = lv_i_worker | |
| I_DEVICE | = lv_i_device | |
| I_ROLE | = lv_i_role | |
| I_RSTYP | = lv_i_rstyp | |
| I_EXT_FLAG | = lv_i_ext_flag | |
| IMPORTING | ||
| O_ROLE | = lv_o_role | |
| O_RSTYP | = lv_o_rstyp | |
| O_RSRCE | = lv_o_rsrce | |
| O_DVTYP | = lv_o_dvtyp | |
| O_RSLOC | = lv_o_rsloc | |
| EXCEPTIONS | ||
| NO_LOGON = 1 | ||
| RESOURCE_ACTIVE = 2 | ||
| . " LTRS_RESOURCE_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM LTRS_RESOURCE_CHECK
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 ELMTY FROM LELMT INTO @DATA(ld_o_role). | ||||
| "SELECT single LOCAT FROM LLOCT INTO @DATA(ld_i_locat). | ||||
| "SELECT single PRSDV FROM LELMT INTO @DATA(ld_i_prsdv). | ||||
| "SELECT single RSTYP FROM LELMT INTO @DATA(ld_o_rstyp). | ||||
| "SELECT single RSRCE FROM LELMT INTO @DATA(ld_o_rsrce). | ||||
| "SELECT single ELMNT FROM LELMT INTO @DATA(ld_i_worker). | ||||
| "SELECT single ELMTY FROM LELMT INTO @DATA(ld_o_dvtyp). | ||||
| "SELECT single ELMNT FROM LELMT INTO @DATA(ld_i_device). | ||||
| "SELECT single ELMTY FROM LELMT INTO @DATA(ld_i_role). | ||||
| "SELECT single RNODE_ND FROM LRSRC INTO @DATA(ld_o_rsloc). | ||||
| "SELECT single RSTYP FROM LELMT INTO @DATA(ld_i_rstyp). | ||||
Search for further information about these or an SAP related objects