SAP ENQUEUE_EGGLTPE Function Module for Request lock for object EGGLTPE









ENQUEUE_EGGLTPE is a standard enqueue eggltpe 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 EGGLTPE 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 eggltpe FM, simply by entering the name ENQUEUE_EGGLTPE into the relevant SAP transaction such as SE37 or SE38.

Function Group: /1BCDWBEN/KENQ
Program Name: /1BCDWBEN/SAPLKENQ
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ENQUEUE_EGGLTPE 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_EGGLTPE'"Request lock for object EGGLTPE
EXPORTING
* MODE_GLTPC = 'E' "Lock mode for table GLTPC
* PPRCTR = "09th enqueue argument
* OCLNT = "10th enqueue argument
* RTCUR = "11th enqueue argument
* RUNIT = "12th enqueue argument
* DRCRK = "13th enqueue argument
* RPMAX = "14th 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_BUKRS = ' ' "Fill argument 05 with initial value?
* RCLNT = SY-MANDT "01th enqueue argument
* X_RYEAR = ' ' "Fill argument 06 with initial value?
* X_RACCT = ' ' "Fill argument 07 with initial value?
* X_PRCTR = ' ' "Fill argument 08 with initial value?
* X_PPRCTR = ' ' "Fill argument 09 with initial value?
* X_OCLNT = ' ' "Fill argument 10 with initial value?
* X_RTCUR = ' ' "Fill argument 11 with initial value?
* X_RUNIT = ' ' "Fill argument 12 with initial value?
* X_DRCRK = ' ' "Fill argument 13 with initial value?
* X_RPMAX = ' ' "Fill argument 14 with initial value?
* _SCOPE = '2' "
* RLDNR = "02th enqueue argument
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* RRCTY = "03th enqueue argument
* RVERS = "04th enqueue argument
* BUKRS = "05th enqueue argument
* RYEAR = "06th enqueue argument
* RACCT = "07th enqueue argument
* PRCTR = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EGGLTPE

MODE_GLTPC - Lock mode for table GLTPC

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

PPRCTR - 09th enqueue argument

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

OCLNT - 10th enqueue argument

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

RTCUR - 11th enqueue argument

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

RUNIT - 12th enqueue argument

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

DRCRK - 13th enqueue argument

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

RPMAX - 14th enqueue argument

Data type: GLTPC-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_BUKRS - Fill argument 05 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: GLTPC-RCLNT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_RYEAR - Fill argument 06 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_RACCT - Fill argument 07 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_PRCTR - Fill argument 08 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_PPRCTR - Fill argument 09 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_OCLNT - Fill argument 10 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_RTCUR - Fill argument 11 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_RUNIT - Fill argument 12 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_DRCRK - Fill argument 13 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_RPMAX - Fill argument 14 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)

RLDNR - 02th enqueue argument

Data type: GLTPC-RLDNR
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)

RRCTY - 03th enqueue argument

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

RVERS - 04th enqueue argument

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

BUKRS - 05th enqueue argument

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

RYEAR - 06th enqueue argument

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

RACCT - 07th enqueue argument

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

PRCTR - 08th enqueue argument

Data type: GLTPC-PRCTR
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_EGGLTPE 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_gltpc  TYPE DD26E-ENQMODE, "   'E'
lv_foreign_lock  TYPE DD26E, "   
lv_pprctr  TYPE GLTPC-PPRCTR, "   
lv_oclnt  TYPE GLTPC-OCLNT, "   
lv_rtcur  TYPE GLTPC-RTCUR, "   
lv_runit  TYPE GLTPC-RUNIT, "   
lv_drcrk  TYPE GLTPC-DRCRK, "   
lv_rpmax  TYPE GLTPC-RPMAX, "   
lv_x_rldnr  TYPE GLTPC, "   SPACE
lv_x_rrcty  TYPE GLTPC, "   SPACE
lv_x_rvers  TYPE GLTPC, "   SPACE
lv_x_bukrs  TYPE GLTPC, "   SPACE
lv_rclnt  TYPE GLTPC-RCLNT, "   SY-MANDT
lv_system_failure  TYPE GLTPC, "   
lv_x_ryear  TYPE GLTPC, "   SPACE
lv_x_racct  TYPE GLTPC, "   SPACE
lv_x_prctr  TYPE GLTPC, "   SPACE
lv_x_pprctr  TYPE GLTPC, "   SPACE
lv_x_oclnt  TYPE GLTPC, "   SPACE
lv_x_rtcur  TYPE GLTPC, "   SPACE
lv_x_runit  TYPE GLTPC, "   SPACE
lv_x_drcrk  TYPE GLTPC, "   SPACE
lv_x_rpmax  TYPE GLTPC, "   SPACE
lv__scope  TYPE GLTPC, "   '2'
lv_rldnr  TYPE GLTPC-RLDNR, "   
lv__wait  TYPE GLTPC, "   SPACE
lv__collect  TYPE DDENQ_LIKE-COLLECT, "   ' '
lv_rrcty  TYPE GLTPC-RRCTY, "   
lv_rvers  TYPE GLTPC-RVERS, "   
lv_bukrs  TYPE GLTPC-BUKRS, "   
lv_ryear  TYPE GLTPC-RYEAR, "   
lv_racct  TYPE GLTPC-RACCT, "   
lv_prctr  TYPE GLTPC-PRCTR. "   

  CALL FUNCTION 'ENQUEUE_EGGLTPE'  "Request lock for object EGGLTPE
    EXPORTING
         MODE_GLTPC = lv_mode_gltpc
         PPRCTR = lv_pprctr
         OCLNT = lv_oclnt
         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_BUKRS = lv_x_bukrs
         RCLNT = lv_rclnt
         X_RYEAR = lv_x_ryear
         X_RACCT = lv_x_racct
         X_PRCTR = lv_x_prctr
         X_PPRCTR = lv_x_pprctr
         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
         RLDNR = lv_rldnr
         _WAIT = lv__wait
         _COLLECT = lv__collect
         RRCTY = lv_rrcty
         RVERS = lv_rvers
         BUKRS = lv_bukrs
         RYEAR = lv_ryear
         RACCT = lv_racct
         PRCTR = lv_prctr
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EGGLTPE




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EGGLTPE

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_gltpc).
DATA(ld_mode_gltpc) = 'E'.
 
 
"SELECT single PPRCTR FROM GLTPC INTO @DATA(ld_pprctr).
 
"SELECT single OCLNT FROM GLTPC INTO @DATA(ld_oclnt).
 
"SELECT single RTCUR FROM GLTPC INTO @DATA(ld_rtcur).
 
"SELECT single RUNIT FROM GLTPC INTO @DATA(ld_runit).
 
"SELECT single DRCRK FROM GLTPC INTO @DATA(ld_drcrk).
 
"SELECT single RPMAX FROM GLTPC INTO @DATA(ld_rpmax).
 
DATA(ld_x_rldnr) = ' '.
 
DATA(ld_x_rrcty) = ' '.
 
DATA(ld_x_rvers) = ' '.
 
DATA(ld_x_bukrs) = ' '.
 
"SELECT single RCLNT FROM GLTPC INTO @DATA(ld_rclnt).
DATA(ld_rclnt) = SY-MANDT.
 
 
DATA(ld_x_ryear) = ' '.
 
DATA(ld_x_racct) = ' '.
 
DATA(ld_x_prctr) = ' '.
 
DATA(ld_x_pprctr) = ' '.
 
DATA(ld_x_oclnt) = ' '.
 
DATA(ld_x_rtcur) = ' '.
 
DATA(ld_x_runit) = ' '.
 
DATA(ld_x_drcrk) = ' '.
 
DATA(ld_x_rpmax) = ' '.
 
DATA(ld__scope) = '2'.
 
"SELECT single RLDNR FROM GLTPC INTO @DATA(ld_rldnr).
 
DATA(ld__wait) = ' '.
 
"SELECT single COLLECT FROM DDENQ_LIKE INTO @DATA(ld__collect).
DATA(ld__collect) = ' '.
 
"SELECT single RRCTY FROM GLTPC INTO @DATA(ld_rrcty).
 
"SELECT single RVERS FROM GLTPC INTO @DATA(ld_rvers).
 
"SELECT single BUKRS FROM GLTPC INTO @DATA(ld_bukrs).
 
"SELECT single RYEAR FROM GLTPC INTO @DATA(ld_ryear).
 
"SELECT single RACCT FROM GLTPC INTO @DATA(ld_racct).
 
"SELECT single PRCTR FROM GLTPC INTO @DATA(ld_prctr).
 


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!