SAP BBP_MATERIAL_READ Function Module for Read material master









BBP_MATERIAL_READ is a standard bbp material read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read material master 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 bbp material read FM, simply by entering the name BBP_MATERIAL_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: BBPM
Program Name: SAPLBBPM
Main Program: SAPLBBPM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BBP_MATERIAL_READ 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 'BBP_MATERIAL_READ'"Read material master
EXPORTING
I_MTCOM = "

IMPORTING
E_BMATN = "
E_BKLAS = "
E_LVORM = "Flag Material for Deletion at Client Level
E_MMSTA = "
E_MAKTX = "
E_MATKL = "
E_MEINS = "
E_VPRSV = "
E_VERPR = "
E_STPRS = "
E_PEINH = "
E_EKGRP = "

EXCEPTIONS
MAT_NOT_FOUND = 1
.



IMPORTING Parameters details for BBP_MATERIAL_READ

I_MTCOM -

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

EXPORTING Parameters details for BBP_MATERIAL_READ

E_BMATN -

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

E_BKLAS -

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

E_LVORM - Flag Material for Deletion at Client Level

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

E_MMSTA -

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

E_MAKTX -

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

E_MATKL -

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

E_MEINS -

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

E_VPRSV -

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

E_VERPR -

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

E_STPRS -

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

E_PEINH -

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

E_EKGRP -

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

EXCEPTIONS details

MAT_NOT_FOUND -

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

Copy and paste ABAP code example for BBP_MATERIAL_READ 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_e_bmatn  TYPE MT06E-STDPD, "   
lv_i_mtcom  TYPE BBP_MTCOM, "   
lv_mat_not_found  TYPE BBP_MTCOM, "   
lv_e_bklas  TYPE MBEW-BKLAS, "   
lv_e_lvorm  TYPE MARA-LVORM, "   
lv_e_mmsta  TYPE MARC-MMSTA, "   
lv_e_maktx  TYPE MAKT-MAKTX, "   
lv_e_matkl  TYPE MARA-MATKL, "   
lv_e_meins  TYPE MARA-MEINS, "   
lv_e_vprsv  TYPE MBEW-VPRSV, "   
lv_e_verpr  TYPE MBEW-VERPR, "   
lv_e_stprs  TYPE MBEW-STPRS, "   
lv_e_peinh  TYPE MBEW-PEINH, "   
lv_e_ekgrp  TYPE MARC-EKGRP. "   

  CALL FUNCTION 'BBP_MATERIAL_READ'  "Read material master
    EXPORTING
         I_MTCOM = lv_i_mtcom
    IMPORTING
         E_BMATN = lv_e_bmatn
         E_BKLAS = lv_e_bklas
         E_LVORM = lv_e_lvorm
         E_MMSTA = lv_e_mmsta
         E_MAKTX = lv_e_maktx
         E_MATKL = lv_e_matkl
         E_MEINS = lv_e_meins
         E_VPRSV = lv_e_vprsv
         E_VERPR = lv_e_verpr
         E_STPRS = lv_e_stprs
         E_PEINH = lv_e_peinh
         E_EKGRP = lv_e_ekgrp
    EXCEPTIONS
        MAT_NOT_FOUND = 1
. " BBP_MATERIAL_READ




ABAP code using 7.40 inline data declarations to call FM BBP_MATERIAL_READ

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 STDPD FROM MT06E INTO @DATA(ld_e_bmatn).
 
 
 
"SELECT single BKLAS FROM MBEW INTO @DATA(ld_e_bklas).
 
"SELECT single LVORM FROM MARA INTO @DATA(ld_e_lvorm).
 
"SELECT single MMSTA FROM MARC INTO @DATA(ld_e_mmsta).
 
"SELECT single MAKTX FROM MAKT INTO @DATA(ld_e_maktx).
 
"SELECT single MATKL FROM MARA INTO @DATA(ld_e_matkl).
 
"SELECT single MEINS FROM MARA INTO @DATA(ld_e_meins).
 
"SELECT single VPRSV FROM MBEW INTO @DATA(ld_e_vprsv).
 
"SELECT single VERPR FROM MBEW INTO @DATA(ld_e_verpr).
 
"SELECT single STPRS FROM MBEW INTO @DATA(ld_e_stprs).
 
"SELECT single PEINH FROM MBEW INTO @DATA(ld_e_peinh).
 
"SELECT single EKGRP FROM MARC INTO @DATA(ld_e_ekgrp).
 


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!