SAP MB_UPDATE_MATERIAL_ENQUEUE_TAB Function Module for NOTRANSL: Die Mengensperrtabellen werden fortgeschrieben
MB_UPDATE_MATERIAL_ENQUEUE_TAB is a standard mb update material enqueue tab 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 Mengensperrtabellen werden fortgeschrieben 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 update material enqueue tab FM, simply by entering the name MB_UPDATE_MATERIAL_ENQUEUE_TAB 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_UPDATE_MATERIAL_ENQUEUE_TAB 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_UPDATE_MATERIAL_ENQUEUE_TAB'"NOTRANSL: Die Mengensperrtabellen werden fortgeschrieben.
EXPORTING
BUDAT = "
DM07M = "
KZDCH = "
MSEG = "
VM07M = "
TABLES
XEKPO = "
XMKOL = "
XMRES = "
XMSKA = "
XMSKU = "
XMSLB = "
XMSPR = "
XMSSA = "
XMSSL = "
XMSSQ = "
XXISEG = "
XEKPK = "
* XMSTB = "Lock Table MSTB
* XMSTE = "Lock Table MSTE
* XMSTQ = "Lock Table MSTQ
XEKLA = "
XFAUP = "
XMARC = "
XMARD = "
XMCH1 = "
XMCHA = "
XMCHB = "
IMPORTING Parameters details for MB_UPDATE_MATERIAL_ENQUEUE_TAB
BUDAT -
Data type: MKPF-BUDATOptional: No
Call by Reference: No ( called with pass by value option)
DM07M -
Data type: DM07MOptional: No
Call by Reference: No ( called with pass by value option)
KZDCH -
Data type: TCUCH-KZDCHOptional: 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)
TABLES Parameters details for MB_UPDATE_MATERIAL_ENQUEUE_TAB
XEKPO -
Data type: SEKPOOptional: No
Call by Reference: No ( called with pass by value option)
XMKOL -
Data type: SMKOLOptional: No
Call by Reference: No ( called with pass by value option)
XMRES -
Data type: SMRESOptional: No
Call by Reference: No ( called with pass by value option)
XMSKA -
Data type: SMSKAOptional: No
Call by Reference: No ( called with pass by value option)
XMSKU -
Data type: SMSKUOptional: No
Call by Reference: No ( called with pass by value option)
XMSLB -
Data type: SMSLBOptional: No
Call by Reference: No ( called with pass by value option)
XMSPR -
Data type: SMSPROptional: No
Call by Reference: No ( called with pass by value option)
XMSSA -
Data type: SMSSAOptional: No
Call by Reference: No ( called with pass by value option)
XMSSL -
Data type: SMSSLOptional: No
Call by Reference: No ( called with pass by value option)
XMSSQ -
Data type: SMSSQOptional: No
Call by Reference: No ( called with pass by value option)
XXISEG -
Data type: SISEGOptional: No
Call by Reference: No ( called with pass by value option)
XEKPK -
Data type: SEKPKOptional: No
Call by Reference: No ( called with pass by value option)
XMSTB - Lock Table MSTB
Data type: SMSTBOptional: Yes
Call by Reference: Yes
XMSTE - Lock Table MSTE
Data type: SMSTEOptional: Yes
Call by Reference: Yes
XMSTQ - Lock Table MSTQ
Data type: SMSTQOptional: Yes
Call by Reference: Yes
XEKLA -
Data type: SEKLAOptional: No
Call by Reference: No ( called with pass by value option)
XFAUP -
Data type: SFAUPOptional: No
Call by Reference: No ( called with pass by value option)
XMARC -
Data type: SMARCOptional: No
Call by Reference: No ( called with pass by value option)
XMARD -
Data type: SMARDOptional: No
Call by Reference: No ( called with pass by value option)
XMCH1 -
Data type: SMCH1Optional: No
Call by Reference: No ( called with pass by value option)
XMCHA -
Data type: SMCHAOptional: 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)
Copy and paste ABAP code example for MB_UPDATE_MATERIAL_ENQUEUE_TAB 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_budat | TYPE MKPF-BUDAT, " | |||
| lt_xekpo | TYPE STANDARD TABLE OF SEKPO, " | |||
| lt_xmkol | TYPE STANDARD TABLE OF SMKOL, " | |||
| lt_xmres | TYPE STANDARD TABLE OF SMRES, " | |||
| lt_xmska | TYPE STANDARD TABLE OF SMSKA, " | |||
| lt_xmsku | TYPE STANDARD TABLE OF SMSKU, " | |||
| lt_xmslb | TYPE STANDARD TABLE OF SMSLB, " | |||
| lt_xmspr | TYPE STANDARD TABLE OF SMSPR, " | |||
| lt_xmssa | TYPE STANDARD TABLE OF SMSSA, " | |||
| lt_xmssl | TYPE STANDARD TABLE OF SMSSL, " | |||
| lt_xmssq | TYPE STANDARD TABLE OF SMSSQ, " | |||
| lt_xxiseg | TYPE STANDARD TABLE OF SISEG, " | |||
| lv_dm07m | TYPE DM07M, " | |||
| lt_xekpk | TYPE STANDARD TABLE OF SEKPK, " | |||
| lt_xmstb | TYPE STANDARD TABLE OF SMSTB, " | |||
| lt_xmste | TYPE STANDARD TABLE OF SMSTE, " | |||
| lt_xmstq | TYPE STANDARD TABLE OF SMSTQ, " | |||
| lv_kzdch | TYPE TCUCH-KZDCH, " | |||
| lt_xekla | TYPE STANDARD TABLE OF SEKLA, " | |||
| lv_mseg | TYPE MSEG, " | |||
| lt_xfaup | TYPE STANDARD TABLE OF SFAUP, " | |||
| lv_vm07m | TYPE VM07M, " | |||
| lt_xmarc | TYPE STANDARD TABLE OF SMARC, " | |||
| lt_xmard | TYPE STANDARD TABLE OF SMARD, " | |||
| lt_xmch1 | TYPE STANDARD TABLE OF SMCH1, " | |||
| lt_xmcha | TYPE STANDARD TABLE OF SMCHA, " | |||
| lt_xmchb | TYPE STANDARD TABLE OF SMCHB. " |
|   CALL FUNCTION 'MB_UPDATE_MATERIAL_ENQUEUE_TAB' "NOTRANSL: Die Mengensperrtabellen werden fortgeschrieben |
| EXPORTING | ||
| BUDAT | = lv_budat | |
| DM07M | = lv_dm07m | |
| KZDCH | = lv_kzdch | |
| MSEG | = lv_mseg | |
| VM07M | = lv_vm07m | |
| TABLES | ||
| XEKPO | = lt_xekpo | |
| XMKOL | = lt_xmkol | |
| XMRES | = lt_xmres | |
| XMSKA | = lt_xmska | |
| XMSKU | = lt_xmsku | |
| XMSLB | = lt_xmslb | |
| XMSPR | = lt_xmspr | |
| XMSSA | = lt_xmssa | |
| XMSSL | = lt_xmssl | |
| XMSSQ | = lt_xmssq | |
| XXISEG | = lt_xxiseg | |
| XEKPK | = lt_xekpk | |
| XMSTB | = lt_xmstb | |
| XMSTE | = lt_xmste | |
| XMSTQ | = lt_xmstq | |
| XEKLA | = lt_xekla | |
| XFAUP | = lt_xfaup | |
| XMARC | = lt_xmarc | |
| XMARD | = lt_xmard | |
| XMCH1 | = lt_xmch1 | |
| XMCHA | = lt_xmcha | |
| XMCHB | = lt_xmchb | |
| . " MB_UPDATE_MATERIAL_ENQUEUE_TAB | ||
ABAP code using 7.40 inline data declarations to call FM MB_UPDATE_MATERIAL_ENQUEUE_TAB
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 BUDAT FROM MKPF INTO @DATA(ld_budat). | ||||
| "SELECT single KZDCH FROM TCUCH INTO @DATA(ld_kzdch). | ||||
Search for further information about these or an SAP related objects