SAP DEQUEUE_EATPENQE Function Module for Release lock on object EATPENQE









DEQUEUE_EATPENQE is a standard dequeue eatpenqe 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 EATPENQE 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 eatpenqe FM, simply by entering the name DEQUEUE_EATPENQE into the relevant SAP transaction such as SE37 or SE38.

Function Group: /1BCDWBEN/AEN0000
Program Name: /1BCDWBEN/SAPLAEN0000
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function DEQUEUE_EATPENQE 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_EATPENQE'"Release lock on object EATPENQE
EXPORTING
* MODE_ATPENQ = 'E' "Lock mode for table ATPENQ
* MBDAT = "09th enqueue argument
* ENQID = "10th enqueue argument
* VPMAT = "11th enqueue argument
* VPWRK = "12th enqueue argument
* VPZUO = "13th enqueue argument
* ATPIF = "14th enqueue argument
* SORT1 = "15th enqueue argument
* X_MATNR = ' ' "Fill argument 03 with initial value?
* X_WERKS = ' ' "Fill argument 04 with initial value?
* X_BERID = ' ' "Fill argument 05 with initial value?
* MANDT_ATP = SY-MANDT "01th enqueue argument
* X_LGORT = ' ' "Fill argument 06 with initial value?
* X_CHARG = ' ' "Fill argument 07 with initial value?
* X_DELKZ = ' ' "Fill argument 08 with initial value?
* X_MBDAT = ' ' "Fill argument 09 with initial value?
* X_ENQID = ' ' "Fill argument 10 with initial value?
* X_VPMAT = ' ' "Fill argument 11 with initial value?
* X_VPWRK = ' ' "Fill argument 12 with initial value?
* X_VPZUO = ' ' "Fill argument 13 with initial value?
* X_ATPIF = ' ' "Fill argument 14 with initial value?
* X_SORT1 = ' ' "Fill argument 15 with initial value?
* MANDT = SY-MANDT "02th enqueue argument
* _SCOPE = '3' "
* _SYNCHRON = ' ' "Synchonous unlock
* _COLLECT = ' ' "Initially only collect lock
* MATNR = "03th enqueue argument
* WERKS = "04th enqueue argument
* BERID = "05th enqueue argument
* LGORT = "06th enqueue argument
* CHARG = "07th enqueue argument
* DELKZ = "08th enqueue argument
.



IMPORTING Parameters details for DEQUEUE_EATPENQE

MODE_ATPENQ - Lock mode for table ATPENQ

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

MBDAT - 09th enqueue argument

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

ENQID - 10th enqueue argument

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

VPMAT - 11th enqueue argument

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

VPWRK - 12th enqueue argument

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

VPZUO - 13th enqueue argument

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

ATPIF - 14th enqueue argument

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

SORT1 - 15th enqueue argument

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

X_MATNR - Fill argument 03 with initial value?

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

X_WERKS - Fill argument 04 with initial value?

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

X_BERID - Fill argument 05 with initial value?

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

MANDT_ATP - 01th enqueue argument

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

X_LGORT - Fill argument 06 with initial value?

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

X_CHARG - Fill argument 07 with initial value?

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

X_DELKZ - Fill argument 08 with initial value?

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

X_MBDAT - Fill argument 09 with initial value?

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

X_ENQID - Fill argument 10 with initial value?

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

X_VPMAT - Fill argument 11 with initial value?

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

X_VPWRK - Fill argument 12 with initial value?

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

X_VPZUO - Fill argument 13 with initial value?

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

X_ATPIF - Fill argument 14 with initial value?

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

X_SORT1 - Fill argument 15 with initial value?

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

MANDT - 02th enqueue argument

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

_SCOPE -

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

_SYNCHRON - Synchonous unlock

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

MATNR - 03th enqueue argument

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

WERKS - 04th enqueue argument

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

BERID - 05th enqueue argument

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

LGORT - 06th enqueue argument

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

CHARG - 07th enqueue argument

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

DELKZ - 08th enqueue argument

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

Copy and paste ABAP code example for DEQUEUE_EATPENQE 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_atpenq  TYPE ENQMODE, "   'E'
lv_mbdat  TYPE ATPENQ-MBDAT, "   
lv_enqid  TYPE ATPENQ-ENQID, "   
lv_vpmat  TYPE ATPENQ-VPMAT, "   
lv_vpwrk  TYPE ATPENQ-VPWRK, "   
lv_vpzuo  TYPE ATPENQ-VPZUO, "   
lv_atpif  TYPE ATPENQ-ATPIF, "   
lv_sort1  TYPE ATPENQ-SORT1, "   
lv_x_matnr  TYPE DDENQXPAR, "   SPACE
lv_x_werks  TYPE DDENQXPAR, "   SPACE
lv_x_berid  TYPE DDENQXPAR, "   SPACE
lv_mandt_atp  TYPE ATPENQ-MANDT_ATP, "   SY-MANDT
lv_x_lgort  TYPE DDENQXPAR, "   SPACE
lv_x_charg  TYPE DDENQXPAR, "   SPACE
lv_x_delkz  TYPE DDENQXPAR, "   SPACE
lv_x_mbdat  TYPE DDENQXPAR, "   SPACE
lv_x_enqid  TYPE DDENQXPAR, "   SPACE
lv_x_vpmat  TYPE DDENQXPAR, "   SPACE
lv_x_vpwrk  TYPE DDENQXPAR, "   SPACE
lv_x_vpzuo  TYPE DDENQXPAR, "   SPACE
lv_x_atpif  TYPE DDENQXPAR, "   SPACE
lv_x_sort1  TYPE DDENQXPAR, "   SPACE
lv_mandt  TYPE ATPENQ-MANDT, "   SY-MANDT
lv__scope  TYPE DDENQSCOPE, "   '3'
lv__synchron  TYPE DDENQSYNC, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_matnr  TYPE ATPENQ-MATNR, "   
lv_werks  TYPE ATPENQ-WERKS, "   
lv_berid  TYPE ATPENQ-BERID, "   
lv_lgort  TYPE ATPENQ-LGORT, "   
lv_charg  TYPE ATPENQ-CHARG, "   
lv_delkz  TYPE ATPENQ-DELKZ. "   

  CALL FUNCTION 'DEQUEUE_EATPENQE'  "Release lock on object EATPENQE
    EXPORTING
         MODE_ATPENQ = lv_mode_atpenq
         MBDAT = lv_mbdat
         ENQID = lv_enqid
         VPMAT = lv_vpmat
         VPWRK = lv_vpwrk
         VPZUO = lv_vpzuo
         ATPIF = lv_atpif
         SORT1 = lv_sort1
         X_MATNR = lv_x_matnr
         X_WERKS = lv_x_werks
         X_BERID = lv_x_berid
         MANDT_ATP = lv_mandt_atp
         X_LGORT = lv_x_lgort
         X_CHARG = lv_x_charg
         X_DELKZ = lv_x_delkz
         X_MBDAT = lv_x_mbdat
         X_ENQID = lv_x_enqid
         X_VPMAT = lv_x_vpmat
         X_VPWRK = lv_x_vpwrk
         X_VPZUO = lv_x_vpzuo
         X_ATPIF = lv_x_atpif
         X_SORT1 = lv_x_sort1
         MANDT = lv_mandt
         _SCOPE = lv__scope
         _SYNCHRON = lv__synchron
         _COLLECT = lv__collect
         MATNR = lv_matnr
         WERKS = lv_werks
         BERID = lv_berid
         LGORT = lv_lgort
         CHARG = lv_charg
         DELKZ = lv_delkz
. " DEQUEUE_EATPENQE




ABAP code using 7.40 inline data declarations to call FM DEQUEUE_EATPENQE

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_atpenq) = 'E'.
 
"SELECT single MBDAT FROM ATPENQ INTO @DATA(ld_mbdat).
 
"SELECT single ENQID FROM ATPENQ INTO @DATA(ld_enqid).
 
"SELECT single VPMAT FROM ATPENQ INTO @DATA(ld_vpmat).
 
"SELECT single VPWRK FROM ATPENQ INTO @DATA(ld_vpwrk).
 
"SELECT single VPZUO FROM ATPENQ INTO @DATA(ld_vpzuo).
 
"SELECT single ATPIF FROM ATPENQ INTO @DATA(ld_atpif).
 
"SELECT single SORT1 FROM ATPENQ INTO @DATA(ld_sort1).
 
DATA(ld_x_matnr) = ' '.
 
DATA(ld_x_werks) = ' '.
 
DATA(ld_x_berid) = ' '.
 
"SELECT single MANDT_ATP FROM ATPENQ INTO @DATA(ld_mandt_atp).
DATA(ld_mandt_atp) = SY-MANDT.
 
DATA(ld_x_lgort) = ' '.
 
DATA(ld_x_charg) = ' '.
 
DATA(ld_x_delkz) = ' '.
 
DATA(ld_x_mbdat) = ' '.
 
DATA(ld_x_enqid) = ' '.
 
DATA(ld_x_vpmat) = ' '.
 
DATA(ld_x_vpwrk) = ' '.
 
DATA(ld_x_vpzuo) = ' '.
 
DATA(ld_x_atpif) = ' '.
 
DATA(ld_x_sort1) = ' '.
 
"SELECT single MANDT FROM ATPENQ INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
DATA(ld__scope) = '3'.
 
DATA(ld__synchron) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single MATNR FROM ATPENQ INTO @DATA(ld_matnr).
 
"SELECT single WERKS FROM ATPENQ INTO @DATA(ld_werks).
 
"SELECT single BERID FROM ATPENQ INTO @DATA(ld_berid).
 
"SELECT single LGORT FROM ATPENQ INTO @DATA(ld_lgort).
 
"SELECT single CHARG FROM ATPENQ INTO @DATA(ld_charg).
 
"SELECT single DELKZ FROM ATPENQ INTO @DATA(ld_delkz).
 


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!