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

Function ENQUEUE_EGGLTO1E 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 'ENQUEUE_EGGLTO1E'"Request lock for object EGGLTO1E.
EXPORTING
* MODE_GLTO1 = 'E' "Lock mode for table GLTO1
* RTCUR = "09th enqueue argument
* RUNIT = "10th enqueue argument
* DRCRK = "11th enqueue argument
* RPMAX = "12th enqueue argument
* X_RLDNR = ' ' "Fill argument 02 with initial value?
* X_RRCTY = ' ' "Fill argument 03 with initial value?
* X_RVERS = ' ' "Fill argument 04 with initial value?
* X_RYEAR = ' ' "Fill argument 05 with initial value?
* X_ROBJNR = ' ' "Fill argument 06 with initial value?
* X_SOBJNR = ' ' "Fill argument 07 with initial value?
* RCLNT = SY-MANDT "01th enqueue argument
* X_OCLNT = ' ' "Fill argument 08 with initial value?
* X_RTCUR = ' ' "Fill argument 09 with initial value?
* X_RUNIT = ' ' "Fill argument 10 with initial value?
* X_DRCRK = ' ' "Fill argument 11 with initial value?
* X_RPMAX = ' ' "Fill argument 12 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* RLDNR = "02th enqueue argument
* RRCTY = "03th enqueue argument
* RVERS = "04th enqueue argument
* RYEAR = "05th enqueue argument
* ROBJNR = "06th enqueue argument
* SOBJNR = "07th enqueue argument
* OCLNT = "08th enqueue argument
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_EGGLTO1E
MODE_GLTO1 - Lock mode for table GLTO1
Data type: DD26E-ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RTCUR - 09th enqueue argument
Data type: GLTO1-RTCUROptional: Yes
Call by Reference: No ( called with pass by value option)
RUNIT - 10th enqueue argument
Data type: GLTO1-RUNITOptional: Yes
Call by Reference: No ( called with pass by value option)
DRCRK - 11th enqueue argument
Data type: GLTO1-DRCRKOptional: Yes
Call by Reference: No ( called with pass by value option)
RPMAX - 12th enqueue argument
Data type: GLTO1-RPMAXOptional: Yes
Call by Reference: No ( called with pass by value option)
X_RLDNR - Fill argument 02 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RRCTY - Fill argument 03 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RVERS - Fill argument 04 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RYEAR - Fill argument 05 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ROBJNR - Fill argument 06 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SOBJNR - Fill argument 07 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RCLNT - 01th enqueue argument
Data type: GLTO1-RCLNTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_OCLNT - Fill argument 08 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RTCUR - Fill argument 09 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RUNIT - Fill argument 10 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DRCRK - Fill argument 11 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RPMAX - Fill argument 12 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_SCOPE -
Data type:Default: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
_WAIT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_COLLECT - Initially only collect lock
Data type: DDENQ_LIKE-COLLECTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
RLDNR - 02th enqueue argument
Data type: GLTO1-RLDNROptional: Yes
Call by Reference: No ( called with pass by value option)
RRCTY - 03th enqueue argument
Data type: GLTO1-RRCTYOptional: Yes
Call by Reference: No ( called with pass by value option)
RVERS - 04th enqueue argument
Data type: GLTO1-RVERSOptional: Yes
Call by Reference: No ( called with pass by value option)
RYEAR - 05th enqueue argument
Data type: GLTO1-RYEAROptional: Yes
Call by Reference: No ( called with pass by value option)
ROBJNR - 06th enqueue argument
Data type: GLTO1-ROBJNROptional: Yes
Call by Reference: No ( called with pass by value option)
SOBJNR - 07th enqueue argument
Data type: GLTO1-SOBJNROptional: Yes
Call by Reference: No ( called with pass by value option)
OCLNT - 08th enqueue argument
Data type: GLTO1-OCLNTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FOREIGN_LOCK - Object already locked
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_FAILURE - Internal error from enqueue server
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ENQUEUE_EGGLTO1E 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_mode_glto1 | TYPE DD26E-ENQMODE, " 'E' | |||
| lv_foreign_lock | TYPE DD26E, " | |||
| lv_rtcur | TYPE GLTO1-RTCUR, " | |||
| lv_runit | TYPE GLTO1-RUNIT, " | |||
| lv_drcrk | TYPE GLTO1-DRCRK, " | |||
| lv_rpmax | TYPE GLTO1-RPMAX, " | |||
| lv_x_rldnr | TYPE GLTO1, " SPACE | |||
| lv_x_rrcty | TYPE GLTO1, " SPACE | |||
| lv_x_rvers | TYPE GLTO1, " SPACE | |||
| lv_x_ryear | TYPE GLTO1, " SPACE | |||
| lv_x_robjnr | TYPE GLTO1, " SPACE | |||
| lv_x_sobjnr | TYPE GLTO1, " SPACE | |||
| lv_rclnt | TYPE GLTO1-RCLNT, " SY-MANDT | |||
| lv_system_failure | TYPE GLTO1, " | |||
| lv_x_oclnt | TYPE GLTO1, " SPACE | |||
| lv_x_rtcur | TYPE GLTO1, " SPACE | |||
| lv_x_runit | TYPE GLTO1, " SPACE | |||
| lv_x_drcrk | TYPE GLTO1, " SPACE | |||
| lv_x_rpmax | TYPE GLTO1, " SPACE | |||
| lv__scope | TYPE GLTO1, " '2' | |||
| lv__wait | TYPE GLTO1, " SPACE | |||
| lv__collect | TYPE DDENQ_LIKE-COLLECT, " ' ' | |||
| lv_rldnr | TYPE GLTO1-RLDNR, " | |||
| lv_rrcty | TYPE GLTO1-RRCTY, " | |||
| lv_rvers | TYPE GLTO1-RVERS, " | |||
| lv_ryear | TYPE GLTO1-RYEAR, " | |||
| lv_robjnr | TYPE GLTO1-ROBJNR, " | |||
| lv_sobjnr | TYPE GLTO1-SOBJNR, " | |||
| lv_oclnt | TYPE GLTO1-OCLNT. " |
|   CALL FUNCTION 'ENQUEUE_EGGLTO1E' "Request lock for object EGGLTO1E |
| EXPORTING | ||
| MODE_GLTO1 | = lv_mode_glto1 | |
| RTCUR | = lv_rtcur | |
| RUNIT | = lv_runit | |
| DRCRK | = lv_drcrk | |
| RPMAX | = lv_rpmax | |
| X_RLDNR | = lv_x_rldnr | |
| X_RRCTY | = lv_x_rrcty | |
| X_RVERS | = lv_x_rvers | |
| X_RYEAR | = lv_x_ryear | |
| X_ROBJNR | = lv_x_robjnr | |
| X_SOBJNR | = lv_x_sobjnr | |
| RCLNT | = lv_rclnt | |
| X_OCLNT | = lv_x_oclnt | |
| X_RTCUR | = lv_x_rtcur | |
| X_RUNIT | = lv_x_runit | |
| X_DRCRK | = lv_x_drcrk | |
| X_RPMAX | = lv_x_rpmax | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| RLDNR | = lv_rldnr | |
| RRCTY | = lv_rrcty | |
| RVERS | = lv_rvers | |
| RYEAR | = lv_ryear | |
| ROBJNR | = lv_robjnr | |
| SOBJNR | = lv_sobjnr | |
| OCLNT | = lv_oclnt | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_EGGLTO1E | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EGGLTO1E
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 ENQMODE FROM DD26E INTO @DATA(ld_mode_glto1). | ||||
| DATA(ld_mode_glto1) | = 'E'. | |||
| "SELECT single RTCUR FROM GLTO1 INTO @DATA(ld_rtcur). | ||||
| "SELECT single RUNIT FROM GLTO1 INTO @DATA(ld_runit). | ||||
| "SELECT single DRCRK FROM GLTO1 INTO @DATA(ld_drcrk). | ||||
| "SELECT single RPMAX FROM GLTO1 INTO @DATA(ld_rpmax). | ||||
| DATA(ld_x_rldnr) | = ' '. | |||
| DATA(ld_x_rrcty) | = ' '. | |||
| DATA(ld_x_rvers) | = ' '. | |||
| DATA(ld_x_ryear) | = ' '. | |||
| DATA(ld_x_robjnr) | = ' '. | |||
| DATA(ld_x_sobjnr) | = ' '. | |||
| "SELECT single RCLNT FROM GLTO1 INTO @DATA(ld_rclnt). | ||||
| DATA(ld_rclnt) | = SY-MANDT. | |||
| DATA(ld_x_oclnt) | = ' '. | |||
| DATA(ld_x_rtcur) | = ' '. | |||
| DATA(ld_x_runit) | = ' '. | |||
| DATA(ld_x_drcrk) | = ' '. | |||
| DATA(ld_x_rpmax) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| "SELECT single COLLECT FROM DDENQ_LIKE INTO @DATA(ld__collect). | ||||
| DATA(ld__collect) | = ' '. | |||
| "SELECT single RLDNR FROM GLTO1 INTO @DATA(ld_rldnr). | ||||
| "SELECT single RRCTY FROM GLTO1 INTO @DATA(ld_rrcty). | ||||
| "SELECT single RVERS FROM GLTO1 INTO @DATA(ld_rvers). | ||||
| "SELECT single RYEAR FROM GLTO1 INTO @DATA(ld_ryear). | ||||
| "SELECT single ROBJNR FROM GLTO1 INTO @DATA(ld_robjnr). | ||||
| "SELECT single SOBJNR FROM GLTO1 INTO @DATA(ld_sobjnr). | ||||
| "SELECT single OCLNT FROM GLTO1 INTO @DATA(ld_oclnt). | ||||
Search for further information about these or an SAP related objects