SAP ENQUEUE_EFFDES Function Module for Request lock for object EFFDES









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

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



Function ENQUEUE_EFFDES 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_EFFDES'"Request lock for object EFFDES
EXPORTING
* MODE_FDES = 'E' "Lock mode for table FDES
* IDENR = "09th enqueue argument
* GSBER = "10th enqueue argument
* X_ARCHK = ' ' "Fill argument 02 with initial value?
* X_BUKRS = ' ' "Fill argument 03 with initial value?
* X_BNKKO = ' ' "Fill argument 04 with initial value?
* X_GRUPP = ' ' "Fill argument 05 with initial value?
* X_EBENE = ' ' "Fill argument 06 with initial value?
* X_DISPW = ' ' "Fill argument 07 with initial value?
* X_DATUM = ' ' "Fill argument 08 with initial value?
* X_IDENR = ' ' "Fill argument 09 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_GSBER = ' ' "Fill argument 10 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* ARCHK = "02th enqueue argument
* BUKRS = "03th enqueue argument
* BNKKO = "04th enqueue argument
* GRUPP = "05th enqueue argument
* EBENE = "06th enqueue argument
* DISPW = "07th enqueue argument
* DATUM = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EFFDES

MODE_FDES - Lock mode for table FDES

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

IDENR - 09th enqueue argument

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

GSBER - 10th enqueue argument

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

X_ARCHK - Fill argument 02 with initial value?

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

X_BUKRS - Fill argument 03 with initial value?

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

X_BNKKO - Fill argument 04 with initial value?

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

X_GRUPP - Fill argument 05 with initial value?

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

X_EBENE - Fill argument 06 with initial value?

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

X_DISPW - Fill argument 07 with initial value?

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

X_DATUM - Fill argument 08 with initial value?

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

X_IDENR - Fill argument 09 with initial value?

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

MANDT - 01th enqueue argument

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

X_GSBER - Fill argument 10 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: DDENQCOLL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

ARCHK - 02th enqueue argument

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

BUKRS - 03th enqueue argument

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

BNKKO - 04th enqueue argument

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

GRUPP - 05th enqueue argument

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

EBENE - 06th enqueue argument

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

DISPW - 07th enqueue argument

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

DATUM - 08th enqueue argument

Data type: FDES-DATUM
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_EFFDES 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_fdes  TYPE ENQMODE, "   'E'
lv_foreign_lock  TYPE ENQMODE, "   
lv_idenr  TYPE FDES-IDENR, "   
lv_gsber  TYPE FDES-GSBER, "   
lv_x_archk  TYPE FDES, "   SPACE
lv_x_bukrs  TYPE FDES, "   SPACE
lv_x_bnkko  TYPE FDES, "   SPACE
lv_x_grupp  TYPE FDES, "   SPACE
lv_x_ebene  TYPE FDES, "   SPACE
lv_x_dispw  TYPE FDES, "   SPACE
lv_x_datum  TYPE FDES, "   SPACE
lv_x_idenr  TYPE FDES, "   SPACE
lv_mandt  TYPE FDES-MANDT, "   SY-MANDT
lv_system_failure  TYPE FDES, "   
lv_x_gsber  TYPE FDES, "   SPACE
lv__scope  TYPE FDES, "   '2'
lv__wait  TYPE FDES, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_archk  TYPE FDES-ARCHK, "   
lv_bukrs  TYPE FDES-BUKRS, "   
lv_bnkko  TYPE FDES-BNKKO, "   
lv_grupp  TYPE FDES-GRUPP, "   
lv_ebene  TYPE FDES-EBENE, "   
lv_dispw  TYPE FDES-DISPW, "   
lv_datum  TYPE FDES-DATUM. "   

  CALL FUNCTION 'ENQUEUE_EFFDES'  "Request lock for object EFFDES
    EXPORTING
         MODE_FDES = lv_mode_fdes
         IDENR = lv_idenr
         GSBER = lv_gsber
         X_ARCHK = lv_x_archk
         X_BUKRS = lv_x_bukrs
         X_BNKKO = lv_x_bnkko
         X_GRUPP = lv_x_grupp
         X_EBENE = lv_x_ebene
         X_DISPW = lv_x_dispw
         X_DATUM = lv_x_datum
         X_IDENR = lv_x_idenr
         MANDT = lv_mandt
         X_GSBER = lv_x_gsber
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         ARCHK = lv_archk
         BUKRS = lv_bukrs
         BNKKO = lv_bnkko
         GRUPP = lv_grupp
         EBENE = lv_ebene
         DISPW = lv_dispw
         DATUM = lv_datum
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EFFDES




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EFFDES

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_fdes) = 'E'.
 
 
"SELECT single IDENR FROM FDES INTO @DATA(ld_idenr).
 
"SELECT single GSBER FROM FDES INTO @DATA(ld_gsber).
 
DATA(ld_x_archk) = ' '.
 
DATA(ld_x_bukrs) = ' '.
 
DATA(ld_x_bnkko) = ' '.
 
DATA(ld_x_grupp) = ' '.
 
DATA(ld_x_ebene) = ' '.
 
DATA(ld_x_dispw) = ' '.
 
DATA(ld_x_datum) = ' '.
 
DATA(ld_x_idenr) = ' '.
 
"SELECT single MANDT FROM FDES INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld_x_gsber) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single ARCHK FROM FDES INTO @DATA(ld_archk).
 
"SELECT single BUKRS FROM FDES INTO @DATA(ld_bukrs).
 
"SELECT single BNKKO FROM FDES INTO @DATA(ld_bnkko).
 
"SELECT single GRUPP FROM FDES INTO @DATA(ld_grupp).
 
"SELECT single EBENE FROM FDES INTO @DATA(ld_ebene).
 
"SELECT single DISPW FROM FDES INTO @DATA(ld_dispw).
 
"SELECT single DATUM FROM FDES INTO @DATA(ld_datum).
 


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!