Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

bapi

Former Member
0 Likes
457

Hi

i need documentation of bapi material_save_data

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
440

Explore the function module BAPI_MATERIAL_SAVEDATA in T.code SE37. You can find the Documentation about this function module. The following is the documentation available.

BAPI_MATERIAL_SAVEDATA

____________________________________________________

Short Text

Create and Change Material Master Data

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 a structure contains fields for units of measurement (such as structure CLIENTDATA, field BASE_UOM), language indicators (such as structure MATERIALDESCRIPTION, field LANGU), or country indicators (such as structure TAXCLASSIFICATIONS, field DEPCOUNTRY), there is always a field of the same name with the ending _ISO. This makes it possible to transfer either the internally used SAP code or a standardized ISO code for the units of measurement, language indicators, or country indicators. ISO codes are converted to an SAP code internally for further processing. The ISO code is used only if the SAP code is not transferred. If you use ISO codes, there must be a unique assignment of the ISO code to the SAP code in the following activities in Customizing for Global Parameters:

Check Units of Measurement

Define Countries

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.

Reward points if uesful.

Read only

0 Likes
440

Hi,

can u explain what are structures we need to include such as bapimathead

plz dont send program as i already have them

Regards

Read only

0 Likes
440

U have to poplate the structures like

HEADDATA

CLIENTDATA

CLIENTDATAX

PLANTDATA

PLANTDATAX

SALESDATA

SALESDATAX

Documantataion

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 a structure contains fields for units of measurement (such as structure CLIENTDATA, field BASE_UOM), language indicators (such as structure MATERIALDESCRIPTION, field LANGU), or country indicators (such as structure TAXCLASSIFICATIONS, field DEPCOUNTRY), there is always a field of the same name with the ending _ISO. This makes it possible to transfer either the internally used SAP code or a standardized ISO code for the units of measurement, language indicators, or country indicators. ISO codes are converted to an SAP code internally for further processing. The ISO code is used only if the SAP code is not transferred. If you use ISO codes, there must be a unique assignment of the ISO code to the SAP code in the following activities in Customizing for Global Parameters:

Check Units of Measurement

Define Countries

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

HEADDATA

CLIENTDATA

CLIENTDATAX

PLANTDATA

PLANTDATAX

FORECASTPARAMETERS

FORECASTPARAMETERSX

PLANNINGDATA

PLANNINGDATAX

STORAGELOCATIONDATA

STORAGELOCATIONDATAX

VALUATIONDATA

VALUATIONDATAX

WAREHOUSENUMBERDATA

WAREHOUSENUMBERDATAX

SALESDATA

SALESDATAX

STORAGETYPEDATA

STORAGETYPEDATAX

FLAG_ONLINE

FLAG_CAD_CALL

NO_DEQUEUE

NO_ROLLBACK_WORK

RETURN

MATERIALDESCRIPTION

UNITSOFMEASURE

UNITSOFMEASUREX

INTERNATIONALARTNOS

MATERIALLONGTEXT

TAXCLASSIFICATIONS

RETURNMESSAGES

PRTDATA

PRTDATAX

EXTENSIONIN

EXTENSIONINX

Exceptions

Function Group

1001UEB