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

Function ENQUEUE_E_UPB_PM 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_UPB_PM'"Request lock for object E_UPB_PM.
EXPORTING
* MODE_UPB_PS_NAME = 'E' "Lock mode for table UPB_PS_NAME
* POS = "05th enqueue argument
* X_PTYPE = ' ' "Fill argument 02 with initial value?
* X_NAME = ' ' "Fill argument 03 with initial value?
* X_POB_KEY = ' ' "Fill argument 04 with initial value?
* X_POS = ' ' "Fill argument 05 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MODE_UPB_PS_DESIGN = 'E' "Lock mode for table UPB_PS_DESIGN
* MODE_UPB_PS_PROP = 'E' "Lock mode for table UPB_PS_PROP
* MODE_UPB_PM_GRAPH = 'E' "Lock mode for table UPB_PM_GRAPH
* MODE_UPB_PM_VARIABLE = 'E' "Lock mode for table UPB_PM_VARIABLE
* MANDT = SY-MANDT "01th enqueue argument
* PTYPE = "02th enqueue argument
* NAME = "03th enqueue argument
* POB_KEY = "04th enqueue argument
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_E_UPB_PM
MODE_UPB_PS_NAME - Lock mode for table UPB_PS_NAME
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
POS - 05th enqueue argument
Data type: UPB_PM_VARIABLE-POSOptional: Yes
Call by Reference: No ( called with pass by value option)
X_PTYPE - Fill argument 02 with initial value?
Data type: DDENQXPARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_NAME - Fill argument 03 with initial value?
Data type: DDENQXPARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_POB_KEY - Fill argument 04 with initial value?
Data type: DDENQXPARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_POS - Fill argument 05 with initial value?
Data type: DDENQXPARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_SCOPE -
Data type: DDENQSCOPEDefault: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
_WAIT -
Data type: DDENQWAITDefault: 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_UPB_PS_DESIGN - Lock mode for table UPB_PS_DESIGN
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_UPB_PS_PROP - Lock mode for table UPB_PS_PROP
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_UPB_PM_GRAPH - Lock mode for table UPB_PM_GRAPH
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_UPB_PM_VARIABLE - Lock mode for table UPB_PM_VARIABLE
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MANDT - 01th enqueue argument
Data type: UPB_PS_NAME-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
PTYPE - 02th enqueue argument
Data type: UPB_PS_NAME-PTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
NAME - 03th enqueue argument
Data type: UPB_PS_NAME-NAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
POB_KEY - 04th enqueue argument
Data type: UPB_PS_DESIGN-POB_KEYOptional: 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_UPB_PM 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_upb_ps_name | TYPE ENQMODE, " 'E' | |||
| lv_pos | TYPE UPB_PM_VARIABLE-POS, " | |||
| lv_x_ptype | TYPE DDENQXPAR, " SPACE | |||
| lv_x_name | TYPE DDENQXPAR, " SPACE | |||
| lv_x_pob_key | TYPE DDENQXPAR, " SPACE | |||
| lv_x_pos | TYPE DDENQXPAR, " SPACE | |||
| lv__scope | TYPE DDENQSCOPE, " '2' | |||
| lv__wait | TYPE DDENQWAIT, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_system_failure | TYPE DDENQCOLL, " | |||
| lv_mode_upb_ps_design | TYPE ENQMODE, " 'E' | |||
| lv_mode_upb_ps_prop | TYPE ENQMODE, " 'E' | |||
| lv_mode_upb_pm_graph | TYPE ENQMODE, " 'E' | |||
| lv_mode_upb_pm_variable | TYPE ENQMODE, " 'E' | |||
| lv_mandt | TYPE UPB_PS_NAME-MANDT, " SY-MANDT | |||
| lv_ptype | TYPE UPB_PS_NAME-PTYPE, " | |||
| lv_name | TYPE UPB_PS_NAME-NAME, " | |||
| lv_pob_key | TYPE UPB_PS_DESIGN-POB_KEY. " |
|   CALL FUNCTION 'ENQUEUE_E_UPB_PM' "Request lock for object E_UPB_PM |
| EXPORTING | ||
| MODE_UPB_PS_NAME | = lv_mode_upb_ps_name | |
| POS | = lv_pos | |
| X_PTYPE | = lv_x_ptype | |
| X_NAME | = lv_x_name | |
| X_POB_KEY | = lv_x_pob_key | |
| X_POS | = lv_x_pos | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| MODE_UPB_PS_DESIGN | = lv_mode_upb_ps_design | |
| MODE_UPB_PS_PROP | = lv_mode_upb_ps_prop | |
| MODE_UPB_PM_GRAPH | = lv_mode_upb_pm_graph | |
| MODE_UPB_PM_VARIABLE | = lv_mode_upb_pm_variable | |
| MANDT | = lv_mandt | |
| PTYPE | = lv_ptype | |
| NAME | = lv_name | |
| POB_KEY | = lv_pob_key | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_E_UPB_PM | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_UPB_PM
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_upb_ps_name) | = 'E'. | |||
| "SELECT single POS FROM UPB_PM_VARIABLE INTO @DATA(ld_pos). | ||||
| DATA(ld_x_ptype) | = ' '. | |||
| DATA(ld_x_name) | = ' '. | |||
| DATA(ld_x_pob_key) | = ' '. | |||
| DATA(ld_x_pos) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| DATA(ld_mode_upb_ps_design) | = 'E'. | |||
| DATA(ld_mode_upb_ps_prop) | = 'E'. | |||
| DATA(ld_mode_upb_pm_graph) | = 'E'. | |||
| DATA(ld_mode_upb_pm_variable) | = 'E'. | |||
| "SELECT single MANDT FROM UPB_PS_NAME INTO @DATA(ld_mandt). | ||||
| DATA(ld_mandt) | = SY-MANDT. | |||
| "SELECT single PTYPE FROM UPB_PS_NAME INTO @DATA(ld_ptype). | ||||
| "SELECT single NAME FROM UPB_PS_NAME INTO @DATA(ld_name). | ||||
| "SELECT single POB_KEY FROM UPB_PS_DESIGN INTO @DATA(ld_pob_key). | ||||
Search for further information about these or an SAP related objects