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
490

hi i want to know y we r using this bapi " BAPI_MATERIAL_SAVEREPLICA "

and what r the uses of that Bapi pls reply sooooono.

2 REPLIES 2
Read only

Former Member
0 Likes
438

Hi

<b>FU BAPI_MATERIAL_SAVEREPLICA</b> BAPI for Mass Maintenance of Material Data

<b>Functionality</b>

Use this method to create new material master data or change existing material master data. Every time this method is called, data for one or more materials can be transferred.

When new material master data is created, the material number, the material type and the sector must be sent to the method. Furthermore, a short text and the language in which the short text has been created, have to be entered. When data is being changed, only the material number need be entered.

In the header data, at least one view has to be selected for which the data is to be created. Depending on the selected view, additional mandatory parameters that have been defined as such in Customizing have to be created. If not all mandatory fields are field with data, the method ends with an error message being displayed.

First, the appropriate fields in the tables (for example, CLIENTDATA) have to be filled with data by the user. These fields must also be flagged as the method data can only be written to the database if this is the case. The user must also provide data for the appropriate fields that have been selected in a checkbox table (for example, CLIENTDATAX). Checkbox tables exist for tables that do not contain language-dependent texts (MAKT, MLTX), European article numbers (MEAN) and tax classifications (MLAN). More than one data record can be created for a material in these tables (for all materials transferred to the method).

If a structure contains fields for a unit of measure (for example, structure CLIENTDATA, field BASE_UOM), language indicator (for example, structure MATERIALDESCRIPTION, field LANGU) or country identifier (for example, structure TAXCLASSIFICATIONS, field DEPCOUNTRY) then a similarly-named field ending with _ISO also exists. In doing so, the user has the option of using the internal SAP code or the ISO code for units of measure, language indicators or country identifiers. ISO codes are converted into an SAP code for further processing. The ISO code is only used if the SAP code is not displayed. In Customizing under "General Settings", a clear assignment has to be made between the ISO codes and the SAP codes for the following activities, if you want to use ISO codes:

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:

<b>Check Units of Measurement</b>

<u>Define Countries</u>

If long texts (for example, basic data texts, internal notes, purchasing info texts, material notes or sales and distribution texts) or customer-specific fields have to be created for a material, some specific characteristics have to be taken into consideration. These characteristics are detailed in the documentation for parameters MATERIALLONGTEXT and EXTENSIONIN.

<b>Parameters</b>

NOAPPLLOG

NOCHANGEDOC

TESTRUN

INPFLDCHECK

FLAG_CAD_CALL

FLAG_ONLINE

RETURN

HEADDATA

CLIENTDATA

CLIENTDATAX

PLANTDATA

PLANTDATAX

FORECASTPARAMETERS

FORECASTPARAMETERSX

PLANNINGDATA

PLANNINGDATAX

STORAGELOCATIONDATA

STORAGELOCATIONDATAX

VALUATIONDATA

VALUATIONDATAX

WAREHOUSENUMBERDATA

WAREHOUSENUMBERDATAX

SALESDATA

SALESDATAX

STORAGETYPEDATA

STORAGETYPEDATAX

MATERIALDESCRIPTION

UNITSOFMEASURE

UNITSOFMEASUREX

INTERNATIONALARTNOS

MATERIALLONGTEXT

TAXCLASSIFICATIONS

PRTDATA

PRTDATAX

EXTENSIONIN

EXTENSIONINX

FORECASTVALUES

UNPLNDCONSUMPTION

TOTALCONSUMPTION

RETURNMESSAGES

<b>Reward if usefull</b>

Read only

varma_narayana
Active Contributor
0 Likes
438

Hi...

SAP has introduced variuos BAPIs that allows the External Applications (Like a Web Application) to access the SAP data.

The Advantage of BAPIs over BDC in data migration is BAPIs will not process the Transaction Screens to update the Database, Rather they will directly update the Database . So they are faster.

<b>reward if Helpful.</b>