SAP LMON_METHOD_EXECUTE Function Module for Execute method upon one or more objects
LMON_METHOD_EXECUTE is a standard lmon method execute SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Execute method upon one or more objects 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 method execute FM, simply by entering the name LMON_METHOD_EXECUTE 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_METHOD_EXECUTE 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_METHOD_EXECUTE'"Execute method upon one or more objects.
EXPORTING
IV_OBCLS = "Class of IT_OBJECT
* IV_OBCLS_SINGLE = "Class of IV_OBJECT_SINGLE
* IV_OBJECT_SINGLE = "
IV_METHOD = "Method
* IV_VALUE = "
IMPORTING
O_SERVICE_NOT_EXISTS = "Checkbox
EV_RCODE = "Return Value, Return Value After ABAP Statements
EV_OBJECT = "Single object to be returned
TABLES
* IT_OBJECT = "
* IT_MERGE = "
* ET_OBJECT = "Refreshed objects
* ET_REPID = "
IMPORTING Parameters details for LMON_METHOD_EXECUTE
IV_OBCLS - Class of IT_OBJECT
Data type: LMON_OBCLSOptional: No
Call by Reference: No ( called with pass by value option)
IV_OBCLS_SINGLE - Class of IV_OBJECT_SINGLE
Data type: LMON_OBCLSOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_OBJECT_SINGLE -
Data type: LMONT_OBJECTOptional: Yes
Call by Reference: Yes
IV_METHOD - Method
Data type: LMON_MTHODOptional: No
Call by Reference: No ( called with pass by value option)
IV_VALUE -
Data type:Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for LMON_METHOD_EXECUTE
O_SERVICE_NOT_EXISTS - Checkbox
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
EV_RCODE - Return Value, Return Value After ABAP Statements
Data type: SYSUBRCOptional: No
Call by Reference: No ( called with pass by value option)
EV_OBJECT - Single object to be returned
Data type: LMONT_OBJECTOptional: No
Call by Reference: Yes
TABLES Parameters details for LMON_METHOD_EXECUTE
IT_OBJECT -
Data type: LMONT_IT_OBJECTSOptional: Yes
Call by Reference: Yes
IT_MERGE -
Data type: SWWW_T_MERGE_TABLEOptional: Yes
Call by Reference: Yes
ET_OBJECT - Refreshed objects
Data type: LMONT_IT_OBJCTOptional: Yes
Call by Reference: Yes
ET_REPID -
Data type: LMONT_IT_REPIDOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for LMON_METHOD_EXECUTE 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, " | |||
| lt_it_object | TYPE STANDARD TABLE OF LMONT_IT_OBJECTS, " | |||
| lv_o_service_not_exists | TYPE XFELD, " | |||
| lv_ev_rcode | TYPE SYSUBRC, " | |||
| lt_it_merge | TYPE STANDARD TABLE OF SWWW_T_MERGE_TABLE, " | |||
| lv_iv_obcls_single | TYPE LMON_OBCLS, " | |||
| lt_et_object | TYPE STANDARD TABLE OF LMONT_IT_OBJCT, " | |||
| lv_ev_object | TYPE LMONT_OBJECT, " | |||
| lv_iv_object_single | TYPE LMONT_OBJECT, " | |||
| lt_et_repid | TYPE STANDARD TABLE OF LMONT_IT_REPID, " | |||
| lv_iv_method | TYPE LMON_MTHOD, " | |||
| lv_iv_value | TYPE LMON_MTHOD. " |
|   CALL FUNCTION 'LMON_METHOD_EXECUTE' "Execute method upon one or more objects |
| EXPORTING | ||
| IV_OBCLS | = lv_iv_obcls | |
| IV_OBCLS_SINGLE | = lv_iv_obcls_single | |
| IV_OBJECT_SINGLE | = lv_iv_object_single | |
| IV_METHOD | = lv_iv_method | |
| IV_VALUE | = lv_iv_value | |
| IMPORTING | ||
| O_SERVICE_NOT_EXISTS | = lv_o_service_not_exists | |
| EV_RCODE | = lv_ev_rcode | |
| EV_OBJECT | = lv_ev_object | |
| TABLES | ||
| IT_OBJECT | = lt_it_object | |
| IT_MERGE | = lt_it_merge | |
| ET_OBJECT | = lt_et_object | |
| ET_REPID | = lt_et_repid | |
| . " LMON_METHOD_EXECUTE | ||
ABAP code using 7.40 inline data declarations to call FM LMON_METHOD_EXECUTE
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