SAP MB_SHOW_MATERIAL_STRUCTURE Function Module for NOTRANSL: Struktur des strukturierten Materials zeigen









MB_SHOW_MATERIAL_STRUCTURE is a standard mb show material structure 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: Struktur des strukturierten Materials zeigen 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 show material structure FM, simply by entering the name MB_SHOW_MATERIAL_STRUCTURE 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_SHOW_MATERIAL_STRUCTURE 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_SHOW_MATERIAL_STRUCTURE'"NOTRANSL: Struktur des strukturierten Materials zeigen
EXPORTING
MATBF = "
WERKS = "
F_ATTYP = "
DATAB = "
DATBI = "
F_MENGE = "
MEINS = "
F_KZBWA = "
F_BFLME = "

IMPORTING
SUBRC = "

TABLES
XSTRU = "
.



IMPORTING Parameters details for MB_SHOW_MATERIAL_STRUCTURE

MATBF -

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

WERKS -

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

F_ATTYP -

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

DATAB -

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

DATBI -

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

F_MENGE -

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

MEINS -

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

F_KZBWA -

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

F_BFLME -

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

EXPORTING Parameters details for MB_SHOW_MATERIAL_STRUCTURE

SUBRC -

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

TABLES Parameters details for MB_SHOW_MATERIAL_STRUCTURE

XSTRU -

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

Copy and paste ABAP code example for MB_SHOW_MATERIAL_STRUCTURE 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_matbf  TYPE MSEG-MATBF, "   
lv_subrc  TYPE SY-SUBRC, "   
lt_xstru  TYPE STANDARD TABLE OF WSOS_STULI, "   
lv_werks  TYPE MSEG-WERKS, "   
lv_f_attyp  TYPE MARA-ATTYP, "   
lv_datab  TYPE MKPF-BUDAT, "   
lv_datbi  TYPE MKPF-BUDAT, "   
lv_f_menge  TYPE MSEG-MENGE, "   
lv_meins  TYPE MSEG-MEINS, "   
lv_f_kzbwa  TYPE T156-KZBWA, "   
lv_f_bflme  TYPE MARA-BFLME. "   

  CALL FUNCTION 'MB_SHOW_MATERIAL_STRUCTURE'  "NOTRANSL: Struktur des strukturierten Materials zeigen
    EXPORTING
         MATBF = lv_matbf
         WERKS = lv_werks
         F_ATTYP = lv_f_attyp
         DATAB = lv_datab
         DATBI = lv_datbi
         F_MENGE = lv_f_menge
         MEINS = lv_meins
         F_KZBWA = lv_f_kzbwa
         F_BFLME = lv_f_bflme
    IMPORTING
         SUBRC = lv_subrc
    TABLES
         XSTRU = lt_xstru
. " MB_SHOW_MATERIAL_STRUCTURE




ABAP code using 7.40 inline data declarations to call FM MB_SHOW_MATERIAL_STRUCTURE

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 MATBF FROM MSEG INTO @DATA(ld_matbf).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_subrc).
 
 
"SELECT single WERKS FROM MSEG INTO @DATA(ld_werks).
 
"SELECT single ATTYP FROM MARA INTO @DATA(ld_f_attyp).
 
"SELECT single BUDAT FROM MKPF INTO @DATA(ld_datab).
 
"SELECT single BUDAT FROM MKPF INTO @DATA(ld_datbi).
 
"SELECT single MENGE FROM MSEG INTO @DATA(ld_f_menge).
 
"SELECT single MEINS FROM MSEG INTO @DATA(ld_meins).
 
"SELECT single KZBWA FROM T156 INTO @DATA(ld_f_kzbwa).
 
"SELECT single BFLME FROM MARA INTO @DATA(ld_f_bflme).
 


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!