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

Function ENQUEUE_E_JBRREGD 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_E_JBRREGD'"Request lock for object E_JBRREGD.
EXPORTING
* MODE_JBRREGD = 'E' "Lock mode for table JBRREGD
* REGELIDXWT = "06th enqueue argument
* X_REGELID = ' ' "Fill argument 02 with initial value?
* X_SPRASDT = ' ' "Fill argument 03 with initial value?
* X_REGELIDXW = ' ' "Fill argument 04 with initial value?
* X_SPRASWT = ' ' "Fill argument 05 with initial value?
* X_REGELIDXWT = ' ' "Fill argument 06 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MODE_JBRREGDT = 'E' "Lock mode for table JBRREGDT
* MODE_JBRREGW = 'E' "Lock mode for table JBRREGW
* MODE_JBRREGWT = 'E' "Lock mode for table JBRREGWT
* MANDT = SY-MANDT "01th enqueue argument
* REGELID = "02th enqueue argument
* SPRASDT = "03th enqueue argument
* REGELIDXW = "04th enqueue argument
* SPRASWT = "05th enqueue argument
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_E_JBRREGD
MODE_JBRREGD - Lock mode for table JBRREGD
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
REGELIDXWT - 06th enqueue argument
Data type: JBRREGWT-REGELIDXOptional: Yes
Call by Reference: No ( called with pass by value option)
X_REGELID - Fill argument 02 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SPRASDT - Fill argument 03 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_REGELIDXW - Fill argument 04 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SPRASWT - Fill argument 05 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_REGELIDXWT - 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: DDENQCOLLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_JBRREGDT - Lock mode for table JBRREGDT
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_JBRREGW - Lock mode for table JBRREGW
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_JBRREGWT - Lock mode for table JBRREGWT
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MANDT - 01th enqueue argument
Data type: JBRREGD-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
REGELID - 02th enqueue argument
Data type: JBRREGD-REGELIDOptional: Yes
Call by Reference: No ( called with pass by value option)
SPRASDT - 03th enqueue argument
Data type: JBRREGDT-SPRASOptional: Yes
Call by Reference: No ( called with pass by value option)
REGELIDXW - 04th enqueue argument
Data type: JBRREGW-REGELIDXOptional: Yes
Call by Reference: No ( called with pass by value option)
SPRASWT - 05th enqueue argument
Data type: JBRREGWT-SPRASOptional: 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_E_JBRREGD 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_jbrregd | TYPE ENQMODE, " 'E' | |||
| lv_regelidxwt | TYPE JBRREGWT-REGELIDX, " | |||
| lv_x_regelid | TYPE JBRREGWT, " SPACE | |||
| lv_x_sprasdt | TYPE JBRREGWT, " SPACE | |||
| lv_x_regelidxw | TYPE JBRREGWT, " SPACE | |||
| lv_x_spraswt | TYPE JBRREGWT, " SPACE | |||
| lv_x_regelidxwt | TYPE JBRREGWT, " SPACE | |||
| lv__scope | TYPE JBRREGWT, " '2' | |||
| lv__wait | TYPE JBRREGWT, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_mode_jbrregdt | TYPE ENQMODE, " 'E' | |||
| lv_system_failure | TYPE ENQMODE, " | |||
| lv_mode_jbrregw | TYPE ENQMODE, " 'E' | |||
| lv_mode_jbrregwt | TYPE ENQMODE, " 'E' | |||
| lv_mandt | TYPE JBRREGD-MANDT, " SY-MANDT | |||
| lv_regelid | TYPE JBRREGD-REGELID, " | |||
| lv_sprasdt | TYPE JBRREGDT-SPRAS, " | |||
| lv_regelidxw | TYPE JBRREGW-REGELIDX, " | |||
| lv_spraswt | TYPE JBRREGWT-SPRAS. " |
|   CALL FUNCTION 'ENQUEUE_E_JBRREGD' "Request lock for object E_JBRREGD |
| EXPORTING | ||
| MODE_JBRREGD | = lv_mode_jbrregd | |
| REGELIDXWT | = lv_regelidxwt | |
| X_REGELID | = lv_x_regelid | |
| X_SPRASDT | = lv_x_sprasdt | |
| X_REGELIDXW | = lv_x_regelidxw | |
| X_SPRASWT | = lv_x_spraswt | |
| X_REGELIDXWT | = lv_x_regelidxwt | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| MODE_JBRREGDT | = lv_mode_jbrregdt | |
| MODE_JBRREGW | = lv_mode_jbrregw | |
| MODE_JBRREGWT | = lv_mode_jbrregwt | |
| MANDT | = lv_mandt | |
| REGELID | = lv_regelid | |
| SPRASDT | = lv_sprasdt | |
| REGELIDXW | = lv_regelidxw | |
| SPRASWT | = lv_spraswt | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_E_JBRREGD | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_JBRREGD
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_jbrregd) | = 'E'. | |||
| "SELECT single REGELIDX FROM JBRREGWT INTO @DATA(ld_regelidxwt). | ||||
| DATA(ld_x_regelid) | = ' '. | |||
| DATA(ld_x_sprasdt) | = ' '. | |||
| DATA(ld_x_regelidxw) | = ' '. | |||
| DATA(ld_x_spraswt) | = ' '. | |||
| DATA(ld_x_regelidxwt) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| DATA(ld_mode_jbrregdt) | = 'E'. | |||
| DATA(ld_mode_jbrregw) | = 'E'. | |||
| DATA(ld_mode_jbrregwt) | = 'E'. | |||
| "SELECT single MANDT FROM JBRREGD INTO @DATA(ld_mandt). | ||||
| DATA(ld_mandt) | = SY-MANDT. | |||
| "SELECT single REGELID FROM JBRREGD INTO @DATA(ld_regelid). | ||||
| "SELECT single SPRAS FROM JBRREGDT INTO @DATA(ld_sprasdt). | ||||
| "SELECT single REGELIDX FROM JBRREGW INTO @DATA(ld_regelidxw). | ||||
| "SELECT single SPRAS FROM JBRREGWT INTO @DATA(ld_spraswt). | ||||
Search for further information about these or an SAP related objects