SAP ENQUEUE_EFBV_ENQUEUE_TAB Function Module for Request lock for object EFBV_ENQUEUE_TAB









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

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



Function ENQUEUE_EFBV_ENQUEUE_TAB 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_EFBV_ENQUEUE_TAB'"Request lock for object EFBV_ENQUEUE_TAB
EXPORTING
* MODE_FBV_ENQUEUE_TABLE = 'E' "Lock mode for table FBV_ENQUEUE_TABLE
* X_POPER = ' ' "Fill argument 03 with initial value?
* X_CURTYPE = ' ' "Fill argument 04 with initial value?
* X_BUKRS = ' ' "Fill argument 05 with initial value?
* X_PRCID = ' ' "Fill argument 06 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* PRKZG = "Enqueue argument 01
* BDATJ = "Enqueue argument 02
* POPER = "Enqueue argument 03
* CURTYPE = "Enqueue argument 04
* BUKRS = "Enqueue argument 05
* PRCID = "Enqueue argument 06
* X_PRKZG = ' ' "Fill argument 01 with initial value?
* X_BDATJ = ' ' "Fill argument 02 with initial value?

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EFBV_ENQUEUE_TAB

MODE_FBV_ENQUEUE_TABLE - Lock mode for table FBV_ENQUEUE_TABLE

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

X_POPER - Fill argument 03 with initial value?

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

X_CURTYPE - Fill argument 04 with initial value?

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

X_BUKRS - Fill argument 05 with initial value?

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

X_PRCID - Fill argument 06 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)

PRKZG - Enqueue argument 01

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

BDATJ - Enqueue argument 02

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

POPER - Enqueue argument 03

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

CURTYPE - Enqueue argument 04

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

BUKRS - Enqueue argument 05

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

PRCID - Enqueue argument 06

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

X_PRKZG - Fill argument 01 with initial value?

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

X_BDATJ - Fill argument 02 with initial value?

Data type:
Default: SPACE
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_EFBV_ENQUEUE_TAB 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_fbv_enqueue_table  TYPE ENQMODE, "   'E'
lv_x_poper  TYPE ENQMODE, "   SPACE
lv_x_curtype  TYPE ENQMODE, "   SPACE
lv_x_bukrs  TYPE ENQMODE, "   SPACE
lv_x_prcid  TYPE ENQMODE, "   SPACE
lv__scope  TYPE ENQMODE, "   '2'
lv__wait  TYPE ENQMODE, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_prkzg  TYPE FBV_ENQUEUE_TABLE-PRKZG, "   
lv_system_failure  TYPE FBV_ENQUEUE_TABLE, "   
lv_bdatj  TYPE FBV_ENQUEUE_TABLE-BDATJ, "   
lv_poper  TYPE FBV_ENQUEUE_TABLE-POPER, "   
lv_curtype  TYPE FBV_ENQUEUE_TABLE-CURTYPE, "   
lv_bukrs  TYPE FBV_ENQUEUE_TABLE-BUKRS, "   
lv_prcid  TYPE FBV_ENQUEUE_TABLE-PRCID, "   
lv_x_prkzg  TYPE FBV_ENQUEUE_TABLE, "   SPACE
lv_x_bdatj  TYPE FBV_ENQUEUE_TABLE. "   SPACE

  CALL FUNCTION 'ENQUEUE_EFBV_ENQUEUE_TAB'  "Request lock for object EFBV_ENQUEUE_TAB
    EXPORTING
         MODE_FBV_ENQUEUE_TABLE = lv_mode_fbv_enqueue_table
         X_POPER = lv_x_poper
         X_CURTYPE = lv_x_curtype
         X_BUKRS = lv_x_bukrs
         X_PRCID = lv_x_prcid
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         PRKZG = lv_prkzg
         BDATJ = lv_bdatj
         POPER = lv_poper
         CURTYPE = lv_curtype
         BUKRS = lv_bukrs
         PRCID = lv_prcid
         X_PRKZG = lv_x_prkzg
         X_BDATJ = lv_x_bdatj
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EFBV_ENQUEUE_TAB




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EFBV_ENQUEUE_TAB

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_fbv_enqueue_table) = 'E'.
 
DATA(ld_x_poper) = ' '.
 
DATA(ld_x_curtype) = ' '.
 
DATA(ld_x_bukrs) = ' '.
 
DATA(ld_x_prcid) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single PRKZG FROM FBV_ENQUEUE_TABLE INTO @DATA(ld_prkzg).
 
 
"SELECT single BDATJ FROM FBV_ENQUEUE_TABLE INTO @DATA(ld_bdatj).
 
"SELECT single POPER FROM FBV_ENQUEUE_TABLE INTO @DATA(ld_poper).
 
"SELECT single CURTYPE FROM FBV_ENQUEUE_TABLE INTO @DATA(ld_curtype).
 
"SELECT single BUKRS FROM FBV_ENQUEUE_TABLE INTO @DATA(ld_bukrs).
 
"SELECT single PRCID FROM FBV_ENQUEUE_TABLE INTO @DATA(ld_prcid).
 
DATA(ld_x_prkzg) = ' '.
 
DATA(ld_x_bdatj) = ' '.
 


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!