SAP ENQUEUE_EKCEPLOB Function Module for









ENQUEUE_EKCEPLOB is a standard enqueue ekceplob SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ekceplob FM, simply by entering the name ENQUEUE_EKCEPLOB into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_EKCEPLOB 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_EKCEPLOB'"
EXPORTING
* MODE_CEPL2 = 'X' "
* X_ERKRS = ' ' "
* X_PALEDGER = ' ' "
* X_VRGAR = ' ' "
* X_VERSI = ' ' "
* X_PAOBJNR = ' ' "
* X_PASUBNR = ' ' "
* X_KSTAR = ' ' "
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "
* MANDT = SY-MANDT "
* ERKRS = "
* PALEDGER = "
* VRGAR = "
* VERSI = "
* PAOBJNR = "
* PASUBNR = "
* KSTAR = "

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EKCEPLOB

MODE_CEPL2 -

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

X_ERKRS -

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

X_PALEDGER -

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

X_VRGAR -

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

X_VERSI -

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

X_PAOBJNR -

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

X_PASUBNR -

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

X_KSTAR -

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 -

Data type: DDENQ_LIKE-COLLECT
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

MANDT -

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

ERKRS -

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

PALEDGER -

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

VRGAR -

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

VERSI -

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

PAOBJNR -

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

PASUBNR -

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

KSTAR -

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

EXCEPTIONS details

FOREIGN_LOCK -

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

SYSTEM_FAILURE -

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

Copy and paste ABAP code example for ENQUEUE_EKCEPLOB 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_cepl2  TYPE DD26E-ENQMODE, "   'X'
lv_foreign_lock  TYPE DD26E, "   
lv_x_erkrs  TYPE DD26E, "   SPACE
lv_x_paledger  TYPE DD26E, "   SPACE
lv_x_vrgar  TYPE DD26E, "   SPACE
lv_x_versi  TYPE DD26E, "   SPACE
lv_x_paobjnr  TYPE DD26E, "   SPACE
lv_x_pasubnr  TYPE DD26E, "   SPACE
lv_x_kstar  TYPE DD26E, "   SPACE
lv__scope  TYPE DD26E, "   '2'
lv__wait  TYPE DD26E, "   SPACE
lv__collect  TYPE DDENQ_LIKE-COLLECT, "   ' '
lv_mandt  TYPE CEPL2-MANDT, "   SY-MANDT
lv_system_failure  TYPE CEPL2, "   
lv_erkrs  TYPE CEPL2-ERKRS, "   
lv_paledger  TYPE CEPL2-PALEDGER, "   
lv_vrgar  TYPE CEPL2-VRGAR, "   
lv_versi  TYPE CEPL2-VERSI, "   
lv_paobjnr  TYPE CEPL2-PAOBJNR, "   
lv_pasubnr  TYPE CEPL2-PASUBNR, "   
lv_kstar  TYPE CEPL2-KSTAR. "   

  CALL FUNCTION 'ENQUEUE_EKCEPLOB'  "
    EXPORTING
         MODE_CEPL2 = lv_mode_cepl2
         X_ERKRS = lv_x_erkrs
         X_PALEDGER = lv_x_paledger
         X_VRGAR = lv_x_vrgar
         X_VERSI = lv_x_versi
         X_PAOBJNR = lv_x_paobjnr
         X_PASUBNR = lv_x_pasubnr
         X_KSTAR = lv_x_kstar
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         MANDT = lv_mandt
         ERKRS = lv_erkrs
         PALEDGER = lv_paledger
         VRGAR = lv_vrgar
         VERSI = lv_versi
         PAOBJNR = lv_paobjnr
         PASUBNR = lv_pasubnr
         KSTAR = lv_kstar
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EKCEPLOB




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EKCEPLOB

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_cepl2).
DATA(ld_mode_cepl2) = 'X'.
 
 
DATA(ld_x_erkrs) = ' '.
 
DATA(ld_x_paledger) = ' '.
 
DATA(ld_x_vrgar) = ' '.
 
DATA(ld_x_versi) = ' '.
 
DATA(ld_x_paobjnr) = ' '.
 
DATA(ld_x_pasubnr) = ' '.
 
DATA(ld_x_kstar) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
"SELECT single COLLECT FROM DDENQ_LIKE INTO @DATA(ld__collect).
DATA(ld__collect) = ' '.
 
"SELECT single MANDT FROM CEPL2 INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
"SELECT single ERKRS FROM CEPL2 INTO @DATA(ld_erkrs).
 
"SELECT single PALEDGER FROM CEPL2 INTO @DATA(ld_paledger).
 
"SELECT single VRGAR FROM CEPL2 INTO @DATA(ld_vrgar).
 
"SELECT single VERSI FROM CEPL2 INTO @DATA(ld_versi).
 
"SELECT single PAOBJNR FROM CEPL2 INTO @DATA(ld_paobjnr).
 
"SELECT single PASUBNR FROM CEPL2 INTO @DATA(ld_pasubnr).
 
"SELECT single KSTAR FROM CEPL2 INTO @DATA(ld_kstar).
 


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!