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

Function ENQUEUE_/AIF/E_MMSG_PRO 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_/AIF/E_MMSG_PRO'"Request lock for object /AIF/E_MMSG_PRO.
EXPORTING
* MODE_/AIF/MMSG_PRO = 'E' "Lock mode for table /AIF/MMSG_PRO
* COUNTER = "Enqueue argument 09
* X_NS = ' ' "Fill argument 02 with initial value?
* X_IFNAME = ' ' "Fill argument 03 with initial value?
* X_IFVER = ' ' "Fill argument 04 with initial value?
* X_LOGSYS = ' ' "Fill argument 05 with initial value?
* X_MSGTY = ' ' "Fill argument 06 with initial value?
* X_MSGID = ' ' "Fill argument 07 with initial value?
* X_MSGNO = ' ' "Fill argument 08 with initial value?
* X_COUNTER = ' ' "Fill argument 09 with initial value?
* _SCOPE = '2' "
* MANDT = SY-MANDT "Enqueue argument 01
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* NS = "Enqueue argument 02
* IFNAME = "Enqueue argument 03
* IFVER = "Enqueue argument 04
* LOGSYS = "Enqueue argument 05
* MSGTY = "Enqueue argument 06
* MSGID = "Enqueue argument 07
* MSGNO = "Enqueue argument 08
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_/AIF/E_MMSG_PRO
MODE_/AIF/MMSG_PRO - Lock mode for table /AIF/MMSG_PRO
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
COUNTER - Enqueue argument 09
Data type: /AIF/MMSG_PRO-COUNTEROptional: Yes
Call by Reference: No ( called with pass by value option)
X_NS - Fill argument 02 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_IFNAME - Fill argument 03 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_IFVER - Fill argument 04 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_LOGSYS - Fill argument 05 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_MSGTY - Fill argument 06 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_MSGID - Fill argument 07 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_MSGNO - Fill argument 08 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_COUNTER - Fill argument 09 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)
MANDT - Enqueue argument 01
Data type: /AIF/MMSG_PRO-MANDTDefault: SY-MANDT
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)
NS - Enqueue argument 02
Data type: /AIF/MMSG_PRO-NSOptional: Yes
Call by Reference: No ( called with pass by value option)
IFNAME - Enqueue argument 03
Data type: /AIF/MMSG_PRO-IFNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
IFVER - Enqueue argument 04
Data type: /AIF/MMSG_PRO-IFVEROptional: Yes
Call by Reference: No ( called with pass by value option)
LOGSYS - Enqueue argument 05
Data type: /AIF/MMSG_PRO-LOGSYSOptional: Yes
Call by Reference: No ( called with pass by value option)
MSGTY - Enqueue argument 06
Data type: /AIF/MMSG_PRO-MSGTYOptional: Yes
Call by Reference: No ( called with pass by value option)
MSGID - Enqueue argument 07
Data type: /AIF/MMSG_PRO-MSGIDOptional: Yes
Call by Reference: No ( called with pass by value option)
MSGNO - Enqueue argument 08
Data type: /AIF/MMSG_PRO-MSGNOOptional: 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_/AIF/E_MMSG_PRO 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_/aif/mmsg_pro | TYPE ENQMODE, " 'E' | |||
| lv_counter | TYPE /AIF/MMSG_PRO-COUNTER, " | |||
| lv_x_ns | TYPE /AIF/MMSG_PRO, " SPACE | |||
| lv_x_ifname | TYPE /AIF/MMSG_PRO, " SPACE | |||
| lv_x_ifver | TYPE /AIF/MMSG_PRO, " SPACE | |||
| lv_x_logsys | TYPE /AIF/MMSG_PRO, " SPACE | |||
| lv_x_msgty | TYPE /AIF/MMSG_PRO, " SPACE | |||
| lv_x_msgid | TYPE /AIF/MMSG_PRO, " SPACE | |||
| lv_x_msgno | TYPE /AIF/MMSG_PRO, " SPACE | |||
| lv_x_counter | TYPE /AIF/MMSG_PRO, " SPACE | |||
| lv__scope | TYPE /AIF/MMSG_PRO, " '2' | |||
| lv_mandt | TYPE /AIF/MMSG_PRO-MANDT, " SY-MANDT | |||
| lv_system_failure | TYPE /AIF/MMSG_PRO, " | |||
| lv__wait | TYPE /AIF/MMSG_PRO, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_ns | TYPE /AIF/MMSG_PRO-NS, " | |||
| lv_ifname | TYPE /AIF/MMSG_PRO-IFNAME, " | |||
| lv_ifver | TYPE /AIF/MMSG_PRO-IFVER, " | |||
| lv_logsys | TYPE /AIF/MMSG_PRO-LOGSYS, " | |||
| lv_msgty | TYPE /AIF/MMSG_PRO-MSGTY, " | |||
| lv_msgid | TYPE /AIF/MMSG_PRO-MSGID, " | |||
| lv_msgno | TYPE /AIF/MMSG_PRO-MSGNO. " |
|   CALL FUNCTION 'ENQUEUE_/AIF/E_MMSG_PRO' "Request lock for object /AIF/E_MMSG_PRO |
| EXPORTING | ||
| MODE_/AIF/MMSG_PRO | = lv_mode_/aif/mmsg_pro | |
| COUNTER | = lv_counter | |
| X_NS | = lv_x_ns | |
| X_IFNAME | = lv_x_ifname | |
| X_IFVER | = lv_x_ifver | |
| X_LOGSYS | = lv_x_logsys | |
| X_MSGTY | = lv_x_msgty | |
| X_MSGID | = lv_x_msgid | |
| X_MSGNO | = lv_x_msgno | |
| X_COUNTER | = lv_x_counter | |
| _SCOPE | = lv__scope | |
| MANDT | = lv_mandt | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| NS | = lv_ns | |
| IFNAME | = lv_ifname | |
| IFVER | = lv_ifver | |
| LOGSYS | = lv_logsys | |
| MSGTY | = lv_msgty | |
| MSGID | = lv_msgid | |
| MSGNO | = lv_msgno | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_/AIF/E_MMSG_PRO | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_/AIF/E_MMSG_PRO
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_/aif/mmsg_pro) | = 'E'. | |||
| "SELECT single COUNTER FROM /AIF/MMSG_PRO INTO @DATA(ld_counter). | ||||
| DATA(ld_x_ns) | = ' '. | |||
| DATA(ld_x_ifname) | = ' '. | |||
| DATA(ld_x_ifver) | = ' '. | |||
| DATA(ld_x_logsys) | = ' '. | |||
| DATA(ld_x_msgty) | = ' '. | |||
| DATA(ld_x_msgid) | = ' '. | |||
| DATA(ld_x_msgno) | = ' '. | |||
| DATA(ld_x_counter) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| "SELECT single MANDT FROM /AIF/MMSG_PRO INTO @DATA(ld_mandt). | ||||
| DATA(ld_mandt) | = SY-MANDT. | |||
| DATA(ld__wait) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| "SELECT single NS FROM /AIF/MMSG_PRO INTO @DATA(ld_ns). | ||||
| "SELECT single IFNAME FROM /AIF/MMSG_PRO INTO @DATA(ld_ifname). | ||||
| "SELECT single IFVER FROM /AIF/MMSG_PRO INTO @DATA(ld_ifver). | ||||
| "SELECT single LOGSYS FROM /AIF/MMSG_PRO INTO @DATA(ld_logsys). | ||||
| "SELECT single MSGTY FROM /AIF/MMSG_PRO INTO @DATA(ld_msgty). | ||||
| "SELECT single MSGID FROM /AIF/MMSG_PRO INTO @DATA(ld_msgid). | ||||
| "SELECT single MSGNO FROM /AIF/MMSG_PRO INTO @DATA(ld_msgno). | ||||
Search for further information about these or an SAP related objects