SAP MB_MODIFY_STOCK_ENQUEUE_ENTRY Function Module for NOTRANSL: Die Mengensperreinträge werden geschrieben
MB_MODIFY_STOCK_ENQUEUE_ENTRY is a standard mb modify stock enqueue entry 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: Die Mengensperreinträge werden geschrieben 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 mb modify stock enqueue entry FM, simply by entering the name MB_MODIFY_STOCK_ENQUEUE_ENTRY into the relevant SAP transaction such as SE37 or SE38.
Function Group: MBMV
Program Name: SAPLMBMV
Main Program: SAPLMBMV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MB_MODIFY_STOCK_ENQUEUE_ENTRY 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 'MB_MODIFY_STOCK_ENQUEUE_ENTRY'"NOTRANSL: Die Mengensperreinträge werden geschrieben.
EXPORTING
XNEUP = "
XAENP = "
MBEQU = "
BASMG = "
BASWR = "
MSEG = "
VM07M = "
* REFRESH = ' ' "
CHANGING
DM07M = "
TABLES
X156M = "
* XMSPR = "
* XMSTB = "
* XMSTE = "
* XMSTQ = "
X156W = "
XMCHB = "
* XMARD = "
* XMARC = "
* XMKOL = "
* XMSKU = "
* XMSLB = "
* XMSKA = "
IMPORTING Parameters details for MB_MODIFY_STOCK_ENQUEUE_ENTRY
XNEUP -
Data type: T063F-XNEUPOptional: No
Call by Reference: No ( called with pass by value option)
XAENP -
Data type: T063F-XAENPOptional: No
Call by Reference: No ( called with pass by value option)
MBEQU -
Data type: TCURM-MBEQUOptional: No
Call by Reference: No ( called with pass by value option)
BASMG -
Data type: MSEG-MENGEOptional: No
Call by Reference: No ( called with pass by value option)
BASWR -
Data type: MSEG-VKWRTOptional: No
Call by Reference: No ( called with pass by value option)
MSEG -
Data type: MSEGOptional: No
Call by Reference: No ( called with pass by value option)
VM07M -
Data type: VM07MOptional: No
Call by Reference: No ( called with pass by value option)
REFRESH -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for MB_MODIFY_STOCK_ENQUEUE_ENTRY
DM07M -
Data type: DM07MOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MB_MODIFY_STOCK_ENQUEUE_ENTRY
X156M -
Data type: T156MOptional: No
Call by Reference: No ( called with pass by value option)
XMSPR -
Data type: SMSPROptional: Yes
Call by Reference: No ( called with pass by value option)
XMSTB -
Data type: SMSTBOptional: Yes
Call by Reference: Yes
XMSTE -
Data type: SMSTEOptional: Yes
Call by Reference: Yes
XMSTQ -
Data type: SMSTQOptional: Yes
Call by Reference: Yes
X156W -
Data type: T156WOptional: No
Call by Reference: No ( called with pass by value option)
XMCHB -
Data type: SMCHBOptional: No
Call by Reference: No ( called with pass by value option)
XMARD -
Data type: SMARDOptional: Yes
Call by Reference: No ( called with pass by value option)
XMARC -
Data type: SMARCOptional: Yes
Call by Reference: No ( called with pass by value option)
XMKOL -
Data type: SMKOLOptional: Yes
Call by Reference: No ( called with pass by value option)
XMSKU -
Data type: SMSKUOptional: Yes
Call by Reference: No ( called with pass by value option)
XMSLB -
Data type: SMSLBOptional: Yes
Call by Reference: No ( called with pass by value option)
XMSKA -
Data type: SMSKAOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MB_MODIFY_STOCK_ENQUEUE_ENTRY 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_dm07m | TYPE DM07M, " | |||
| lt_x156m | TYPE STANDARD TABLE OF T156M, " | |||
| lv_xneup | TYPE T063F-XNEUP, " | |||
| lt_xmspr | TYPE STANDARD TABLE OF SMSPR, " | |||
| lt_xmstb | TYPE STANDARD TABLE OF SMSTB, " | |||
| lt_xmste | TYPE STANDARD TABLE OF SMSTE, " | |||
| lt_xmstq | TYPE STANDARD TABLE OF SMSTQ, " | |||
| lt_x156w | TYPE STANDARD TABLE OF T156W, " | |||
| lv_xaenp | TYPE T063F-XAENP, " | |||
| lv_mbequ | TYPE TCURM-MBEQU, " | |||
| lt_xmchb | TYPE STANDARD TABLE OF SMCHB, " | |||
| lv_basmg | TYPE MSEG-MENGE, " | |||
| lt_xmard | TYPE STANDARD TABLE OF SMARD, " | |||
| lv_baswr | TYPE MSEG-VKWRT, " | |||
| lt_xmarc | TYPE STANDARD TABLE OF SMARC, " | |||
| lv_mseg | TYPE MSEG, " | |||
| lt_xmkol | TYPE STANDARD TABLE OF SMKOL, " | |||
| lv_vm07m | TYPE VM07M, " | |||
| lt_xmsku | TYPE STANDARD TABLE OF SMSKU, " | |||
| lt_xmslb | TYPE STANDARD TABLE OF SMSLB, " | |||
| lv_refresh | TYPE C, " SPACE | |||
| lt_xmska | TYPE STANDARD TABLE OF SMSKA. " |
|   CALL FUNCTION 'MB_MODIFY_STOCK_ENQUEUE_ENTRY' "NOTRANSL: Die Mengensperreinträge werden geschrieben |
| EXPORTING | ||
| XNEUP | = lv_xneup | |
| XAENP | = lv_xaenp | |
| MBEQU | = lv_mbequ | |
| BASMG | = lv_basmg | |
| BASWR | = lv_baswr | |
| MSEG | = lv_mseg | |
| VM07M | = lv_vm07m | |
| REFRESH | = lv_refresh | |
| CHANGING | ||
| DM07M | = lv_dm07m | |
| TABLES | ||
| X156M | = lt_x156m | |
| XMSPR | = lt_xmspr | |
| XMSTB | = lt_xmstb | |
| XMSTE | = lt_xmste | |
| XMSTQ | = lt_xmstq | |
| X156W | = lt_x156w | |
| XMCHB | = lt_xmchb | |
| XMARD | = lt_xmard | |
| XMARC | = lt_xmarc | |
| XMKOL | = lt_xmkol | |
| XMSKU | = lt_xmsku | |
| XMSLB | = lt_xmslb | |
| XMSKA | = lt_xmska | |
| . " MB_MODIFY_STOCK_ENQUEUE_ENTRY | ||
ABAP code using 7.40 inline data declarations to call FM MB_MODIFY_STOCK_ENQUEUE_ENTRY
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 XNEUP FROM T063F INTO @DATA(ld_xneup). | ||||
| "SELECT single XAENP FROM T063F INTO @DATA(ld_xaenp). | ||||
| "SELECT single MBEQU FROM TCURM INTO @DATA(ld_mbequ). | ||||
| "SELECT single MENGE FROM MSEG INTO @DATA(ld_basmg). | ||||
| "SELECT single VKWRT FROM MSEG INTO @DATA(ld_baswr). | ||||
| DATA(ld_refresh) | = ' '. | |||
Search for further information about these or an SAP related objects