Fonction SAP BAPI_MATERIAL_GETALL - Wrapper for BAPI for Reading Material Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COMPANYCODE BAPI0002_1-COMP_CODE C 4 X Company Code
DISTRIBUTIONCHANNEL BAPI_MVKE_GA-DISTR_CHAN C 2 X Distribution Channel
KZRFB_ALL MTCOM-KZRFB C 1 X Indicator: reset buffer for Material_Pre_Fetch
LIFOVALUATIONLEVEL BAPI_MYMS_GA-LIFO_VALUATION_LEVEL C 4 X LIFO Valuation Level
MATERIAL BAPI_MARA_GA-MATERIAL C 18 Material Number
MATERIAL_EVG BAPIMGVMATNR u 82 X Long Material Number
PLANT BAPI_MARC_GA-PLANT C 4 X Plant
SALESORGANISATION BAPI_MVKE_GA-SALES_ORG C 4 X Sales Organization
STORAGELOCATION BAPI_MARD_GA-STGE_LOC C 4 X Storage Location
STORAGETYPE BAPI_MLGT_GA-STGE_TYPE C 3 X Storage Type
VALUATIONAREA BAPI_MBEW_GA-VAL_AREA C 4 X Valuation Area
VALUATIONTYPE BAPI_MBEW_GA-VAL_TYPE C 10 X Valuation Type
WAREHOUSENUMBER BAPI_MLGN_GA-WHSE_NO C 3 X Warehouse Number / Warehouse Complex

Paramètre Reférence Type Long. Description
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
PRODUCTIONRESOURCETOOLDATA 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

Paramètre Reférence Long. Facultatif Description
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
INTERNATIONARTICLENUMBERS BAPI_MEAN_GA 27 X International Article Numbers (EANs)
MATERIALDESCRIPTION BAPI_MAKT_GA 43 X Material Descriptions
MATERIALTEXT BAPI_MLTX_GA 221 X Long Texts
RETURN BAPIRETURN 452 X Return Parameters
TAXCLASSIFICATIONS BAPI_MLAN_GA 10 X Control Data
UNITSOFMEASURE BAPI_MARM_GA 126 X Units of Measure

Functionality
The method is the follow-up method to BAPI_MATERIAL_GET_DETAIL. Unlikethe original method, you can use this method to read all material masterdata for a specified organizational unit combination. According to theorganizational unit you enter, the relevant material master data isreturned. If only the material number (the only required parameter) istransferred, this method returns only client-specific material data forthe specified material.

Example
If you specify import parameters MATERIAL, VAL_AREA, PLANT, STGE_LOC,SALESORG, and DISTR_CHAN, the method returns the material master data intables MARA, MBEW, MARC, MARD, and MVKE.

Notes
Before the data can be read successfully, you need the authorization todisplay material master data.
Messages are returned in parameter RETURN.

Description
This structure is used to return the material data that is valid for theentire client to the calling program.
For information on the meaning of individual fields in the structure,see the data element documentation for the individual fields.

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

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

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

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

Description
This structure is used to return the production resources and tools datafor a material to the calling program.
For information on the meaning of individual fields in the structure,see the data element documentation on the individual fields.

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

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

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

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

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

Description
For information on the meaning of the company code, see the glossaryentry for company code.

Description
For information on the meaning of the distribution channel, see the dataelement documentation for distribution channel.

Description
For information on the meaning of the LIFO valuation level, see the dataelement documentation for LIFO valuation level.

Description
For information on the meaning of the material number, see the dataelement documentation for material number.

Description
Parameter for the long material number
This parameter can be used to transfer long material numbers that cancontain a maximum of 40 characters.
To use this parameter, you must activate the switch for the LAMA (longmaterial number) business function in the system.
The LAMA business function is available as part of the business functionset for DIMP.

Value range
None

Default
None

Description
For information on the meaning of the plant, see the glossary definitionfor plant.

Description
For information on the meaning of the sales organization, see the dataelement documentation on the sales organization.

Description
For information on the meaning of the storage location, see the dataelement documentation on the storage location.

Description
For information on the meaning of the storage type, see the data elementdocumentation on the storage type.

Description
For information on the meaning of the valuation area, see the dataelement documentation on the valuation area.

Description
For information on the meaning of the valuation type, see the dataelement documentation on the valuation type.

Description
For information on the meaning of the warehouse number, see the dataelement documentation on the warehouse number/warehousecomplex.

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 material descriptions to the callingprogram.

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

Description
This table is used to save the messages processed by the method.
Because large numbers of information and error messages may occur duringprocessing, the messages that are generated are stored in this table.

Description
This table is used to return the control data for the material to thecalling program.

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