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

Function ENQUEUE_MDG_GN_ENQ_EXBP 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_MDG_GN_ENQ_EXBP'"Request lock for object MDG_GN_ENQ_EXBP.
EXPORTING
* MODE_MDG_GN_TEXBP = 'E' "Lock mode for table MDG_GN_TEXBP
* X_CONFIG_KEY = ' ' "Fill argument 05 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* APPL = "01th enqueue argument
* CLIENT = SY-MANDT "02th enqueue argument
* BUILDING_PLAN = "03th enqueue argument
* CONFIG_OBJ = "04th enqueue argument
* CONFIG_KEY = "05th enqueue argument
* X_APPL = ' ' "Fill argument 01 with initial value?
* X_BUILDING_PLAN = ' ' "Fill argument 03 with initial value?
* X_CONFIG_OBJ = ' ' "Fill argument 04 with initial value?
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_MDG_GN_ENQ_EXBP
MODE_MDG_GN_TEXBP - Lock mode for table MDG_GN_TEXBP
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_CONFIG_KEY - Fill argument 05 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)
APPL - 01th enqueue argument
Data type: MDG_GN_TEXBP-APPL_BPOptional: Yes
Call by Reference: No ( called with pass by value option)
CLIENT - 02th enqueue argument
Data type: MDG_GN_TEXBP-CLIENTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
BUILDING_PLAN - 03th enqueue argument
Data type: MDG_GN_TEXBP-BUILDING_PLANOptional: Yes
Call by Reference: No ( called with pass by value option)
CONFIG_OBJ - 04th enqueue argument
Data type: MDG_GN_TEXBP-CONFIG_OBJOptional: Yes
Call by Reference: No ( called with pass by value option)
CONFIG_KEY - 05th enqueue argument
Data type: MDG_GN_TEXBP-CONFIG_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
X_APPL - Fill argument 01 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_BUILDING_PLAN - Fill argument 03 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_CONFIG_OBJ - Fill argument 04 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_MDG_GN_ENQ_EXBP 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_mdg_gn_texbp | TYPE ENQMODE, " 'E' | |||
| lv_x_config_key | TYPE ENQMODE, " SPACE | |||
| lv__scope | TYPE ENQMODE, " '2' | |||
| lv__wait | TYPE ENQMODE, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_appl | TYPE MDG_GN_TEXBP-APPL_BP, " | |||
| lv_system_failure | TYPE MDG_GN_TEXBP, " | |||
| lv_client | TYPE MDG_GN_TEXBP-CLIENT, " SY-MANDT | |||
| lv_building_plan | TYPE MDG_GN_TEXBP-BUILDING_PLAN, " | |||
| lv_config_obj | TYPE MDG_GN_TEXBP-CONFIG_OBJ, " | |||
| lv_config_key | TYPE MDG_GN_TEXBP-CONFIG_KEY, " | |||
| lv_x_appl | TYPE MDG_GN_TEXBP, " SPACE | |||
| lv_x_building_plan | TYPE MDG_GN_TEXBP, " SPACE | |||
| lv_x_config_obj | TYPE MDG_GN_TEXBP. " SPACE |
|   CALL FUNCTION 'ENQUEUE_MDG_GN_ENQ_EXBP' "Request lock for object MDG_GN_ENQ_EXBP |
| EXPORTING | ||
| MODE_MDG_GN_TEXBP | = lv_mode_mdg_gn_texbp | |
| X_CONFIG_KEY | = lv_x_config_key | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| APPL | = lv_appl | |
| CLIENT | = lv_client | |
| BUILDING_PLAN | = lv_building_plan | |
| CONFIG_OBJ | = lv_config_obj | |
| CONFIG_KEY | = lv_config_key | |
| X_APPL | = lv_x_appl | |
| X_BUILDING_PLAN | = lv_x_building_plan | |
| X_CONFIG_OBJ | = lv_x_config_obj | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_MDG_GN_ENQ_EXBP | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_MDG_GN_ENQ_EXBP
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_mdg_gn_texbp) | = 'E'. | |||
| DATA(ld_x_config_key) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| "SELECT single APPL_BP FROM MDG_GN_TEXBP INTO @DATA(ld_appl). | ||||
| "SELECT single CLIENT FROM MDG_GN_TEXBP INTO @DATA(ld_client). | ||||
| DATA(ld_client) | = SY-MANDT. | |||
| "SELECT single BUILDING_PLAN FROM MDG_GN_TEXBP INTO @DATA(ld_building_plan). | ||||
| "SELECT single CONFIG_OBJ FROM MDG_GN_TEXBP INTO @DATA(ld_config_obj). | ||||
| "SELECT single CONFIG_KEY FROM MDG_GN_TEXBP INTO @DATA(ld_config_key). | ||||
| DATA(ld_x_appl) | = ' '. | |||
| DATA(ld_x_building_plan) | = ' '. | |||
| DATA(ld_x_config_obj) | = ' '. | |||
Search for further information about these or an SAP related objects