SAP ENQUEUE_EGGLTO2E Function Module for Request lock for object EGGLTO2E









ENQUEUE_EGGLTO2E is a standard enqueue egglto2e 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 EGGLTO2E 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 egglto2e FM, simply by entering the name ENQUEUE_EGGLTO2E 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_EGGLTO2E 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_EGGLTO2E'"Request lock for object EGGLTO2E
EXPORTING
* MODE_GLTO2 = 'E' "Lock mode for table GLTO2
* 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_EGGLTO2E

MODE_GLTO2 - Lock mode for table GLTO2

Data type: DD26E-ENQMODE
Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)

RTCUR - 09th enqueue argument

Data type: GLTO2-RTCUR
Optional: Yes
Call by Reference: No ( called with pass by value option)

RUNIT - 10th enqueue argument

Data type: GLTO2-RUNIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

DRCRK - 11th enqueue argument

Data type: GLTO2-DRCRK
Optional: Yes
Call by Reference: No ( called with pass by value option)

RPMAX - 12th enqueue argument

Data type: GLTO2-RPMAX
Optional: 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: GLTO2-RCLNT
Default: 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-COLLECT
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

RLDNR - 02th enqueue argument

Data type: GLTO2-RLDNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

RRCTY - 03th enqueue argument

Data type: GLTO2-RRCTY
Optional: Yes
Call by Reference: No ( called with pass by value option)

RVERS - 04th enqueue argument

Data type: GLTO2-RVERS
Optional: Yes
Call by Reference: No ( called with pass by value option)

RYEAR - 05th enqueue argument

Data type: GLTO2-RYEAR
Optional: Yes
Call by Reference: No ( called with pass by value option)

ROBJNR - 06th enqueue argument

Data type: GLTO2-ROBJNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

SOBJNR - 07th enqueue argument

Data type: GLTO2-SOBJNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

OCLNT - 08th enqueue argument

Data type: GLTO2-OCLNT
Optional: 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_EGGLTO2E 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_glto2  TYPE DD26E-ENQMODE, "   'E'
lv_foreign_lock  TYPE DD26E, "   
lv_rtcur  TYPE GLTO2-RTCUR, "   
lv_runit  TYPE GLTO2-RUNIT, "   
lv_drcrk  TYPE GLTO2-DRCRK, "   
lv_rpmax  TYPE GLTO2-RPMAX, "   
lv_x_rldnr  TYPE GLTO2, "   SPACE
lv_x_rrcty  TYPE GLTO2, "   SPACE
lv_x_rvers  TYPE GLTO2, "   SPACE
lv_x_ryear  TYPE GLTO2, "   SPACE
lv_x_robjnr  TYPE GLTO2, "   SPACE
lv_x_sobjnr  TYPE GLTO2, "   SPACE
lv_rclnt  TYPE GLTO2-RCLNT, "   SY-MANDT
lv_system_failure  TYPE GLTO2, "   
lv_x_oclnt  TYPE GLTO2, "   SPACE
lv_x_rtcur  TYPE GLTO2, "   SPACE
lv_x_runit  TYPE GLTO2, "   SPACE
lv_x_drcrk  TYPE GLTO2, "   SPACE
lv_x_rpmax  TYPE GLTO2, "   SPACE
lv__scope  TYPE GLTO2, "   '2'
lv__wait  TYPE GLTO2, "   SPACE
lv__collect  TYPE DDENQ_LIKE-COLLECT, "   ' '
lv_rldnr  TYPE GLTO2-RLDNR, "   
lv_rrcty  TYPE GLTO2-RRCTY, "   
lv_rvers  TYPE GLTO2-RVERS, "   
lv_ryear  TYPE GLTO2-RYEAR, "   
lv_robjnr  TYPE GLTO2-ROBJNR, "   
lv_sobjnr  TYPE GLTO2-SOBJNR, "   
lv_oclnt  TYPE GLTO2-OCLNT. "   

  CALL FUNCTION 'ENQUEUE_EGGLTO2E'  "Request lock for object EGGLTO2E
    EXPORTING
         MODE_GLTO2 = lv_mode_glto2
         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_EGGLTO2E




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EGGLTO2E

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_glto2).
DATA(ld_mode_glto2) = 'E'.
 
 
"SELECT single RTCUR FROM GLTO2 INTO @DATA(ld_rtcur).
 
"SELECT single RUNIT FROM GLTO2 INTO @DATA(ld_runit).
 
"SELECT single DRCRK FROM GLTO2 INTO @DATA(ld_drcrk).
 
"SELECT single RPMAX FROM GLTO2 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 GLTO2 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 GLTO2 INTO @DATA(ld_rldnr).
 
"SELECT single RRCTY FROM GLTO2 INTO @DATA(ld_rrcty).
 
"SELECT single RVERS FROM GLTO2 INTO @DATA(ld_rvers).
 
"SELECT single RYEAR FROM GLTO2 INTO @DATA(ld_ryear).
 
"SELECT single ROBJNR FROM GLTO2 INTO @DATA(ld_robjnr).
 
"SELECT single SOBJNR FROM GLTO2 INTO @DATA(ld_sobjnr).
 
"SELECT single OCLNT FROM GLTO2 INTO @DATA(ld_oclnt).
 


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!