SAP DEQUEUE_EKKONR Function Module for Release lock on object EKKONR









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

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



Function DEQUEUE_EKKONR 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_EKKONR'"Release lock on object EKKONR
EXPORTING
* MODE_KONR = 'E' "Lock mode for table KONR
* VARFLD002 = "09th enqueue argument
* X_KOKRS = ' ' "Fill argument 02 with initial value?
* X_VERSN = ' ' "Fill argument 03 with initial value?
* X_GJAHR = ' ' "Fill argument 04 with initial value?
* X_RESRC = ' ' "Fill argument 05 with initial value?
* X_PGUAB = ' ' "Fill argument 06 with initial value?
* X_KSCHL = ' ' "Fill argument 07 with initial value?
* X_VARFLD001 = ' ' "Fill argument 08 with initial value?
* X_VARFLD002 = ' ' "Fill argument 09 with initial value?
* _SCOPE = '3' "
* MANDT = SY-MANDT "01th enqueue argument
* _SYNCHRON = ' ' "Synchonous unlock
* _COLLECT = ' ' "Initially only collect lock
* KOKRS = "02th enqueue argument
* VERSN = "03th enqueue argument
* GJAHR = "04th enqueue argument
* RESRC = "05th enqueue argument
* PGUAB = "06th enqueue argument
* KSCHL = "07th enqueue argument
* VARFLD001 = "08th enqueue argument
.



IMPORTING Parameters details for DEQUEUE_EKKONR

MODE_KONR - Lock mode for table KONR

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

VARFLD002 - 09th enqueue argument

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

X_KOKRS - Fill argument 02 with initial value?

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

X_VERSN - Fill argument 03 with initial value?

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

X_GJAHR - Fill argument 04 with initial value?

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

X_RESRC - Fill argument 05 with initial value?

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

X_PGUAB - Fill argument 06 with initial value?

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

X_KSCHL - Fill argument 07 with initial value?

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

X_VARFLD001 - Fill argument 08 with initial value?

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

X_VARFLD002 - 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: KONR-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)

KOKRS - 02th enqueue argument

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

VERSN - 03th enqueue argument

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

GJAHR - 04th enqueue argument

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

RESRC - 05th enqueue argument

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

PGUAB - 06th enqueue argument

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

KSCHL - 07th enqueue argument

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

VARFLD001 - 08th enqueue argument

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

Copy and paste ABAP code example for DEQUEUE_EKKONR 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_konr  TYPE ENQMODE, "   'E'
lv_varfld002  TYPE KONR-VARFLD002, "   
lv_x_kokrs  TYPE KONR, "   SPACE
lv_x_versn  TYPE KONR, "   SPACE
lv_x_gjahr  TYPE KONR, "   SPACE
lv_x_resrc  TYPE KONR, "   SPACE
lv_x_pguab  TYPE KONR, "   SPACE
lv_x_kschl  TYPE KONR, "   SPACE
lv_x_varfld001  TYPE KONR, "   SPACE
lv_x_varfld002  TYPE KONR, "   SPACE
lv__scope  TYPE KONR, "   '3'
lv_mandt  TYPE KONR-MANDT, "   SY-MANDT
lv__synchron  TYPE KONR, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_kokrs  TYPE KONR-KOKRS, "   
lv_versn  TYPE KONR-VERSN, "   
lv_gjahr  TYPE KONR-GJAHR, "   
lv_resrc  TYPE KONR-RESRC, "   
lv_pguab  TYPE KONR-PGUAB, "   
lv_kschl  TYPE KONR-KSCHL, "   
lv_varfld001  TYPE KONR-VARFLD001. "   

  CALL FUNCTION 'DEQUEUE_EKKONR'  "Release lock on object EKKONR
    EXPORTING
         MODE_KONR = lv_mode_konr
         VARFLD002 = lv_varfld002
         X_KOKRS = lv_x_kokrs
         X_VERSN = lv_x_versn
         X_GJAHR = lv_x_gjahr
         X_RESRC = lv_x_resrc
         X_PGUAB = lv_x_pguab
         X_KSCHL = lv_x_kschl
         X_VARFLD001 = lv_x_varfld001
         X_VARFLD002 = lv_x_varfld002
         _SCOPE = lv__scope
         MANDT = lv_mandt
         _SYNCHRON = lv__synchron
         _COLLECT = lv__collect
         KOKRS = lv_kokrs
         VERSN = lv_versn
         GJAHR = lv_gjahr
         RESRC = lv_resrc
         PGUAB = lv_pguab
         KSCHL = lv_kschl
         VARFLD001 = lv_varfld001
. " DEQUEUE_EKKONR




ABAP code using 7.40 inline data declarations to call FM DEQUEUE_EKKONR

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_konr) = 'E'.
 
"SELECT single VARFLD002 FROM KONR INTO @DATA(ld_varfld002).
 
DATA(ld_x_kokrs) = ' '.
 
DATA(ld_x_versn) = ' '.
 
DATA(ld_x_gjahr) = ' '.
 
DATA(ld_x_resrc) = ' '.
 
DATA(ld_x_pguab) = ' '.
 
DATA(ld_x_kschl) = ' '.
 
DATA(ld_x_varfld001) = ' '.
 
DATA(ld_x_varfld002) = ' '.
 
DATA(ld__scope) = '3'.
 
"SELECT single MANDT FROM KONR INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
DATA(ld__synchron) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single KOKRS FROM KONR INTO @DATA(ld_kokrs).
 
"SELECT single VERSN FROM KONR INTO @DATA(ld_versn).
 
"SELECT single GJAHR FROM KONR INTO @DATA(ld_gjahr).
 
"SELECT single RESRC FROM KONR INTO @DATA(ld_resrc).
 
"SELECT single PGUAB FROM KONR INTO @DATA(ld_pguab).
 
"SELECT single KSCHL FROM KONR INTO @DATA(ld_kschl).
 
"SELECT single VARFLD001 FROM KONR INTO @DATA(ld_varfld001).
 


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!