Ansicht
Dokumentation

/AFS/BAPI_MATERIAL_SAVEDATA - Create and Change Material Master Data

/AFS/BAPI_MATERIAL_SAVEDATA - Create and Change Material Master Data

Addresses (Business Address Services)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

With this method you can create new material master data or change existing data. With each call you can pass data for one material.

When creating new material master data, you must specify the material number, the material type and the industry. You also must enter a short text and the language of that text. When changing data, the material number suffices.

In addition, in the header data you must select at least one view for which the data is to be created. Depending on the selected view, you need to maintain further required parameters. If not all required parameters a filled, the method ends with an error message.

The call must pass data to the corresponding table fields (for example CLIENTDATA). You must also set an identifier for these fields, because only then the data will be written to the database. To do this, you must supply the corresponding field with the identifier in a selection table (for example CLIENTDATAX). Selection tables exist for tables that are not language-dependent (MAKT, MLTX) and that do not contain any International Article Numbers (MEAN) or any tax classifications (MLAN). In these tables you can create multiple data records for a material.

If you want to maintain material long texts (basic data texts, internal comments, purchase order texts, material memos, or sales texts) or your own user-defined fields, then you need to be aware of some special features. These are described in the documentation of the parameters MATERIALLONGTEXT and EXTENSIONIN.





Parameters

AFS_QUOTACATEGORIES
AFS_RETAIL_DATA
AFS_SEASONDATA
CLIENTDATA
CLIENTDATAX
EXTENSIONIN
EXTENSIONINX
FORECASTPARAMETERS
FORECASTPARAMETERSX
HEADDATA
INTERNATIONALARTNOS
MATERIALDESCRIPTION
MATERIALLONGTEXT
PLANNINGDATA
PLANNINGDATAX
PLANTDATA
PLANTDATAX
PRTDATA
PRTDATAX
RETURN
RETURNMESSAGES
SALESDATA
SALESDATAX
SKUUNITSOFMEASURE
SKU_CAPUSAGE_WM
SKU_COMM_CODES
SKU_PALLETIZATION_WM
SKU_PLANTDATA_MRP
SKU_PLANTDATA_VALUATION
SKU_SALESDATA
SKU_STORAGETYPEDATA
SKU_STRATEGIES_WM
STORAGELOCATIONDATA
STORAGELOCATIONDATAX
STORAGETYPEDATA
STORAGETYPEDATAX
TAXCLASSIFICATIONS
UNITSOFMEASURE
UNITSOFMEASUREX
VALUATIONDATA
VALUATIONDATAX
WAREHOUSENUMBERDATA
WAREHOUSENUMBERDATAX

Exceptions

Function Group

/SAPLMG_B1001006

Fill RESBD Structure from EBP Component Structure   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 6407 Date: 20240523 Time: 084117     sap01-206 ( 74 ms )