BAPI_MATERIAL_GET_ALL Read All Material Data
Reads the material master for one material across many views in a single call: client, plant, storage location, valuation, sales, warehouse, forecast and other data. It is useful for interfaces that replicate material master data or for comparing material views between systems. Supply the organizational keys (plant, valuation area and so on) for the views you need, because only those views are filled.
- Function group
- BUS1001006
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
ABAP Cloud and clean core status
Not to be released for ABAP Cloud LO-MD-MM
SAP does not release this object for ABAP Cloud. It keeps working in classic ABAP; in ABAP Cloud and clean core development use the successor below.
Use instead in ABAP Cloud:
- I_Product
- I_ProductDescription
- I_ProductPlantBasic
- I_ProductPlantCosting
- I_ProductPlantForecast
- I_ProductPlantIntlTrd
- I_ProductPlantMRP
- I_ProductPlantProcurement
- I_ProductPlantQtManagement
- I_ProductPlantSales
- I_ProductProcurement
- I_ProductPurchaseTax
- I_ProductQM
- I_PRODUCTRETAIL
- I_ProductSales
- I_ProductSalesDelivery
- I_ProductSalesTax
- I_ProductStorageLocationBasic
- I_ProductStorage_2
- I_ProductSupplyPlanning
- I_PRODUCTTAXCLASSIFICATION
- I_ProductUnitOfMeasureEAN
- I_ProductUnitsOfMeasure
- I_ProductValuationAcct
- I_ProductValuationBasic
- I_ProductValuationCosting
- I_ProductWorkScheduling
- I_PRODUNITOFMEASURETEXTBASIC
Source: SAP's list of released objects (S/4HANA Cloud Private Edition, latest), SAP Cloudification Repository
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| MATERIAL | BAPI_MARA_GA-MATERIAL | Material number | — |
| PLANT | BAPI_MARC_GA-PLANT | Plant | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| CLIENTDATA | BAPI_MARA_GA | Material data at client level |
| PLANTDATA | BAPI_MARC_GA | Material data at plant level |
| FORECASTPARAMETERS | BAPI_MPOP_GA | Forecast parameters |
| PLANNINGDATA | BAPI_MPGD_GA | Planning data |
| STORAGELOCATIONDATA | BAPI_MARD_GA | Material data at storage location level |
| VALUATIONDATA | BAPI_MBEW_GA | Valuation data |
| LIFOVALUATIONDATA | BAPI_MYMS_GA | LIFO-relevant data |
| WAREHOUSENUMBERDATA | BAPI_MLGN_GA | Warehouse number data |
| STORAGETYPEDATA | BAPI_MLGT_GA | Storage type data |
| SALESDATA | BAPI_MVKE_GA | Sales data |
| PRTDATA | BAPI_MFHM_GA | Production resource/tool data |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| RETURN | BAPIRETURN | Return messages | — |
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_MATERIAL_GET_ALL'
IMPORTING
clientdata = lv_clientdata
plantdata = lv_plantdata
forecastparameters = lv_forecastparameters
planningdata = lv_planningdata
storagelocationdata = lv_storagelocationdata
valuationdata = lv_valuationdata
lifovaluationdata = lv_lifovaluationdata
warehousenumberdata = lv_warehousenumberdata
storagetypedata = lv_storagetypedata
salesdata = lv_salesdata
TABLES
return = lt_return.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.