SAP ENQUEUE_ECKEKOW Function Module for Request lock for object ECKEKOW









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

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



Function ENQUEUE_ECKEKOW 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_ECKEKOW'"Request lock for object ECKEKOW
EXPORTING
* MODE_KEKO_ENQUEUE_WERKS = 'E' "Lock mode for table KEKO_ENQUEUE_WERKS
* WERKS = "09th enqueue argument
* X_BZOBJ = ' ' "Fill argument 02 with initial value?
* X_KALNR = ' ' "Fill argument 03 with initial value?
* X_KALKA = ' ' "Fill argument 04 with initial value?
* X_KADKY = ' ' "Fill argument 05 with initial value?
* X_TVERS = ' ' "Fill argument 06 with initial value?
* X_BWVAR = ' ' "Fill argument 07 with initial value?
* X_KKZMA = ' ' "Fill argument 08 with initial value?
* X_WERKS = ' ' "Fill argument 09 with initial value?
* _SCOPE = '2' "
* MANDT = SY-MANDT "01th enqueue argument
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* BZOBJ = "02th enqueue argument
* KALNR = "03th enqueue argument
* KALKA = "04th enqueue argument
* KADKY = "05th enqueue argument
* TVERS = "06th enqueue argument
* BWVAR = "07th enqueue argument
* KKZMA = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_ECKEKOW

MODE_KEKO_ENQUEUE_WERKS - Lock mode for table KEKO_ENQUEUE_WERKS

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

WERKS - 09th enqueue argument

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

X_BZOBJ - Fill argument 02 with initial value?

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

X_KALNR - Fill argument 03 with initial value?

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

X_KALKA - Fill argument 04 with initial value?

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

X_KADKY - Fill argument 05 with initial value?

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

X_TVERS - Fill argument 06 with initial value?

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

X_BWVAR - Fill argument 07 with initial value?

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

X_KKZMA - Fill argument 08 with initial value?

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

X_WERKS - 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: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MANDT - 01th enqueue argument

Data type: KEKO_ENQUEUE_WERKS-MANDT
Default: SY-MANDT
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)

BZOBJ - 02th enqueue argument

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

KALNR - 03th enqueue argument

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

KALKA - 04th enqueue argument

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

KADKY - 05th enqueue argument

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

TVERS - 06th enqueue argument

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

BWVAR - 07th enqueue argument

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

KKZMA - 08th enqueue argument

Data type: KEKO_ENQUEUE_WERKS-KKZMA
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_ECKEKOW 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_foreign_lock  TYPE STRING, "   
lv_mode_keko_enqueue_werks  TYPE ENQMODE, "   'E'
lv_werks  TYPE KEKO_ENQUEUE_WERKS-WERKS, "   
lv_x_bzobj  TYPE KEKO_ENQUEUE_WERKS, "   SPACE
lv_x_kalnr  TYPE KEKO_ENQUEUE_WERKS, "   SPACE
lv_x_kalka  TYPE KEKO_ENQUEUE_WERKS, "   SPACE
lv_x_kadky  TYPE KEKO_ENQUEUE_WERKS, "   SPACE
lv_x_tvers  TYPE KEKO_ENQUEUE_WERKS, "   SPACE
lv_x_bwvar  TYPE KEKO_ENQUEUE_WERKS, "   SPACE
lv_x_kkzma  TYPE KEKO_ENQUEUE_WERKS, "   SPACE
lv_x_werks  TYPE KEKO_ENQUEUE_WERKS, "   SPACE
lv__scope  TYPE KEKO_ENQUEUE_WERKS, "   '2'
lv_mandt  TYPE KEKO_ENQUEUE_WERKS-MANDT, "   SY-MANDT
lv_system_failure  TYPE KEKO_ENQUEUE_WERKS, "   
lv__wait  TYPE KEKO_ENQUEUE_WERKS, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_bzobj  TYPE KEKO_ENQUEUE_WERKS-BZOBJ, "   
lv_kalnr  TYPE KEKO_ENQUEUE_WERKS-KALNR, "   
lv_kalka  TYPE KEKO_ENQUEUE_WERKS-KALKA, "   
lv_kadky  TYPE KEKO_ENQUEUE_WERKS-KADKY, "   
lv_tvers  TYPE KEKO_ENQUEUE_WERKS-TVERS, "   
lv_bwvar  TYPE KEKO_ENQUEUE_WERKS-BWVAR, "   
lv_kkzma  TYPE KEKO_ENQUEUE_WERKS-KKZMA. "   

  CALL FUNCTION 'ENQUEUE_ECKEKOW'  "Request lock for object ECKEKOW
    EXPORTING
         MODE_KEKO_ENQUEUE_WERKS = lv_mode_keko_enqueue_werks
         WERKS = lv_werks
         X_BZOBJ = lv_x_bzobj
         X_KALNR = lv_x_kalnr
         X_KALKA = lv_x_kalka
         X_KADKY = lv_x_kadky
         X_TVERS = lv_x_tvers
         X_BWVAR = lv_x_bwvar
         X_KKZMA = lv_x_kkzma
         X_WERKS = lv_x_werks
         _SCOPE = lv__scope
         MANDT = lv_mandt
         _WAIT = lv__wait
         _COLLECT = lv__collect
         BZOBJ = lv_bzobj
         KALNR = lv_kalnr
         KALKA = lv_kalka
         KADKY = lv_kadky
         TVERS = lv_tvers
         BWVAR = lv_bwvar
         KKZMA = lv_kkzma
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_ECKEKOW




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_ECKEKOW

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_keko_enqueue_werks) = 'E'.
 
"SELECT single WERKS FROM KEKO_ENQUEUE_WERKS INTO @DATA(ld_werks).
 
DATA(ld_x_bzobj) = ' '.
 
DATA(ld_x_kalnr) = ' '.
 
DATA(ld_x_kalka) = ' '.
 
DATA(ld_x_kadky) = ' '.
 
DATA(ld_x_tvers) = ' '.
 
DATA(ld_x_bwvar) = ' '.
 
DATA(ld_x_kkzma) = ' '.
 
DATA(ld_x_werks) = ' '.
 
DATA(ld__scope) = '2'.
 
"SELECT single MANDT FROM KEKO_ENQUEUE_WERKS INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single BZOBJ FROM KEKO_ENQUEUE_WERKS INTO @DATA(ld_bzobj).
 
"SELECT single KALNR FROM KEKO_ENQUEUE_WERKS INTO @DATA(ld_kalnr).
 
"SELECT single KALKA FROM KEKO_ENQUEUE_WERKS INTO @DATA(ld_kalka).
 
"SELECT single KADKY FROM KEKO_ENQUEUE_WERKS INTO @DATA(ld_kadky).
 
"SELECT single TVERS FROM KEKO_ENQUEUE_WERKS INTO @DATA(ld_tvers).
 
"SELECT single BWVAR FROM KEKO_ENQUEUE_WERKS INTO @DATA(ld_bwvar).
 
"SELECT single KKZMA FROM KEKO_ENQUEUE_WERKS INTO @DATA(ld_kkzma).
 


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!