SAP LMON_ROOT_OBJECT_GET Function Module for Gets all available objects of given object class









LMON_ROOT_OBJECT_GET is a standard lmon root object get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Gets all available objects of given object class 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 lmon root object get FM, simply by entering the name LMON_ROOT_OBJECT_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: LMON_SERVICES_MONITOR
Program Name: SAPLLMON_SERVICES_MONITOR
Main Program: SAPLLMON_SERVICES_MONITOR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LMON_ROOT_OBJECT_GET 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 'LMON_ROOT_OBJECT_GET'"Gets all available objects of given object class
EXPORTING
IV_OBCLS = "Object Class for Monitoring
* IV_PRPRF = "Presentation Profile
* IV_ROOTOB = "Root object

IMPORTING
ET_ROOT_OBJECT = "All available root objects
EV_ROOT_OBJECT = "Values of the Object Key Fields
ES_OBJECT_CLASS = "Root object class definitions
EV_NOINPUT = "Checkbox
EV_TITLE = "Screens, title text
EV_MEMORY_OBJECT = "Values of the Object Key Fields

EXCEPTIONS
NO_OBJECT_FOUND = 1 NO_AUTHORIZATION = 2
.



IMPORTING Parameters details for LMON_ROOT_OBJECT_GET

IV_OBCLS - Object Class for Monitoring

Data type: LMON_OBCLS
Optional: No
Call by Reference: Yes

IV_PRPRF - Presentation Profile

Data type: LMON_PRPRF
Optional: Yes
Call by Reference: Yes

IV_ROOTOB - Root object

Data type:
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for LMON_ROOT_OBJECT_GET

ET_ROOT_OBJECT - All available root objects

Data type: LMONT_IT_OBJCT
Optional: No
Call by Reference: Yes

EV_ROOT_OBJECT - Values of the Object Key Fields

Data type: LMON_OBJKEY_VAL
Optional: No
Call by Reference: Yes

ES_OBJECT_CLASS - Root object class definitions

Data type: LMONT_OBJCT_CLASS
Optional: No
Call by Reference: Yes

EV_NOINPUT - Checkbox

Data type: XFELD
Optional: No
Call by Reference: Yes

EV_TITLE - Screens, title text

Data type: SYTITLE
Optional: No
Call by Reference: Yes

EV_MEMORY_OBJECT - Values of the Object Key Fields

Data type: LMON_OBJKEY_VAL
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_OBJECT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORIZATION -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for LMON_ROOT_OBJECT_GET 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_obcls  TYPE LMON_OBCLS, "   
lv_et_root_object  TYPE LMONT_IT_OBJCT, "   
lv_no_object_found  TYPE LMONT_IT_OBJCT, "   
lv_iv_prprf  TYPE LMON_PRPRF, "   
lv_ev_root_object  TYPE LMON_OBJKEY_VAL, "   
lv_no_authorization  TYPE LMON_OBJKEY_VAL, "   
lv_iv_rootob  TYPE LMON_OBJKEY_VAL, "   
lv_es_object_class  TYPE LMONT_OBJCT_CLASS, "   
lv_ev_noinput  TYPE XFELD, "   
lv_ev_title  TYPE SYTITLE, "   
lv_ev_memory_object  TYPE LMON_OBJKEY_VAL. "   

  CALL FUNCTION 'LMON_ROOT_OBJECT_GET'  "Gets all available objects of given object class
    EXPORTING
         IV_OBCLS = lv_iv_obcls
         IV_PRPRF = lv_iv_prprf
         IV_ROOTOB = lv_iv_rootob
    IMPORTING
         ET_ROOT_OBJECT = lv_et_root_object
         EV_ROOT_OBJECT = lv_ev_root_object
         ES_OBJECT_CLASS = lv_es_object_class
         EV_NOINPUT = lv_ev_noinput
         EV_TITLE = lv_ev_title
         EV_MEMORY_OBJECT = lv_ev_memory_object
    EXCEPTIONS
        NO_OBJECT_FOUND = 1
        NO_AUTHORIZATION = 2
. " LMON_ROOT_OBJECT_GET




ABAP code using 7.40 inline data declarations to call FM LMON_ROOT_OBJECT_GET

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.

 
 
 
 
 
 
 
 
 
 
 


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!