SAP Function BAPI_MATERIAL_GET_ALL - BAPI for Reading Material Data

Parameter Reference Type Length Default Optional Text
COMP_CODE BAPI0002_1-COMP_CODE C 4 X Company Code
DISTR_CHAN BAPI_MVKE_GA-DISTR_CHAN C 2 X Distribution Channel
KZRFB_ALL MTCOM-KZRFB C 1 X Indicator: reset buffer for Material_Pre_Fetch
LIFO_VALUATION_LEVEL BAPI_MYMS_GA-LIFO_VALUATION_LEVEL C 4 X LIFO Valuation Level
MATERIAL BAPI_MARA_GA-MATERIAL C 18 Material Number
PLANT BAPI_MARC_GA-PLANT C 4 X Plant
SALESORG BAPI_MVKE_GA-SALES_ORG C 4 X Sales Organization
STGE_LOC BAPI_MARD_GA-STGE_LOC C 4 X Storage Location
STGE_TYPE BAPI_MLGT_GA-STGE_TYPE C 3 X Storage Type
VAL_AREA BAPI_MBEW_GA-VAL_AREA C 4 X Valuation Area
VAL_TYPE BAPI_MBEW_GA-VAL_TYPE C 10 X Valuation Type
WHSENUMBER BAPI_MLGN_GA-WHSE_NO C 3 X Warehouse Number / Warehouse Complex

Parameter Reference Type Length Text
CLIENTDATA BAPI_MARA_GA u 1340 Material Data at Client Level
FORECASTPARAMETERS BAPI_MPOP_GA u 177 Forecast Parameters
LIFOVALUATIONDATA BAPI_MYMS_GA u 8 LIFO-Relevant Material Data
PLANNINGDATA BAPI_MPGD_GA u 118 Change Document Structure for Material Master/Product Group
PLANTDATA BAPI_MARC_GA u 1011 Material Data at Plant Level
PRTDATA BAPI_MFHM_GA u 69 Production Resource Tool (PRT) Fields in the Material Master
SALESDATA BAPI_MVKE_GA u 227 Sales Data
STORAGELOCATIONDATA BAPI_MARD_GA u 72 Material Data at Storage Location Level
STORAGETYPEDATA BAPI_MLGT_GA u 55 Storage type data
VALUATIONDATA BAPI_MBEW_GA u 389 Valuation Data
WAREHOUSENUMBERDATA BAPI_MLGN_GA u 89 Warehouse Number Data

Parameter Reference Length Optional Text
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
INTERNATIONALARTNOS BAPI_MEAN_GA 27 X International Article Numbers (EANs)
MATERIALDESCRIPTION BAPI_MAKT_GA 43 X Material Descriptions
MATERIALLONGTEXT BAPI_MLTX_GA 221 X Long Texts
RETURN BAPIRETURN 452 X Return Parameters
TAXCLASSIFICATIONS BAPI_MLAN_GA 10 X Tax Data
UNITSOFMEASURE BAPI_MARM_GA 126 X Units of Measure

Functionality
This method is the follow-on method from BAPI_MATERIAL_GET_DETAIL. Incontrast to the original method, this method can read all of thematerial master data for a specified combination of organizationalunits. Depending on the organizational unit entered, the system returnsthe corresponding material master data. If you only enter the materialnumber (the only required entry parameter), the method only returnsclient-specific material data for the material entered.

Example
If you enter the import parameters MATERIAL / VAL_AREA / PLANT/STGE_LOC/ SALESORG / DISTR_CHAN the method returns the materialmaster data on tables MARA / MBEW/ MARC/ MARD/ MVKE.

Notes
You need the authorization required to display material master data forthe data to be read successfully.
Messages are returned in parameter RETURN.

Description
This structure is used to return the material data for the client to thecalling program.
You can find information on the meaning of the individual fields in thestructure in the data element documentation for the individual field.

Description
This structure is used to return the plant-specific forecast data for amaterial to the calling program.
For information on the meaning of the individual fields in the structure
, see the corresponding data element documentation on the individualfields.

Description
This structure is used to return the LIFO-relevant material data to thecalling program.
For information on the individual fields in the structure, see thecorresponding data element documentation on the individual fields.

Description
This structure is used to return the plant-specific planning data for amaterial to the calling program.
For information on the individual fields in the structure, see thecorresponding data element documentation on the individual fields.

Description
This structure is used to return plant-specific data for a material tothe calling program.
For information on the meaning of the individual fields in the structure
, see the corresponding data element documentation on the individualfields.

Description
This structure is used to return the production resource/tool data for amaterial to the calling program.
For information on the meaning of the individual fields in the structure
, see the corresponding data element documenation for the individualfields.

Description
This structure is used to return the sales data for a material to thecalling program.
For information on the meaning of the individual fields in the structure
, see the corresponding data element documentation on the individualfields.

Description
This structure is used to return the storage-location specific data fora material to the calling program.
For information on the meaning of the individual fields in the structure
, see the corresponding data element documenation for the individualfields.

Description
This structure is used to return the material data for each storage typefor a material to the calling program.
For information on the meaning of the individual fields in the structure
, see the data element documentation in the individual fields.

Description
This structure is used to return the valuation area-specific andvaluation type-specific data for a material to the calling program.
For information on the meaning of the individual fields, see thecorresponding data element documentation for the individual fields.

Description
This structure is used to return material data for each warehouse numberfor a material to the calling program.
For information on the meaning of the individual fields in the structure
, see the corresponding data element documentation on the individualfields.

Description
You can find information on the meaning of the company code in thecorresponding entry in the glossary:
company code

Description
For information on the meaning of the distribution channel, see thecorresponding data element documentation:
distribution channel

Description
For information on the meaning of the LIFO valuation level, see thecorresponding data element documentation:
LIFO valuation level

Description
For information on the meaning of the material number, see thecorresponding data element documentation:
material number

Description
For a definition of the plant, see the corresponding entry in theglossary:
plant

Description
For information on the meaning of the sales organization, see thecorresponding data element documentation:
Sales organization

Description
For information on the meaning of the storage location, see thecorresponding data element documentation:
Storage location

Description
For information on the meaning of the storage type, see thecorresponding data element documentation:
Storage type

Description
For information on the meaning of the valuation area, see thecorresponding data element documentation:
Valuation area

Description
For information on the meaning of the valuation type, see thecorresponding data element documentation:
Valuation type

Description
For information on the meaning of the warehouse number, see thecorresponding data element documentation:
Warehouse number/warehouse complex

Description
This table is used to return customer-specific data to the callingprogram.

Description
This table is used to return the EAN numbers of the material to thecalling program.

Description
This table is used to return the material short texts to the callingprogram.

Description
This table is used to return the material long texts to the callingprogram.

Description
This table is used to save the messages processed by the method.
Since a number of notes and error messages can appear during processing,the messages created are stored in this table.

Description
This table is used to return the tax data of the material to the callingprogram.

Description
This table is used to return the units of measure for the material tothe calling program.