SAP ENQUEUE_EFMRB_FMRBT Function Module for Request lock for object EFMRB_FMRBT
ENQUEUE_EFMRB_FMRBT is a standard enqueue efmrb fmrbt 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 EFMRB_FMRBT 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 efmrb fmrbt FM, simply by entering the name ENQUEUE_EFMRB_FMRBT into the relevant SAP transaction such as SE37 or SE38.
Function Group: /1BCDWBEN/FEN0009
Program Name: /1BCDWBEN/SAPLFEN0009
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ENQUEUE_EFMRB_FMRBT 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_EFMRB_FMRBT'"Request lock for object EFMRB_FMRBT.
EXPORTING
* MODE_FMRB_S_RIB_LOCK_OBJECT = 'S' "Lock mode for table FMRB_S_RIB_LOCK_OBJECT
* RCVRGRP_9 = "09th enqueue argument
* CEFFYEAR_9 = "10th enqueue argument
* RIBPROC_9 = "11th enqueue argument
* POPER = "12th enqueue argument
* LVAL = "13th enqueue argument
* X_RLDNR = ' ' "Fill argument 02 with initial value?
* X_RRCTY = ' ' "Fill argument 03 with initial value?
* X_RVERS = ' ' "Fill argument 04 with initial value?
* X_RYEAR = ' ' "Fill argument 05 with initial value?
* X_RFIKRS = ' ' "Fill argument 06 with initial value?
* RCLNT = SY-MANDT "01th enqueue argument
* X_ROBJNR = ' ' "Fill argument 07 with initial value?
* X_RGRANT_NBR = ' ' "Fill argument 08 with initial value?
* X_RCVRGRP_9 = ' ' "Fill argument 09 with initial value?
* X_CEFFYEAR_9 = ' ' "Fill argument 10 with initial value?
* X_RIBPROC_9 = ' ' "Fill argument 11 with initial value?
* X_POPER = ' ' "Fill argument 12 with initial value?
* X_LVAL = ' ' "Fill argument 13 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* RLDNR = "02th enqueue argument
* RRCTY = "03th enqueue argument
* RVERS = "04th enqueue argument
* RYEAR = "05th enqueue argument
* RFIKRS = "06th enqueue argument
* ROBJNR = "07th enqueue argument
* RGRANT_NBR = "08th enqueue argument
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_EFMRB_FMRBT
MODE_FMRB_S_RIB_LOCK_OBJECT - Lock mode for table FMRB_S_RIB_LOCK_OBJECT
Data type: ENQMODEDefault: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RCVRGRP_9 - 09th enqueue argument
Data type: FMRB_S_RIB_LOCK_OBJECT-RCVRGRP_9Optional: Yes
Call by Reference: No ( called with pass by value option)
CEFFYEAR_9 - 10th enqueue argument
Data type: FMRB_S_RIB_LOCK_OBJECT-CEFFYEAR_9Optional: Yes
Call by Reference: No ( called with pass by value option)
RIBPROC_9 - 11th enqueue argument
Data type: FMRB_S_RIB_LOCK_OBJECT-RIBPROC_9Optional: Yes
Call by Reference: No ( called with pass by value option)
POPER - 12th enqueue argument
Data type: FMRB_S_RIB_LOCK_OBJECT-POPEROptional: Yes
Call by Reference: No ( called with pass by value option)
LVAL - 13th enqueue argument
Data type: FMRB_S_RIB_LOCK_OBJECT-LVALOptional: Yes
Call by Reference: No ( called with pass by value option)
X_RLDNR - Fill argument 02 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RRCTY - 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_RYEAR - Fill argument 05 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RFIKRS - 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: FMRB_S_RIB_LOCK_OBJECT-RCLNTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ROBJNR - Fill argument 07 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RGRANT_NBR - Fill argument 08 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RCVRGRP_9 - Fill argument 09 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_CEFFYEAR_9 - Fill argument 10 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RIBPROC_9 - Fill argument 11 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_POPER - Fill argument 12 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_LVAL - 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: DDENQCOLLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
RLDNR - 02th enqueue argument
Data type: FMRB_S_RIB_LOCK_OBJECT-RLDNROptional: Yes
Call by Reference: No ( called with pass by value option)
RRCTY - 03th enqueue argument
Data type: FMRB_S_RIB_LOCK_OBJECT-RRCTYOptional: Yes
Call by Reference: No ( called with pass by value option)
RVERS - 04th enqueue argument
Data type: FMRB_S_RIB_LOCK_OBJECT-RVERSOptional: Yes
Call by Reference: No ( called with pass by value option)
RYEAR - 05th enqueue argument
Data type: FMRB_S_RIB_LOCK_OBJECT-RYEAROptional: Yes
Call by Reference: No ( called with pass by value option)
RFIKRS - 06th enqueue argument
Data type: FMRB_S_RIB_LOCK_OBJECT-RFIKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
ROBJNR - 07th enqueue argument
Data type: FMRB_S_RIB_LOCK_OBJECT-ROBJNROptional: Yes
Call by Reference: No ( called with pass by value option)
RGRANT_NBR - 08th enqueue argument
Data type: FMRB_S_RIB_LOCK_OBJECT-RGRANT_NBROptional: 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_EFMRB_FMRBT 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_fmrb_s_rib_lock_object | TYPE ENQMODE, " 'S' | |||
| lv_rcvrgrp_9 | TYPE FMRB_S_RIB_LOCK_OBJECT-RCVRGRP_9, " | |||
| lv_ceffyear_9 | TYPE FMRB_S_RIB_LOCK_OBJECT-CEFFYEAR_9, " | |||
| lv_ribproc_9 | TYPE FMRB_S_RIB_LOCK_OBJECT-RIBPROC_9, " | |||
| lv_poper | TYPE FMRB_S_RIB_LOCK_OBJECT-POPER, " | |||
| lv_lval | TYPE FMRB_S_RIB_LOCK_OBJECT-LVAL, " | |||
| lv_x_rldnr | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv_x_rrcty | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv_x_rvers | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv_x_ryear | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv_x_rfikrs | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv_rclnt | TYPE FMRB_S_RIB_LOCK_OBJECT-RCLNT, " SY-MANDT | |||
| lv_system_failure | TYPE FMRB_S_RIB_LOCK_OBJECT, " | |||
| lv_x_robjnr | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv_x_rgrant_nbr | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv_x_rcvrgrp_9 | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv_x_ceffyear_9 | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv_x_ribproc_9 | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv_x_poper | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv_x_lval | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv__scope | TYPE FMRB_S_RIB_LOCK_OBJECT, " '2' | |||
| lv__wait | TYPE FMRB_S_RIB_LOCK_OBJECT, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_rldnr | TYPE FMRB_S_RIB_LOCK_OBJECT-RLDNR, " | |||
| lv_rrcty | TYPE FMRB_S_RIB_LOCK_OBJECT-RRCTY, " | |||
| lv_rvers | TYPE FMRB_S_RIB_LOCK_OBJECT-RVERS, " | |||
| lv_ryear | TYPE FMRB_S_RIB_LOCK_OBJECT-RYEAR, " | |||
| lv_rfikrs | TYPE FMRB_S_RIB_LOCK_OBJECT-RFIKRS, " | |||
| lv_robjnr | TYPE FMRB_S_RIB_LOCK_OBJECT-ROBJNR, " | |||
| lv_rgrant_nbr | TYPE FMRB_S_RIB_LOCK_OBJECT-RGRANT_NBR. " |
|   CALL FUNCTION 'ENQUEUE_EFMRB_FMRBT' "Request lock for object EFMRB_FMRBT |
| EXPORTING | ||
| MODE_FMRB_S_RIB_LOCK_OBJECT | = lv_mode_fmrb_s_rib_lock_object | |
| RCVRGRP_9 | = lv_rcvrgrp_9 | |
| CEFFYEAR_9 | = lv_ceffyear_9 | |
| RIBPROC_9 | = lv_ribproc_9 | |
| POPER | = lv_poper | |
| LVAL | = lv_lval | |
| X_RLDNR | = lv_x_rldnr | |
| X_RRCTY | = lv_x_rrcty | |
| X_RVERS | = lv_x_rvers | |
| X_RYEAR | = lv_x_ryear | |
| X_RFIKRS | = lv_x_rfikrs | |
| RCLNT | = lv_rclnt | |
| X_ROBJNR | = lv_x_robjnr | |
| X_RGRANT_NBR | = lv_x_rgrant_nbr | |
| X_RCVRGRP_9 | = lv_x_rcvrgrp_9 | |
| X_CEFFYEAR_9 | = lv_x_ceffyear_9 | |
| X_RIBPROC_9 | = lv_x_ribproc_9 | |
| X_POPER | = lv_x_poper | |
| X_LVAL | = lv_x_lval | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| RLDNR | = lv_rldnr | |
| RRCTY | = lv_rrcty | |
| RVERS | = lv_rvers | |
| RYEAR | = lv_ryear | |
| RFIKRS | = lv_rfikrs | |
| ROBJNR | = lv_robjnr | |
| RGRANT_NBR | = lv_rgrant_nbr | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_EFMRB_FMRBT | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EFMRB_FMRBT
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_fmrb_s_rib_lock_object) | = 'S'. | |||
| "SELECT single RCVRGRP_9 FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_rcvrgrp_9). | ||||
| "SELECT single CEFFYEAR_9 FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_ceffyear_9). | ||||
| "SELECT single RIBPROC_9 FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_ribproc_9). | ||||
| "SELECT single POPER FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_poper). | ||||
| "SELECT single LVAL FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_lval). | ||||
| DATA(ld_x_rldnr) | = ' '. | |||
| DATA(ld_x_rrcty) | = ' '. | |||
| DATA(ld_x_rvers) | = ' '. | |||
| DATA(ld_x_ryear) | = ' '. | |||
| DATA(ld_x_rfikrs) | = ' '. | |||
| "SELECT single RCLNT FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_rclnt). | ||||
| DATA(ld_rclnt) | = SY-MANDT. | |||
| DATA(ld_x_robjnr) | = ' '. | |||
| DATA(ld_x_rgrant_nbr) | = ' '. | |||
| DATA(ld_x_rcvrgrp_9) | = ' '. | |||
| DATA(ld_x_ceffyear_9) | = ' '. | |||
| DATA(ld_x_ribproc_9) | = ' '. | |||
| DATA(ld_x_poper) | = ' '. | |||
| DATA(ld_x_lval) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| "SELECT single RLDNR FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_rldnr). | ||||
| "SELECT single RRCTY FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_rrcty). | ||||
| "SELECT single RVERS FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_rvers). | ||||
| "SELECT single RYEAR FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_ryear). | ||||
| "SELECT single RFIKRS FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_rfikrs). | ||||
| "SELECT single ROBJNR FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_robjnr). | ||||
| "SELECT single RGRANT_NBR FROM FMRB_S_RIB_LOCK_OBJECT INTO @DATA(ld_rgrant_nbr). | ||||
Search for further information about these or an SAP related objects