SAP ENQUEUE_EFVIBEBE Function Module for Request lock for object EFVIBEBE









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

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



Function ENQUEUE_EFVIBEBE 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_EFVIBEBE'"Request lock for object EFVIBEBE
EXPORTING
* MODE_VIBEBE = 'E' "Lock mode for table VIBEBE
* DJAMON = "06th enqueue argument
* BUKRSAG = "07th enqueue argument
* SINVO = "08th enqueue argument
* GJAHR = "09th enqueue argument
* NBUZEI = "10th enqueue argument
* DGPLAB = "11th enqueue argument
* BUKRSEP = "12th enqueue argument
* SINVOEP = "13th enqueue argument
* GJAHREP = "14th enqueue argument
* NBUZEIEP = "15th enqueue argument
* MODE_VIBEME = 'E' "Lock mode for table VIBEME
* BELNR_REF = "16th enqueue argument
* GJAHR_REF = "17th enqueue argument
* BUZEI_REF = "18th enqueue argument
* X_SBERI = ' ' "Fill argument 02 with initial value?
* X_BUKRSME = ' ' "Fill argument 03 with initial value?
* X_SWENR = ' ' "Fill argument 04 with initial value?
* X_SMENR = ' ' "Fill argument 05 with initial value?
* X_DJAMON = ' ' "Fill argument 06 with initial value?
* X_BUKRSAG = ' ' "Fill argument 07 with initial value?
* X_SINVO = ' ' "Fill argument 08 with initial value?
* MODE_VIBEOS = 'E' "Lock mode for table VIBEOS
* X_GJAHR = ' ' "Fill argument 09 with initial value?
* X_NBUZEI = ' ' "Fill argument 10 with initial value?
* X_DGPLAB = ' ' "Fill argument 11 with initial value?
* X_BUKRSEP = ' ' "Fill argument 12 with initial value?
* X_SINVOEP = ' ' "Fill argument 13 with initial value?
* X_GJAHREP = ' ' "Fill argument 14 with initial value?
* X_NBUZEIEP = ' ' "Fill argument 15 with initial value?
* X_BELNR_REF = ' ' "Fill argument 16 with initial value?
* X_GJAHR_REF = ' ' "Fill argument 17 with initial value?
* X_BUZEI_REF = ' ' "Fill argument 18 with initial value?
* MODE_VIBEAM = 'E' "Lock mode for table VIBEAM
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MANDT = SY-MANDT "01th enqueue argument
* SBERI = "02th enqueue argument
* BUKRSME = "03th enqueue argument
* SWENR = "04th enqueue argument
* SMENR = "05th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EFVIBEBE

MODE_VIBEBE - Lock mode for table VIBEBE

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

DJAMON - 06th enqueue argument

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

BUKRSAG - 07th enqueue argument

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

SINVO - 08th enqueue argument

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

GJAHR - 09th enqueue argument

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

NBUZEI - 10th enqueue argument

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

DGPLAB - 11th enqueue argument

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

BUKRSEP - 12th enqueue argument

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

SINVOEP - 13th enqueue argument

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

GJAHREP - 14th enqueue argument

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

NBUZEIEP - 15th enqueue argument

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

MODE_VIBEME - Lock mode for table VIBEME

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

BELNR_REF - 16th enqueue argument

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

GJAHR_REF - 17th enqueue argument

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

BUZEI_REF - 18th enqueue argument

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

X_SBERI - Fill argument 02 with initial value?

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

X_BUKRSME - Fill argument 03 with initial value?

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

X_SWENR - Fill argument 04 with initial value?

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

X_SMENR - Fill argument 05 with initial value?

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

X_DJAMON - Fill argument 06 with initial value?

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

X_BUKRSAG - Fill argument 07 with initial value?

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

X_SINVO - Fill argument 08 with initial value?

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

MODE_VIBEOS - Lock mode for table VIBEOS

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

X_GJAHR - Fill argument 09 with initial value?

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

X_NBUZEI - Fill argument 10 with initial value?

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

X_DGPLAB - Fill argument 11 with initial value?

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

X_BUKRSEP - Fill argument 12 with initial value?

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

X_SINVOEP - Fill argument 13 with initial value?

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

X_GJAHREP - Fill argument 14 with initial value?

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

X_NBUZEIEP - Fill argument 15 with initial value?

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

X_BELNR_REF - Fill argument 16 with initial value?

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

X_GJAHR_REF - Fill argument 17 with initial value?

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

X_BUZEI_REF - Fill argument 18 with initial value?

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

MODE_VIBEAM - Lock mode for table VIBEAM

Data type: ENQMODE
Default: 'E'
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)

MANDT - 01th enqueue argument

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

SBERI - 02th enqueue argument

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

BUKRSME - 03th enqueue argument

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

SWENR - 04th enqueue argument

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

SMENR - 05th enqueue argument

Data type: VIBEME-SMENR
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_EFVIBEBE 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_vibebe  TYPE ENQMODE, "   'E'
lv_foreign_lock  TYPE ENQMODE, "   
lv_djamon  TYPE VIBEOS-DJAMON, "   
lv_bukrsag  TYPE VIBEAG-BUKRS, "   
lv_sinvo  TYPE VIBEAG-SINVO, "   
lv_gjahr  TYPE VIBEAG-GJAHR, "   
lv_nbuzei  TYPE VIBEAG-NBUZEI, "   
lv_dgplab  TYPE VIBEAG-DGPLAB, "   
lv_bukrsep  TYPE VIEPOS-BUKRS, "   
lv_sinvoep  TYPE VIEPOS-SINVO, "   
lv_gjahrep  TYPE VIEPOS-GJAHR, "   
lv_nbuzeiep  TYPE VIEPOS-NBUZEI, "   
lv_mode_vibeme  TYPE ENQMODE, "   'E'
lv_system_failure  TYPE ENQMODE, "   
lv_belnr_ref  TYPE VIEPOS-BELNR_REF, "   
lv_gjahr_ref  TYPE VIEPOS-GJAHR_REF, "   
lv_buzei_ref  TYPE VIEPOS-BUZEI_REF, "   
lv_x_sberi  TYPE VIEPOS, "   SPACE
lv_x_bukrsme  TYPE VIEPOS, "   SPACE
lv_x_swenr  TYPE VIEPOS, "   SPACE
lv_x_smenr  TYPE VIEPOS, "   SPACE
lv_x_djamon  TYPE VIEPOS, "   SPACE
lv_x_bukrsag  TYPE VIEPOS, "   SPACE
lv_x_sinvo  TYPE VIEPOS, "   SPACE
lv_mode_vibeos  TYPE ENQMODE, "   'E'
lv_x_gjahr  TYPE ENQMODE, "   SPACE
lv_x_nbuzei  TYPE ENQMODE, "   SPACE
lv_x_dgplab  TYPE ENQMODE, "   SPACE
lv_x_bukrsep  TYPE ENQMODE, "   SPACE
lv_x_sinvoep  TYPE ENQMODE, "   SPACE
lv_x_gjahrep  TYPE ENQMODE, "   SPACE
lv_x_nbuzeiep  TYPE ENQMODE, "   SPACE
lv_x_belnr_ref  TYPE ENQMODE, "   SPACE
lv_x_gjahr_ref  TYPE ENQMODE, "   SPACE
lv_x_buzei_ref  TYPE ENQMODE, "   SPACE
lv_mode_vibeam  TYPE ENQMODE, "   'E'
lv__scope  TYPE ENQMODE, "   '2'
lv__wait  TYPE ENQMODE, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_mandt  TYPE VIBEBE-MANDT, "   SY-MANDT
lv_sberi  TYPE VIBEBE-SBERI, "   
lv_bukrsme  TYPE VIBEME-BUKRS, "   
lv_swenr  TYPE VIBEME-SWENR, "   
lv_smenr  TYPE VIBEME-SMENR. "   

  CALL FUNCTION 'ENQUEUE_EFVIBEBE'  "Request lock for object EFVIBEBE
    EXPORTING
         MODE_VIBEBE = lv_mode_vibebe
         DJAMON = lv_djamon
         BUKRSAG = lv_bukrsag
         SINVO = lv_sinvo
         GJAHR = lv_gjahr
         NBUZEI = lv_nbuzei
         DGPLAB = lv_dgplab
         BUKRSEP = lv_bukrsep
         SINVOEP = lv_sinvoep
         GJAHREP = lv_gjahrep
         NBUZEIEP = lv_nbuzeiep
         MODE_VIBEME = lv_mode_vibeme
         BELNR_REF = lv_belnr_ref
         GJAHR_REF = lv_gjahr_ref
         BUZEI_REF = lv_buzei_ref
         X_SBERI = lv_x_sberi
         X_BUKRSME = lv_x_bukrsme
         X_SWENR = lv_x_swenr
         X_SMENR = lv_x_smenr
         X_DJAMON = lv_x_djamon
         X_BUKRSAG = lv_x_bukrsag
         X_SINVO = lv_x_sinvo
         MODE_VIBEOS = lv_mode_vibeos
         X_GJAHR = lv_x_gjahr
         X_NBUZEI = lv_x_nbuzei
         X_DGPLAB = lv_x_dgplab
         X_BUKRSEP = lv_x_bukrsep
         X_SINVOEP = lv_x_sinvoep
         X_GJAHREP = lv_x_gjahrep
         X_NBUZEIEP = lv_x_nbuzeiep
         X_BELNR_REF = lv_x_belnr_ref
         X_GJAHR_REF = lv_x_gjahr_ref
         X_BUZEI_REF = lv_x_buzei_ref
         MODE_VIBEAM = lv_mode_vibeam
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         MANDT = lv_mandt
         SBERI = lv_sberi
         BUKRSME = lv_bukrsme
         SWENR = lv_swenr
         SMENR = lv_smenr
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EFVIBEBE




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EFVIBEBE

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_vibebe) = 'E'.
 
 
"SELECT single DJAMON FROM VIBEOS INTO @DATA(ld_djamon).
 
"SELECT single BUKRS FROM VIBEAG INTO @DATA(ld_bukrsag).
 
"SELECT single SINVO FROM VIBEAG INTO @DATA(ld_sinvo).
 
"SELECT single GJAHR FROM VIBEAG INTO @DATA(ld_gjahr).
 
"SELECT single NBUZEI FROM VIBEAG INTO @DATA(ld_nbuzei).
 
"SELECT single DGPLAB FROM VIBEAG INTO @DATA(ld_dgplab).
 
"SELECT single BUKRS FROM VIEPOS INTO @DATA(ld_bukrsep).
 
"SELECT single SINVO FROM VIEPOS INTO @DATA(ld_sinvoep).
 
"SELECT single GJAHR FROM VIEPOS INTO @DATA(ld_gjahrep).
 
"SELECT single NBUZEI FROM VIEPOS INTO @DATA(ld_nbuzeiep).
 
DATA(ld_mode_vibeme) = 'E'.
 
 
"SELECT single BELNR_REF FROM VIEPOS INTO @DATA(ld_belnr_ref).
 
"SELECT single GJAHR_REF FROM VIEPOS INTO @DATA(ld_gjahr_ref).
 
"SELECT single BUZEI_REF FROM VIEPOS INTO @DATA(ld_buzei_ref).
 
DATA(ld_x_sberi) = ' '.
 
DATA(ld_x_bukrsme) = ' '.
 
DATA(ld_x_swenr) = ' '.
 
DATA(ld_x_smenr) = ' '.
 
DATA(ld_x_djamon) = ' '.
 
DATA(ld_x_bukrsag) = ' '.
 
DATA(ld_x_sinvo) = ' '.
 
DATA(ld_mode_vibeos) = 'E'.
 
DATA(ld_x_gjahr) = ' '.
 
DATA(ld_x_nbuzei) = ' '.
 
DATA(ld_x_dgplab) = ' '.
 
DATA(ld_x_bukrsep) = ' '.
 
DATA(ld_x_sinvoep) = ' '.
 
DATA(ld_x_gjahrep) = ' '.
 
DATA(ld_x_nbuzeiep) = ' '.
 
DATA(ld_x_belnr_ref) = ' '.
 
DATA(ld_x_gjahr_ref) = ' '.
 
DATA(ld_x_buzei_ref) = ' '.
 
DATA(ld_mode_vibeam) = 'E'.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single MANDT FROM VIBEBE INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
"SELECT single SBERI FROM VIBEBE INTO @DATA(ld_sberi).
 
"SELECT single BUKRS FROM VIBEME INTO @DATA(ld_bukrsme).
 
"SELECT single SWENR FROM VIBEME INTO @DATA(ld_swenr).
 
"SELECT single SMENR FROM VIBEME INTO @DATA(ld_smenr).
 


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!