Ansicht
Dokumentation

/DSCSAG/MAT_SAVEDATA - Create and Change Material Master Data

/DSCSAG/MAT_SAVEDATA - Create and Change Material Master Data

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You use this method to create new material master data or to change existing material master data. The data on a material can be transferred for each call.

When creating material master data, you must transfer the material number, the material type, and the industry sector to the method. You must also enter a material description and its language.

When changing material master data, you need enter only the material number.

In the header data, you must select at least one view for which data is to be created. Depending on the view selected, you must maintain other required parameters. If you do not enter values for all of the required parameters, the method is ended with an error message.

The corresponding fields in the tables (such as CLIENTDATA) must first be supplied with data by the calling program. An indicator must also be set for each of these fields so that the data is written to the database by the method. This requires the calling program to supply the corresponding field with the indicator in a checkbox table (for example, CLIENTDATAX). Checkbox tables exist for tables that do not contain any language-dependent texts (MAKT, MLTX), International Article Numbers (MEAN), or tax classifications (MLAN). Several data records for a material can be created in these tables.

If you want to maintain long texts (basic data texts, internal comments, purchase order texts, material memos, or sales texts) or customer-defined fields for a material, some special conditions have to be observed. They are described in the documentation for parameters MATERIALLONGTEXT and EXTENSIONIN.





Parameters

ALLOCVALUESCHARNEW
ALLOCVALUESCURRNEW
ALLOCVALUESNUMNEW
CLASSNUM
CLASSTYPE
CLIENTDATA
CLIENTDATAX
COMMIT
COMMIT_AND_WAIT
ET_RETURN
EV_MATERIAL
EXTENSIONIN
EXTENSIONINX
FLAG_CAD_CALL
FLAG_ONLINE
FORECASTPARAMETERS
FORECASTPARAMETERSX
HEADDATA
INIT_CVAPI
INTERNATIONALARTNOS
IT_CLASS_ALLOC
IT_CLASS_VALUES
IT_LINK_DOCUMENTS
IT_MATDATA
IV_CHANGENUMBER
IV_CHECK_GENERIC
IV_CHECK_SEP
IV_CLIENT_VERSION
IV_CL_CHANGENUMBER
IV_CL_KEYDATE
IV_FORCED_UPDATE
IV_HANDLE_PSTAT
IV_INIT_CLS_BUFFER
MATERIALDESCRIPTION
MATERIALLONGTEXT
NO_DEQUEUE
PLANNINGDATA
PLANNINGDATAX
PLANTDATA
PLANTDATAX
PRTDATA
PRTDATAX
RETURN
RETURNMESSAGES
RUNTIME
SALESDATA
SALESDATAX
STORAGELOCATIONDATA
STORAGELOCATIONDATAX
STORAGETYPEDATA
STORAGETYPEDATAX
TAXCLASSIFICATIONS
UNITSOFMEASURE
UNITSOFMEASUREX
VALUATIONDATA
VALUATIONDATAX
VERSION_ID
WAREHOUSENUMBERDATA
WAREHOUSENUMBERDATAX

Exceptions

Function Group

SAG/SAPLMATERIAL

BAL_S_LOG - Application Log: Log header data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 5807 Date: 20240426 Time: 193555     sap01-206 ( 82 ms )