SAP ENQUEUE_EEBPJA_EX Function Module for Request lock for object EEBPJA_EX









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

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



Function ENQUEUE_EEBPJA_EX 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_EEBPJA_EX'"Request lock for object EEBPJA_EX
EXPORTING
* MODE_EBPJA = 'E' "Lock mode for table EBPJA
* VERSN = "09th enqueue argument
* VORGA = "10th enqueue argument
* TWAER = "11th enqueue argument
* SUBVO = "12th enqueue argument
* GNJHR = "13th enqueue argument
* FAREA = "14th enqueue argument
* WLJHR = "15th enqueue argument
* X_LEDNR = ' ' "Fill argument 02 with initial value?
* X_OBJNR = ' ' "Fill argument 03 with initial value?
* X_POSIT = ' ' "Fill argument 04 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_TRGKZ = ' ' "Fill argument 05 with initial value?
* X_WRTTP = ' ' "Fill argument 06 with initial value?
* X_GJAHR = ' ' "Fill argument 07 with initial value?
* X_GEBER = ' ' "Fill argument 08 with initial value?
* X_VERSN = ' ' "Fill argument 09 with initial value?
* X_VORGA = ' ' "Fill argument 10 with initial value?
* X_TWAER = ' ' "Fill argument 11 with initial value?
* X_SUBVO = ' ' "Fill argument 12 with initial value?
* X_GNJHR = ' ' "Fill argument 13 with initial value?
* X_FAREA = ' ' "Fill argument 14 with initial value?
* LEDNR = "02th enqueue argument
* X_WLJHR = ' ' "Fill argument 15 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* OBJNR = "03th enqueue argument
* POSIT = "04th enqueue argument
* TRGKZ = "05th enqueue argument
* WRTTP = "06th enqueue argument
* GJAHR = "07th enqueue argument
* GEBER = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EEBPJA_EX

MODE_EBPJA - Lock mode for table EBPJA

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

VERSN - 09th enqueue argument

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

VORGA - 10th enqueue argument

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

TWAER - 11th enqueue argument

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

SUBVO - 12th enqueue argument

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

GNJHR - 13th enqueue argument

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

FAREA - 14th enqueue argument

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

WLJHR - 15th enqueue argument

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

X_LEDNR - Fill argument 02 with initial value?

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

X_OBJNR - Fill argument 03 with initial value?

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

X_POSIT - Fill argument 04 with initial value?

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

MANDT - 01th enqueue argument

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

X_TRGKZ - Fill argument 05 with initial value?

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

X_WRTTP - Fill argument 06 with initial value?

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

X_GJAHR - Fill argument 07 with initial value?

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

X_GEBER - Fill argument 08 with initial value?

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

X_VERSN - Fill argument 09 with initial value?

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

X_VORGA - Fill argument 10 with initial value?

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

X_TWAER - Fill argument 11 with initial value?

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

X_SUBVO - Fill argument 12 with initial value?

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

X_GNJHR - Fill argument 13 with initial value?

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

X_FAREA - Fill argument 14 with initial value?

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

LEDNR - 02th enqueue argument

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

X_WLJHR - Fill argument 15 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)

_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)

OBJNR - 03th enqueue argument

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

POSIT - 04th enqueue argument

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

TRGKZ - 05th enqueue argument

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

WRTTP - 06th enqueue argument

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

GJAHR - 07th enqueue argument

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

GEBER - 08th enqueue argument

Data type: EBPJA-GEBER
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_EEBPJA_EX 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_ebpja  TYPE ENQMODE, "   'E'
lv_foreign_lock  TYPE ENQMODE, "   
lv_versn  TYPE EBPJA-VERSN, "   
lv_vorga  TYPE EBPJA-VORGA, "   
lv_twaer  TYPE EBPJA-TWAER, "   
lv_subvo  TYPE EBPJA-SUBVO, "   
lv_gnjhr  TYPE EBPJA-GNJHR, "   
lv_farea  TYPE EBPJA-FAREA, "   
lv_wljhr  TYPE EBPJA-WLJHR, "   
lv_x_lednr  TYPE EBPJA, "   SPACE
lv_x_objnr  TYPE EBPJA, "   SPACE
lv_x_posit  TYPE EBPJA, "   SPACE
lv_mandt  TYPE EBPJA-MANDT, "   SY-MANDT
lv_system_failure  TYPE EBPJA, "   
lv_x_trgkz  TYPE EBPJA, "   SPACE
lv_x_wrttp  TYPE EBPJA, "   SPACE
lv_x_gjahr  TYPE EBPJA, "   SPACE
lv_x_geber  TYPE EBPJA, "   SPACE
lv_x_versn  TYPE EBPJA, "   SPACE
lv_x_vorga  TYPE EBPJA, "   SPACE
lv_x_twaer  TYPE EBPJA, "   SPACE
lv_x_subvo  TYPE EBPJA, "   SPACE
lv_x_gnjhr  TYPE EBPJA, "   SPACE
lv_x_farea  TYPE EBPJA, "   SPACE
lv_lednr  TYPE EBPJA-LEDNR, "   
lv_x_wljhr  TYPE EBPJA, "   SPACE
lv__scope  TYPE EBPJA, "   '2'
lv__wait  TYPE EBPJA, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_objnr  TYPE EBPJA-OBJNR, "   
lv_posit  TYPE EBPJA-POSIT, "   
lv_trgkz  TYPE EBPJA-TRGKZ, "   
lv_wrttp  TYPE EBPJA-WRTTP, "   
lv_gjahr  TYPE EBPJA-GJAHR, "   
lv_geber  TYPE EBPJA-GEBER. "   

  CALL FUNCTION 'ENQUEUE_EEBPJA_EX'  "Request lock for object EEBPJA_EX
    EXPORTING
         MODE_EBPJA = lv_mode_ebpja
         VERSN = lv_versn
         VORGA = lv_vorga
         TWAER = lv_twaer
         SUBVO = lv_subvo
         GNJHR = lv_gnjhr
         FAREA = lv_farea
         WLJHR = lv_wljhr
         X_LEDNR = lv_x_lednr
         X_OBJNR = lv_x_objnr
         X_POSIT = lv_x_posit
         MANDT = lv_mandt
         X_TRGKZ = lv_x_trgkz
         X_WRTTP = lv_x_wrttp
         X_GJAHR = lv_x_gjahr
         X_GEBER = lv_x_geber
         X_VERSN = lv_x_versn
         X_VORGA = lv_x_vorga
         X_TWAER = lv_x_twaer
         X_SUBVO = lv_x_subvo
         X_GNJHR = lv_x_gnjhr
         X_FAREA = lv_x_farea
         LEDNR = lv_lednr
         X_WLJHR = lv_x_wljhr
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         OBJNR = lv_objnr
         POSIT = lv_posit
         TRGKZ = lv_trgkz
         WRTTP = lv_wrttp
         GJAHR = lv_gjahr
         GEBER = lv_geber
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EEBPJA_EX




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EEBPJA_EX

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_ebpja) = 'E'.
 
 
"SELECT single VERSN FROM EBPJA INTO @DATA(ld_versn).
 
"SELECT single VORGA FROM EBPJA INTO @DATA(ld_vorga).
 
"SELECT single TWAER FROM EBPJA INTO @DATA(ld_twaer).
 
"SELECT single SUBVO FROM EBPJA INTO @DATA(ld_subvo).
 
"SELECT single GNJHR FROM EBPJA INTO @DATA(ld_gnjhr).
 
"SELECT single FAREA FROM EBPJA INTO @DATA(ld_farea).
 
"SELECT single WLJHR FROM EBPJA INTO @DATA(ld_wljhr).
 
DATA(ld_x_lednr) = ' '.
 
DATA(ld_x_objnr) = ' '.
 
DATA(ld_x_posit) = ' '.
 
"SELECT single MANDT FROM EBPJA INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld_x_trgkz) = ' '.
 
DATA(ld_x_wrttp) = ' '.
 
DATA(ld_x_gjahr) = ' '.
 
DATA(ld_x_geber) = ' '.
 
DATA(ld_x_versn) = ' '.
 
DATA(ld_x_vorga) = ' '.
 
DATA(ld_x_twaer) = ' '.
 
DATA(ld_x_subvo) = ' '.
 
DATA(ld_x_gnjhr) = ' '.
 
DATA(ld_x_farea) = ' '.
 
"SELECT single LEDNR FROM EBPJA INTO @DATA(ld_lednr).
 
DATA(ld_x_wljhr) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single OBJNR FROM EBPJA INTO @DATA(ld_objnr).
 
"SELECT single POSIT FROM EBPJA INTO @DATA(ld_posit).
 
"SELECT single TRGKZ FROM EBPJA INTO @DATA(ld_trgkz).
 
"SELECT single WRTTP FROM EBPJA INTO @DATA(ld_wrttp).
 
"SELECT single GJAHR FROM EBPJA INTO @DATA(ld_gjahr).
 
"SELECT single GEBER FROM EBPJA INTO @DATA(ld_geber).
 


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!