SAP MM_DEQUEUE_DOCUMENT Function Module for NOTRANSL: MM_DEQUEUE_DOCUMENT
MM_DEQUEUE_DOCUMENT is a standard mm dequeue document SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: MM_DEQUEUE_DOCUMENT 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 mm dequeue document FM, simply by entering the name MM_DEQUEUE_DOCUMENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: MEXF
Program Name: SAPLMEXF
Main Program: SAPLMEXF
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MM_DEQUEUE_DOCUMENT 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 'MM_DEQUEUE_DOCUMENT'"NOTRANSL: MM_DEQUEUE_DOCUMENT.
EXPORTING
I_EBELN = "
* I_EBELP = "
* I_BSTYP = "
* I_WAIT = ' ' "
* I_LOGSYS = "Logical System
* I_SCOPE = '2' "Control Lock Behavior When Calling the Update Task
EXCEPTIONS
SYSTEM_FAILURE = 1 PARAMETER_ERROR = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLMEXF_001 No Invoice for Purchase Order Item but Conditions Allowed
IMPORTING Parameters details for MM_DEQUEUE_DOCUMENT
I_EBELN -
Data type: EKKO-EBELNOptional: No
Call by Reference: No ( called with pass by value option)
I_EBELP -
Data type: EKPO-EBELPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BSTYP -
Data type: EKKO-BSTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_WAIT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LOGSYS - Logical System
Data type: T000-LOGSYSOptional: Yes
Call by Reference: Yes
I_SCOPE - Control Lock Behavior When Calling the Update Task
Data type: DDENQSCOPEDefault: '2'
Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
SYSTEM_FAILURE - System Error When Locking
Data type:Optional: No
Call by Reference: Yes
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MM_DEQUEUE_DOCUMENT 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_i_ebeln | TYPE EKKO-EBELN, " | |||
| lv_system_failure | TYPE EKKO, " | |||
| lv_i_ebelp | TYPE EKPO-EBELP, " | |||
| lv_parameter_error | TYPE EKPO, " | |||
| lv_i_bstyp | TYPE EKKO-BSTYP, " | |||
| lv_i_wait | TYPE EKKO, " SPACE | |||
| lv_i_logsys | TYPE T000-LOGSYS, " | |||
| lv_i_scope | TYPE DDENQSCOPE. " '2' |
|   CALL FUNCTION 'MM_DEQUEUE_DOCUMENT' "NOTRANSL: MM_DEQUEUE_DOCUMENT |
| EXPORTING | ||
| I_EBELN | = lv_i_ebeln | |
| I_EBELP | = lv_i_ebelp | |
| I_BSTYP | = lv_i_bstyp | |
| I_WAIT | = lv_i_wait | |
| I_LOGSYS | = lv_i_logsys | |
| I_SCOPE | = lv_i_scope | |
| EXCEPTIONS | ||
| SYSTEM_FAILURE = 1 | ||
| PARAMETER_ERROR = 2 | ||
| . " MM_DEQUEUE_DOCUMENT | ||
ABAP code using 7.40 inline data declarations to call FM MM_DEQUEUE_DOCUMENT
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.| "SELECT single EBELN FROM EKKO INTO @DATA(ld_i_ebeln). | ||||
| "SELECT single EBELP FROM EKPO INTO @DATA(ld_i_ebelp). | ||||
| "SELECT single BSTYP FROM EKKO INTO @DATA(ld_i_bstyp). | ||||
| DATA(ld_i_wait) | = ' '. | |||
| "SELECT single LOGSYS FROM T000 INTO @DATA(ld_i_logsys). | ||||
| DATA(ld_i_scope) | = '2'. | |||
Search for further information about these or an SAP related objects