MM BAPI RFC Used the same way in S/4HANA

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:

Source: SAP's list of released objects (S/4HANA Cloud Private Edition, latest), SAP Cloudification Repository

Importing parameters

ParameterTypeDescriptionRequired
MATERIALBAPI_MARA_GA-MATERIALMaterial number—
PLANTBAPI_MARC_GA-PLANTPlant—

Exporting parameters

ParameterTypeDescription
CLIENTDATABAPI_MARA_GAMaterial data at client level
PLANTDATABAPI_MARC_GAMaterial data at plant level
FORECASTPARAMETERSBAPI_MPOP_GAForecast parameters
PLANNINGDATABAPI_MPGD_GAPlanning data
STORAGELOCATIONDATABAPI_MARD_GAMaterial data at storage location level
VALUATIONDATABAPI_MBEW_GAValuation data
LIFOVALUATIONDATABAPI_MYMS_GALIFO-relevant data
WAREHOUSENUMBERDATABAPI_MLGN_GAWarehouse number data
STORAGETYPEDATABAPI_MLGT_GAStorage type data
SALESDATABAPI_MVKE_GASales data
PRTDATABAPI_MFHM_GAProduction resource/tool data

Tables parameters

ParameterTypeDescriptionRequired
RETURNBAPIRETURNReturn 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.

Request a custom report