SAP DEQUEUE_E_MPE_COMP_ASSEM Function Module for Release lock on object E_MPE_COMP_ASSEM









DEQUEUE_E_MPE_COMP_ASSEM is a standard dequeue e mpe comp assem SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Release lock on object E_MPE_COMP_ASSEM 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 dequeue e mpe comp assem FM, simply by entering the name DEQUEUE_E_MPE_COMP_ASSEM into the relevant SAP transaction such as SE37 or SE38.

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



Function DEQUEUE_E_MPE_COMP_ASSEM 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 'DEQUEUE_E_MPE_COMP_ASSEM'"Release lock on object E_MPE_COMP_ASSEM
EXPORTING
* MODE_MPES_COMP_ASSEMBL_LOCK = 'E' "Lock mode for table MPES_COMP_ASSEMBL_LOCK
* WERKS = "09th enqueue argument
* INST_GUID = "10th enqueue argument
* X_AUFNR = ' ' "Fill argument 02 with initial value?
* X_RSNUM = ' ' "Fill argument 03 with initial value?
* X_RSPOS = ' ' "Fill argument 04 with initial value?
* X_RSART = ' ' "Fill argument 05 with initial value?
* X_OAN_INSTANCE_ID = ' ' "Fill argument 06 with initial value?
* X_OAN_ELEMENT_NMBR = ' ' "Fill argument 07 with initial value?
* X_MATERIAL = ' ' "Fill argument 08 with initial value?
* X_WERKS = ' ' "Fill argument 09 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_INST_GUID = ' ' "Fill argument 10 with initial value?
* _SCOPE = '3' "
* _SYNCHRON = ' ' "Synchonous unlock
* _COLLECT = ' ' "Initially only collect lock
* AUFNR = "02th enqueue argument
* RSNUM = "03th enqueue argument
* RSPOS = "04th enqueue argument
* RSART = "05th enqueue argument
* OAN_INSTANCE_ID = "06th enqueue argument
* OAN_ELEMENT_NMBR = "07th enqueue argument
* MATERIAL = "08th enqueue argument
.



IMPORTING Parameters details for DEQUEUE_E_MPE_COMP_ASSEM

MODE_MPES_COMP_ASSEMBL_LOCK - Lock mode for table MPES_COMP_ASSEMBL_LOCK

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

WERKS - 09th enqueue argument

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

INST_GUID - 10th enqueue argument

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

X_AUFNR - Fill argument 02 with initial value?

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

X_RSNUM - Fill argument 03 with initial value?

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

X_RSPOS - Fill argument 04 with initial value?

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

X_RSART - Fill argument 05 with initial value?

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

X_OAN_INSTANCE_ID - Fill argument 06 with initial value?

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

X_OAN_ELEMENT_NMBR - Fill argument 07 with initial value?

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

X_MATERIAL - Fill argument 08 with initial value?

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

X_WERKS - Fill argument 09 with initial value?

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

MANDT - 01th enqueue argument

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

X_INST_GUID - Fill argument 10 with initial value?

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

_SCOPE -

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

_SYNCHRON - Synchonous unlock

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)

AUFNR - 02th enqueue argument

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

RSNUM - 03th enqueue argument

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

RSPOS - 04th enqueue argument

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

RSART - 05th enqueue argument

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

OAN_INSTANCE_ID - 06th enqueue argument

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

OAN_ELEMENT_NMBR - 07th enqueue argument

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

MATERIAL - 08th enqueue argument

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

Copy and paste ABAP code example for DEQUEUE_E_MPE_COMP_ASSEM 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_mode_mpes_comp_assembl_lock  TYPE ENQMODE, "   'E'
lv_werks  TYPE MPES_COMP_ASSEMBL_LOCK-WERKS, "   
lv_inst_guid  TYPE MPES_COMP_ASSEMBL_LOCK-INST_GUID, "   
lv_x_aufnr  TYPE MPES_COMP_ASSEMBL_LOCK, "   SPACE
lv_x_rsnum  TYPE MPES_COMP_ASSEMBL_LOCK, "   SPACE
lv_x_rspos  TYPE MPES_COMP_ASSEMBL_LOCK, "   SPACE
lv_x_rsart  TYPE MPES_COMP_ASSEMBL_LOCK, "   SPACE
lv_x_oan_instance_id  TYPE MPES_COMP_ASSEMBL_LOCK, "   SPACE
lv_x_oan_element_nmbr  TYPE MPES_COMP_ASSEMBL_LOCK, "   SPACE
lv_x_material  TYPE MPES_COMP_ASSEMBL_LOCK, "   SPACE
lv_x_werks  TYPE MPES_COMP_ASSEMBL_LOCK, "   SPACE
lv_mandt  TYPE MPES_COMP_ASSEMBL_LOCK-MANDT, "   SY-MANDT
lv_x_inst_guid  TYPE MPES_COMP_ASSEMBL_LOCK, "   SPACE
lv__scope  TYPE MPES_COMP_ASSEMBL_LOCK, "   '3'
lv__synchron  TYPE MPES_COMP_ASSEMBL_LOCK, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_aufnr  TYPE MPES_COMP_ASSEMBL_LOCK-AUFNR, "   
lv_rsnum  TYPE MPES_COMP_ASSEMBL_LOCK-RSNUM, "   
lv_rspos  TYPE MPES_COMP_ASSEMBL_LOCK-RSPOS, "   
lv_rsart  TYPE MPES_COMP_ASSEMBL_LOCK-RSART, "   
lv_oan_instance_id  TYPE MPES_COMP_ASSEMBL_LOCK-OAN_INSTANCE_ID, "   
lv_oan_element_nmbr  TYPE MPES_COMP_ASSEMBL_LOCK-OAN_ELEMENT_NUMBER, "   
lv_material  TYPE MPES_COMP_ASSEMBL_LOCK-MATERIAL. "   

  CALL FUNCTION 'DEQUEUE_E_MPE_COMP_ASSEM'  "Release lock on object E_MPE_COMP_ASSEM
    EXPORTING
         MODE_MPES_COMP_ASSEMBL_LOCK = lv_mode_mpes_comp_assembl_lock
         WERKS = lv_werks
         INST_GUID = lv_inst_guid
         X_AUFNR = lv_x_aufnr
         X_RSNUM = lv_x_rsnum
         X_RSPOS = lv_x_rspos
         X_RSART = lv_x_rsart
         X_OAN_INSTANCE_ID = lv_x_oan_instance_id
         X_OAN_ELEMENT_NMBR = lv_x_oan_element_nmbr
         X_MATERIAL = lv_x_material
         X_WERKS = lv_x_werks
         MANDT = lv_mandt
         X_INST_GUID = lv_x_inst_guid
         _SCOPE = lv__scope
         _SYNCHRON = lv__synchron
         _COLLECT = lv__collect
         AUFNR = lv_aufnr
         RSNUM = lv_rsnum
         RSPOS = lv_rspos
         RSART = lv_rsart
         OAN_INSTANCE_ID = lv_oan_instance_id
         OAN_ELEMENT_NMBR = lv_oan_element_nmbr
         MATERIAL = lv_material
. " DEQUEUE_E_MPE_COMP_ASSEM




ABAP code using 7.40 inline data declarations to call FM DEQUEUE_E_MPE_COMP_ASSEM

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_mpes_comp_assembl_lock) = 'E'.
 
"SELECT single WERKS FROM MPES_COMP_ASSEMBL_LOCK INTO @DATA(ld_werks).
 
"SELECT single INST_GUID FROM MPES_COMP_ASSEMBL_LOCK INTO @DATA(ld_inst_guid).
 
DATA(ld_x_aufnr) = ' '.
 
DATA(ld_x_rsnum) = ' '.
 
DATA(ld_x_rspos) = ' '.
 
DATA(ld_x_rsart) = ' '.
 
DATA(ld_x_oan_instance_id) = ' '.
 
DATA(ld_x_oan_element_nmbr) = ' '.
 
DATA(ld_x_material) = ' '.
 
DATA(ld_x_werks) = ' '.
 
"SELECT single MANDT FROM MPES_COMP_ASSEMBL_LOCK INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
DATA(ld_x_inst_guid) = ' '.
 
DATA(ld__scope) = '3'.
 
DATA(ld__synchron) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single AUFNR FROM MPES_COMP_ASSEMBL_LOCK INTO @DATA(ld_aufnr).
 
"SELECT single RSNUM FROM MPES_COMP_ASSEMBL_LOCK INTO @DATA(ld_rsnum).
 
"SELECT single RSPOS FROM MPES_COMP_ASSEMBL_LOCK INTO @DATA(ld_rspos).
 
"SELECT single RSART FROM MPES_COMP_ASSEMBL_LOCK INTO @DATA(ld_rsart).
 
"SELECT single OAN_INSTANCE_ID FROM MPES_COMP_ASSEMBL_LOCK INTO @DATA(ld_oan_instance_id).
 
"SELECT single OAN_ELEMENT_NUMBER FROM MPES_COMP_ASSEMBL_LOCK INTO @DATA(ld_oan_element_nmbr).
 
"SELECT single MATERIAL FROM MPES_COMP_ASSEMBL_LOCK INTO @DATA(ld_material).
 


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!