SAP DEQUEUE_EMPAPL Function Module for Release lock on object EMPAPL









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

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



Function DEQUEUE_EMPAPL 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_EMPAPL'"Release lock on object EMPAPL
EXPORTING
* MODE_PAPL = 'E' "Lock mode for table PAPL
* SEQNR = "09th enqueue argument
* X_PERNR = ' ' "Fill argument 02 with initial value?
* X_INFTY = ' ' "Fill argument 03 with initial value?
* X_SUBTY = ' ' "Fill argument 04 with initial value?
* X_OBJPS = ' ' "Fill argument 05 with initial value?
* X_SPRPS = ' ' "Fill argument 06 with initial value?
* X_ENDDA = ' ' "Fill argument 07 with initial value?
* X_BEGDA = ' ' "Fill argument 08 with initial value?
* X_SEQNR = ' ' "Fill argument 09 with initial value?
* _SCOPE = '3' "
* MANDT = SY-MANDT "01th enqueue argument
* _SYNCHRON = ' ' "Synchonous unlock
* _COLLECT = ' ' "Initially only collect lock
* PERNR = "02th enqueue argument
* INFTY = "03th enqueue argument
* SUBTY = "04th enqueue argument
* OBJPS = "05th enqueue argument
* SPRPS = "06th enqueue argument
* ENDDA = "07th enqueue argument
* BEGDA = "08th enqueue argument
.



IMPORTING Parameters details for DEQUEUE_EMPAPL

MODE_PAPL - Lock mode for table PAPL

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

SEQNR - 09th enqueue argument

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

X_PERNR - Fill argument 02 with initial value?

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

X_INFTY - Fill argument 03 with initial value?

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

X_SUBTY - Fill argument 04 with initial value?

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

X_OBJPS - Fill argument 05 with initial value?

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

X_SPRPS - Fill argument 06 with initial value?

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

X_ENDDA - Fill argument 07 with initial value?

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

X_BEGDA - Fill argument 08 with initial value?

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

X_SEQNR - 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: PAPL-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: DDENQ_LIKE-COLLECT
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PERNR - 02th enqueue argument

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

INFTY - 03th enqueue argument

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

SUBTY - 04th enqueue argument

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

OBJPS - 05th enqueue argument

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

SPRPS - 06th enqueue argument

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

ENDDA - 07th enqueue argument

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

BEGDA - 08th enqueue argument

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

Copy and paste ABAP code example for DEQUEUE_EMPAPL 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_papl  TYPE DD26E-ENQMODE, "   'E'
lv_seqnr  TYPE PAPL-SEQNR, "   
lv_x_pernr  TYPE PAPL, "   SPACE
lv_x_infty  TYPE PAPL, "   SPACE
lv_x_subty  TYPE PAPL, "   SPACE
lv_x_objps  TYPE PAPL, "   SPACE
lv_x_sprps  TYPE PAPL, "   SPACE
lv_x_endda  TYPE PAPL, "   SPACE
lv_x_begda  TYPE PAPL, "   SPACE
lv_x_seqnr  TYPE PAPL, "   SPACE
lv__scope  TYPE PAPL, "   '3'
lv_mandt  TYPE PAPL-MANDT, "   SY-MANDT
lv__synchron  TYPE PAPL, "   SPACE
lv__collect  TYPE DDENQ_LIKE-COLLECT, "   ' '
lv_pernr  TYPE PAPL-PERNR, "   
lv_infty  TYPE PAPL-INFTY, "   
lv_subty  TYPE PAPL-SUBTY, "   
lv_objps  TYPE PAPL-OBJPS, "   
lv_sprps  TYPE PAPL-SPRPS, "   
lv_endda  TYPE PAPL-ENDDA, "   
lv_begda  TYPE PAPL-BEGDA. "   

  CALL FUNCTION 'DEQUEUE_EMPAPL'  "Release lock on object EMPAPL
    EXPORTING
         MODE_PAPL = lv_mode_papl
         SEQNR = lv_seqnr
         X_PERNR = lv_x_pernr
         X_INFTY = lv_x_infty
         X_SUBTY = lv_x_subty
         X_OBJPS = lv_x_objps
         X_SPRPS = lv_x_sprps
         X_ENDDA = lv_x_endda
         X_BEGDA = lv_x_begda
         X_SEQNR = lv_x_seqnr
         _SCOPE = lv__scope
         MANDT = lv_mandt
         _SYNCHRON = lv__synchron
         _COLLECT = lv__collect
         PERNR = lv_pernr
         INFTY = lv_infty
         SUBTY = lv_subty
         OBJPS = lv_objps
         SPRPS = lv_sprps
         ENDDA = lv_endda
         BEGDA = lv_begda
. " DEQUEUE_EMPAPL




ABAP code using 7.40 inline data declarations to call FM DEQUEUE_EMPAPL

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_papl).
DATA(ld_mode_papl) = 'E'.
 
"SELECT single SEQNR FROM PAPL INTO @DATA(ld_seqnr).
 
DATA(ld_x_pernr) = ' '.
 
DATA(ld_x_infty) = ' '.
 
DATA(ld_x_subty) = ' '.
 
DATA(ld_x_objps) = ' '.
 
DATA(ld_x_sprps) = ' '.
 
DATA(ld_x_endda) = ' '.
 
DATA(ld_x_begda) = ' '.
 
DATA(ld_x_seqnr) = ' '.
 
DATA(ld__scope) = '3'.
 
"SELECT single MANDT FROM PAPL INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
DATA(ld__synchron) = ' '.
 
"SELECT single COLLECT FROM DDENQ_LIKE INTO @DATA(ld__collect).
DATA(ld__collect) = ' '.
 
"SELECT single PERNR FROM PAPL INTO @DATA(ld_pernr).
 
"SELECT single INFTY FROM PAPL INTO @DATA(ld_infty).
 
"SELECT single SUBTY FROM PAPL INTO @DATA(ld_subty).
 
"SELECT single OBJPS FROM PAPL INTO @DATA(ld_objps).
 
"SELECT single SPRPS FROM PAPL INTO @DATA(ld_sprps).
 
"SELECT single ENDDA FROM PAPL INTO @DATA(ld_endda).
 
"SELECT single BEGDA FROM PAPL INTO @DATA(ld_begda).
 


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!