SAP ENQUEUE_EGFMBDE Function Module for Request lock for object EGFMBDE









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

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



Function ENQUEUE_EGFMBDE 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_EGFMBDE'"Request lock for object EGFMBDE
EXPORTING
* MODE_FMBD_S_TOTALS_LOCK = 'E' "Lock mode for table FMBD_S_TOTALS_LOCK
* RCMMTITEM = "09th enqueue argument
* RFUNCAREA = "10th enqueue argument
* RGRANT_NBR = "11th enqueue argument
* RMEASURE = "12th enqueue argument
* RUSERDIM = "13th enqueue argument
* X_RFIKRS = ' ' "Fill argument 02 with initial value?
* X_RYEAR = ' ' "Fill argument 03 with initial value?
* X_RVERS = ' ' "Fill argument 04 with initial value?
* X_RLDNR = ' ' "Fill argument 05 with initial value?
* X_RFUND = ' ' "Fill argument 06 with initial value?
* RCLNT = SY-MANDT "01th enqueue argument
* X_BUDGET_PD_9 = ' ' "Fill argument 07 with initial value?
* X_RFUNDSCTR = ' ' "Fill argument 08 with initial value?
* X_RCMMTITEM = ' ' "Fill argument 09 with initial value?
* X_RFUNCAREA = ' ' "Fill argument 10 with initial value?
* X_RGRANT_NBR = ' ' "Fill argument 11 with initial value?
* X_RMEASURE = ' ' "Fill argument 12 with initial value?
* X_RUSERDIM = ' ' "Fill argument 13 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* RFIKRS = "02th enqueue argument
* RYEAR = "03th enqueue argument
* RVERS = "04th enqueue argument
* RLDNR = "05th enqueue argument
* RFUND = "06th enqueue argument
* BUDGET_PD_9 = "07th enqueue argument
* RFUNDSCTR = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EGFMBDE

MODE_FMBD_S_TOTALS_LOCK - Lock mode for table FMBD_S_TOTALS_LOCK

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

RCMMTITEM - 09th enqueue argument

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

RFUNCAREA - 10th enqueue argument

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

RGRANT_NBR - 11th enqueue argument

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

RMEASURE - 12th enqueue argument

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

RUSERDIM - 13th enqueue argument

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

X_RFIKRS - Fill argument 02 with initial value?

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

X_RYEAR - Fill argument 03 with initial value?

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

X_RVERS - Fill argument 04 with initial value?

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

X_RLDNR - Fill argument 05 with initial value?

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

X_RFUND - Fill argument 06 with initial value?

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

RCLNT - 01th enqueue argument

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

X_BUDGET_PD_9 - Fill argument 07 with initial value?

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

X_RFUNDSCTR - Fill argument 08 with initial value?

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

X_RCMMTITEM - Fill argument 09 with initial value?

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

X_RFUNCAREA - Fill argument 10 with initial value?

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

X_RGRANT_NBR - Fill argument 11 with initial value?

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

X_RMEASURE - Fill argument 12 with initial value?

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

X_RUSERDIM - Fill argument 13 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)

RFIKRS - 02th enqueue argument

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

RYEAR - 03th enqueue argument

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

RVERS - 04th enqueue argument

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

RLDNR - 05th enqueue argument

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

RFUND - 06th enqueue argument

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

BUDGET_PD_9 - 07th enqueue argument

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

RFUNDSCTR - 08th enqueue argument

Data type: FMBD_S_TOTALS_LOCK-RFUNDSCTR
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_EGFMBDE 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_fmbd_s_totals_lock  TYPE ENQMODE, "   'E'
lv_rcmmtitem  TYPE FMBD_S_TOTALS_LOCK-RCMMTITEM, "   
lv_rfuncarea  TYPE FMBD_S_TOTALS_LOCK-RFUNCAREA, "   
lv_rgrant_nbr  TYPE FMBD_S_TOTALS_LOCK-RGRANT_NBR, "   
lv_rmeasure  TYPE FMBD_S_TOTALS_LOCK-RMEASURE, "   
lv_ruserdim  TYPE FMBD_S_TOTALS_LOCK-RUSERDIM, "   
lv_x_rfikrs  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv_x_ryear  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv_x_rvers  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv_x_rldnr  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv_x_rfund  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv_rclnt  TYPE FMBD_S_TOTALS_LOCK-RCLNT, "   SY-MANDT
lv_system_failure  TYPE FMBD_S_TOTALS_LOCK, "   
lv_x_budget_pd_9  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv_x_rfundsctr  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv_x_rcmmtitem  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv_x_rfuncarea  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv_x_rgrant_nbr  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv_x_rmeasure  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv_x_ruserdim  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv__scope  TYPE FMBD_S_TOTALS_LOCK, "   '2'
lv__wait  TYPE FMBD_S_TOTALS_LOCK, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_rfikrs  TYPE FMBD_S_TOTALS_LOCK-RFIKRS, "   
lv_ryear  TYPE FMBD_S_TOTALS_LOCK-RYEAR, "   
lv_rvers  TYPE FMBD_S_TOTALS_LOCK-RVERS, "   
lv_rldnr  TYPE FMBD_S_TOTALS_LOCK-RLDNR, "   
lv_rfund  TYPE FMBD_S_TOTALS_LOCK-RFUND, "   
lv_budget_pd_9  TYPE FMBD_S_TOTALS_LOCK-BUDGET_PD_9, "   
lv_rfundsctr  TYPE FMBD_S_TOTALS_LOCK-RFUNDSCTR. "   

  CALL FUNCTION 'ENQUEUE_EGFMBDE'  "Request lock for object EGFMBDE
    EXPORTING
         MODE_FMBD_S_TOTALS_LOCK = lv_mode_fmbd_s_totals_lock
         RCMMTITEM = lv_rcmmtitem
         RFUNCAREA = lv_rfuncarea
         RGRANT_NBR = lv_rgrant_nbr
         RMEASURE = lv_rmeasure
         RUSERDIM = lv_ruserdim
         X_RFIKRS = lv_x_rfikrs
         X_RYEAR = lv_x_ryear
         X_RVERS = lv_x_rvers
         X_RLDNR = lv_x_rldnr
         X_RFUND = lv_x_rfund
         RCLNT = lv_rclnt
         X_BUDGET_PD_9 = lv_x_budget_pd_9
         X_RFUNDSCTR = lv_x_rfundsctr
         X_RCMMTITEM = lv_x_rcmmtitem
         X_RFUNCAREA = lv_x_rfuncarea
         X_RGRANT_NBR = lv_x_rgrant_nbr
         X_RMEASURE = lv_x_rmeasure
         X_RUSERDIM = lv_x_ruserdim
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         RFIKRS = lv_rfikrs
         RYEAR = lv_ryear
         RVERS = lv_rvers
         RLDNR = lv_rldnr
         RFUND = lv_rfund
         BUDGET_PD_9 = lv_budget_pd_9
         RFUNDSCTR = lv_rfundsctr
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EGFMBDE




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EGFMBDE

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_fmbd_s_totals_lock) = 'E'.
 
"SELECT single RCMMTITEM FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_rcmmtitem).
 
"SELECT single RFUNCAREA FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_rfuncarea).
 
"SELECT single RGRANT_NBR FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_rgrant_nbr).
 
"SELECT single RMEASURE FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_rmeasure).
 
"SELECT single RUSERDIM FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_ruserdim).
 
DATA(ld_x_rfikrs) = ' '.
 
DATA(ld_x_ryear) = ' '.
 
DATA(ld_x_rvers) = ' '.
 
DATA(ld_x_rldnr) = ' '.
 
DATA(ld_x_rfund) = ' '.
 
"SELECT single RCLNT FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_rclnt).
DATA(ld_rclnt) = SY-MANDT.
 
 
DATA(ld_x_budget_pd_9) = ' '.
 
DATA(ld_x_rfundsctr) = ' '.
 
DATA(ld_x_rcmmtitem) = ' '.
 
DATA(ld_x_rfuncarea) = ' '.
 
DATA(ld_x_rgrant_nbr) = ' '.
 
DATA(ld_x_rmeasure) = ' '.
 
DATA(ld_x_ruserdim) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single RFIKRS FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_rfikrs).
 
"SELECT single RYEAR FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_ryear).
 
"SELECT single RVERS FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_rvers).
 
"SELECT single RLDNR FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_rldnr).
 
"SELECT single RFUND FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_rfund).
 
"SELECT single BUDGET_PD_9 FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_budget_pd_9).
 
"SELECT single RFUNDSCTR FROM FMBD_S_TOTALS_LOCK INTO @DATA(ld_rfundsctr).
 


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!