SAP DEQUEUE_EJ_3GTBEST Function Module for Release lock on object EJ_3GTBEST









DEQUEUE_EJ_3GTBEST is a standard dequeue ej 3gtbest SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Release lock on object EJ_3GTBEST 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 dequeue ej 3gtbest FM, simply by entering the name DEQUEUE_EJ_3GTBEST into the relevant SAP transaction such as SE37 or SE38.

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



Function DEQUEUE_EJ_3GTBEST 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 'DEQUEUE_EJ_3GTBEST'"Release lock on object EJ_3GTBEST
EXPORTING
* MODE_J_3GTBEST = 'E' "Lock mode for table J_3GTBEST
* J_3GLFDNR = "09th enqueue argument
* X_J_3GEMPFAE = ' ' "Fill argument 02 with initial value?
* X_J_3GAGEXT = ' ' "Fill argument 03 with initial value?
* X_J_3GWEEXT = ' ' "Fill argument 04 with initial value?
* X_J_3GRESTYP = ' ' "Fill argument 05 with initial value?
* X_J_3GRESSOU = ' ' "Fill argument 06 with initial value?
* X_J_3GDATUM = ' ' "Fill argument 07 with initial value?
* X_J_3GIBEWEG = ' ' "Fill argument 08 with initial value?
* X_J_3GLFDNR = ' ' "Fill argument 09 with initial value?
* _SCOPE = '3' "
* MANDT = SY-MANDT "01th enqueue argument
* _SYNCHRON = ' ' "Synchonous unlock
* _COLLECT = ' ' "Initially only collect lock
* J_3GEMPFAE = "02th enqueue argument
* J_3GAGEXT = "03th enqueue argument
* J_3GWEEXT = "04th enqueue argument
* J_3GRESTYP = "05th enqueue argument
* J_3GRESSOU = "06th enqueue argument
* J_3GDATUM = "07th enqueue argument
* J_3GIBEWEG = "08th enqueue argument
.



IMPORTING Parameters details for DEQUEUE_EJ_3GTBEST

MODE_J_3GTBEST - Lock mode for table J_3GTBEST

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

J_3GLFDNR - 09th enqueue argument

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

X_J_3GEMPFAE - Fill argument 02 with initial value?

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

X_J_3GAGEXT - Fill argument 03 with initial value?

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

X_J_3GWEEXT - Fill argument 04 with initial value?

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

X_J_3GRESTYP - Fill argument 05 with initial value?

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

X_J_3GRESSOU - Fill argument 06 with initial value?

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

X_J_3GDATUM - Fill argument 07 with initial value?

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

X_J_3GIBEWEG - Fill argument 08 with initial value?

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

X_J_3GLFDNR - Fill argument 09 with initial value?

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

_SCOPE -

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

MANDT - 01th enqueue argument

Data type: J_3GTBEST-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

_SYNCHRON - Synchonous unlock

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

_COLLECT - Initially only collect lock

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

J_3GEMPFAE - 02th enqueue argument

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

J_3GAGEXT - 03th enqueue argument

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

J_3GWEEXT - 04th enqueue argument

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

J_3GRESTYP - 05th enqueue argument

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

J_3GRESSOU - 06th enqueue argument

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

J_3GDATUM - 07th enqueue argument

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

J_3GIBEWEG - 08th enqueue argument

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

Copy and paste ABAP code example for DEQUEUE_EJ_3GTBEST 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_j_3gtbest  TYPE ENQMODE, "   'E'
lv_j_3glfdnr  TYPE J_3GTBEST-J_3GLFDNR, "   
lv_x_j_3gempfae  TYPE J_3GTBEST, "   SPACE
lv_x_j_3gagext  TYPE J_3GTBEST, "   SPACE
lv_x_j_3gweext  TYPE J_3GTBEST, "   SPACE
lv_x_j_3grestyp  TYPE J_3GTBEST, "   SPACE
lv_x_j_3gressou  TYPE J_3GTBEST, "   SPACE
lv_x_j_3gdatum  TYPE J_3GTBEST, "   SPACE
lv_x_j_3gibeweg  TYPE J_3GTBEST, "   SPACE
lv_x_j_3glfdnr  TYPE J_3GTBEST, "   SPACE
lv__scope  TYPE J_3GTBEST, "   '3'
lv_mandt  TYPE J_3GTBEST-MANDT, "   SY-MANDT
lv__synchron  TYPE J_3GTBEST, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_j_3gempfae  TYPE J_3GTBEST-J_3GEMPFAE, "   
lv_j_3gagext  TYPE J_3GTBEST-J_3GAGEXT, "   
lv_j_3gweext  TYPE J_3GTBEST-J_3GWEEXT, "   
lv_j_3grestyp  TYPE J_3GTBEST-J_3GRESTYP, "   
lv_j_3gressou  TYPE J_3GTBEST-J_3GRESSOU, "   
lv_j_3gdatum  TYPE J_3GTBEST-J_3GDATUM, "   
lv_j_3gibeweg  TYPE J_3GTBEST-J_3GIBEWEG. "   

  CALL FUNCTION 'DEQUEUE_EJ_3GTBEST'  "Release lock on object EJ_3GTBEST
    EXPORTING
         MODE_J_3GTBEST = lv_mode_j_3gtbest
         J_3GLFDNR = lv_j_3glfdnr
         X_J_3GEMPFAE = lv_x_j_3gempfae
         X_J_3GAGEXT = lv_x_j_3gagext
         X_J_3GWEEXT = lv_x_j_3gweext
         X_J_3GRESTYP = lv_x_j_3grestyp
         X_J_3GRESSOU = lv_x_j_3gressou
         X_J_3GDATUM = lv_x_j_3gdatum
         X_J_3GIBEWEG = lv_x_j_3gibeweg
         X_J_3GLFDNR = lv_x_j_3glfdnr
         _SCOPE = lv__scope
         MANDT = lv_mandt
         _SYNCHRON = lv__synchron
         _COLLECT = lv__collect
         J_3GEMPFAE = lv_j_3gempfae
         J_3GAGEXT = lv_j_3gagext
         J_3GWEEXT = lv_j_3gweext
         J_3GRESTYP = lv_j_3grestyp
         J_3GRESSOU = lv_j_3gressou
         J_3GDATUM = lv_j_3gdatum
         J_3GIBEWEG = lv_j_3gibeweg
. " DEQUEUE_EJ_3GTBEST




ABAP code using 7.40 inline data declarations to call FM DEQUEUE_EJ_3GTBEST

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.

DATA(ld_mode_j_3gtbest) = 'E'.
 
"SELECT single J_3GLFDNR FROM J_3GTBEST INTO @DATA(ld_j_3glfdnr).
 
DATA(ld_x_j_3gempfae) = ' '.
 
DATA(ld_x_j_3gagext) = ' '.
 
DATA(ld_x_j_3gweext) = ' '.
 
DATA(ld_x_j_3grestyp) = ' '.
 
DATA(ld_x_j_3gressou) = ' '.
 
DATA(ld_x_j_3gdatum) = ' '.
 
DATA(ld_x_j_3gibeweg) = ' '.
 
DATA(ld_x_j_3glfdnr) = ' '.
 
DATA(ld__scope) = '3'.
 
"SELECT single MANDT FROM J_3GTBEST INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
DATA(ld__synchron) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single J_3GEMPFAE FROM J_3GTBEST INTO @DATA(ld_j_3gempfae).
 
"SELECT single J_3GAGEXT FROM J_3GTBEST INTO @DATA(ld_j_3gagext).
 
"SELECT single J_3GWEEXT FROM J_3GTBEST INTO @DATA(ld_j_3gweext).
 
"SELECT single J_3GRESTYP FROM J_3GTBEST INTO @DATA(ld_j_3grestyp).
 
"SELECT single J_3GRESSOU FROM J_3GTBEST INTO @DATA(ld_j_3gressou).
 
"SELECT single J_3GDATUM FROM J_3GTBEST INTO @DATA(ld_j_3gdatum).
 
"SELECT single J_3GIBEWEG FROM J_3GTBEST INTO @DATA(ld_j_3gibeweg).
 


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!