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

Function ELM_ENQUEUE 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 'ELM_ENQUEUE'"Ext. List Management: Lock.
EXPORTING
IS_LIST_H_WRK = "Ext. List Management - Header Work Area
* IV_LOCK_AGAIN = "Set Lock Again, Correct Buffer
IMPORTING
EV_ERROR = "Ext. List Management: Error Indicator (X = Error)
IMPORTING Parameters details for ELM_ENQUEUE
IS_LIST_H_WRK - Ext. List Management - Header Work Area
Data type: ELMT_HEADER_WRKOptional: No
Call by Reference: Yes
IV_LOCK_AGAIN - Set Lock Again, Correct Buffer
Data type: ELMT_BOOLEANOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ELM_ENQUEUE
EV_ERROR - Ext. List Management: Error Indicator (X = Error)
Data type: ELMT_ERROROptional: No
Call by Reference: Yes
Copy and paste ABAP code example for ELM_ENQUEUE 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_ev_error | TYPE ELMT_ERROR, " | |||
| lv_is_list_h_wrk | TYPE ELMT_HEADER_WRK, " | |||
| lv_iv_lock_again | TYPE ELMT_BOOLEAN. " |
|   CALL FUNCTION 'ELM_ENQUEUE' "Ext. List Management: Lock |
| EXPORTING | ||
| IS_LIST_H_WRK | = lv_is_list_h_wrk | |
| IV_LOCK_AGAIN | = lv_iv_lock_again | |
| IMPORTING | ||
| EV_ERROR | = lv_ev_error | |
| . " ELM_ENQUEUE | ||
ABAP code using 7.40 inline data declarations to call FM ELM_ENQUEUE
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