SAP MB_FILL_MRES_ENQUEUE_TABLE Function Module for NOTRANSL: Die Mengensperrtabelle für die Reservierung wird gefüllt









MB_FILL_MRES_ENQUEUE_TABLE is a standard mb fill mres enqueue table 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 Mengensperrtabelle für die Reservierung wird gefüllt 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 fill mres enqueue table FM, simply by entering the name MB_FILL_MRES_ENQUEUE_TABLE 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_FILL_MRES_ENQUEUE_TABLE 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_FILL_MRES_ENQUEUE_TABLE'"NOTRANSL: Die Mengensperrtabelle für die Reservierung wird gefüllt
EXPORTING
* AUFNR = ' ' "
RSART = "
* BDART = "
* PRREG = "
* KZVBP = "
* MTVFP = "
* MATNO = "
* WERK = "
* RSHKZ = "
* KZUML = "
BDMNG = "
ENMNG = "
ENWRT = "
KZEAR = "
KZEAR_OLD = "
RSNUM = "
RSPOS = "
VFMNG = "

TABLES
XMRES = "
.



IMPORTING Parameters details for MB_FILL_MRES_ENQUEUE_TABLE

AUFNR -

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

RSART -

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

BDART -

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

PRREG -

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

KZVBP -

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

MTVFP -

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

MATNO -

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

WERK -

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

RSHKZ -

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

KZUML -

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

BDMNG -

Data type: DM07M-BDMNG
Optional: No
Call by Reference: No ( called with pass by value option)

ENMNG -

Data type: DM07M-ENMNG
Optional: No
Call by Reference: No ( called with pass by value option)

ENWRT -

Data type: DM07M-ENWRT
Optional: No
Call by Reference: No ( called with pass by value option)

KZEAR -

Data type: MSEG-KZEAR
Optional: No
Call by Reference: No ( called with pass by value option)

KZEAR_OLD -

Data type: VM07M-KZEAR_OLD
Optional: No
Call by Reference: No ( called with pass by value option)

RSNUM -

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

RSPOS -

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

VFMNG -

Data type: DM07M-VFMNG
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for MB_FILL_MRES_ENQUEUE_TABLE

XMRES -

Data type: SMRES
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MB_FILL_MRES_ENQUEUE_TABLE 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_aufnr  TYPE MSEG-AUFNR, "   SPACE
lt_xmres  TYPE STANDARD TABLE OF SMRES, "   
lv_rsart  TYPE MSEG-RSART, "   
lv_bdart  TYPE DM07M-BDART, "   
lv_prreg  TYPE T158-PRREG, "   
lv_kzvbp  TYPE DM07M-KZVBP, "   
lv_mtvfp  TYPE VM07M-MTVFP, "   
lv_matno  TYPE MSEG-MATNR, "   
lv_werk  TYPE MSEG-WERKS, "   
lv_rshkz  TYPE DM07M-RSHKZ, "   
lv_kzuml  TYPE DM07M-KZUML, "   
lv_bdmng  TYPE DM07M-BDMNG, "   
lv_enmng  TYPE DM07M-ENMNG, "   
lv_enwrt  TYPE DM07M-ENWRT, "   
lv_kzear  TYPE MSEG-KZEAR, "   
lv_kzear_old  TYPE VM07M-KZEAR_OLD, "   
lv_rsnum  TYPE MSEG-RSNUM, "   
lv_rspos  TYPE MSEG-RSPOS, "   
lv_vfmng  TYPE DM07M-VFMNG. "   

  CALL FUNCTION 'MB_FILL_MRES_ENQUEUE_TABLE'  "NOTRANSL: Die Mengensperrtabelle für die Reservierung wird gefüllt
    EXPORTING
         AUFNR = lv_aufnr
         RSART = lv_rsart
         BDART = lv_bdart
         PRREG = lv_prreg
         KZVBP = lv_kzvbp
         MTVFP = lv_mtvfp
         MATNO = lv_matno
         WERK = lv_werk
         RSHKZ = lv_rshkz
         KZUML = lv_kzuml
         BDMNG = lv_bdmng
         ENMNG = lv_enmng
         ENWRT = lv_enwrt
         KZEAR = lv_kzear
         KZEAR_OLD = lv_kzear_old
         RSNUM = lv_rsnum
         RSPOS = lv_rspos
         VFMNG = lv_vfmng
    TABLES
         XMRES = lt_xmres
. " MB_FILL_MRES_ENQUEUE_TABLE




ABAP code using 7.40 inline data declarations to call FM MB_FILL_MRES_ENQUEUE_TABLE

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 AUFNR FROM MSEG INTO @DATA(ld_aufnr).
DATA(ld_aufnr) = ' '.
 
 
"SELECT single RSART FROM MSEG INTO @DATA(ld_rsart).
 
"SELECT single BDART FROM DM07M INTO @DATA(ld_bdart).
 
"SELECT single PRREG FROM T158 INTO @DATA(ld_prreg).
 
"SELECT single KZVBP FROM DM07M INTO @DATA(ld_kzvbp).
 
"SELECT single MTVFP FROM VM07M INTO @DATA(ld_mtvfp).
 
"SELECT single MATNR FROM MSEG INTO @DATA(ld_matno).
 
"SELECT single WERKS FROM MSEG INTO @DATA(ld_werk).
 
"SELECT single RSHKZ FROM DM07M INTO @DATA(ld_rshkz).
 
"SELECT single KZUML FROM DM07M INTO @DATA(ld_kzuml).
 
"SELECT single BDMNG FROM DM07M INTO @DATA(ld_bdmng).
 
"SELECT single ENMNG FROM DM07M INTO @DATA(ld_enmng).
 
"SELECT single ENWRT FROM DM07M INTO @DATA(ld_enwrt).
 
"SELECT single KZEAR FROM MSEG INTO @DATA(ld_kzear).
 
"SELECT single KZEAR_OLD FROM VM07M INTO @DATA(ld_kzear_old).
 
"SELECT single RSNUM FROM MSEG INTO @DATA(ld_rsnum).
 
"SELECT single RSPOS FROM MSEG INTO @DATA(ld_rspos).
 
"SELECT single VFMNG FROM DM07M INTO @DATA(ld_vfmng).
 


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!