SAP Function Modules

Share |

BAPI_MATERIAL_SAVEDATA SAP Function module - Create and Change Material Master Data

BAPI_MATERIAL_SAVEDATA is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below are the pattern details for this FM showing its interface including any import, export parameters etc and for your convenience any standard documentation available. All this information and more can be viewed if you enter the function module name BAPI_MATERIAL_SAVEDATA into the relevant SAP transaction such as SE37 or SE80.

Within the comments section below there is also an opportunity for you to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_MATERIAL_SAVEDATA or its description.

Pattern for FM BAPI_MATERIAL_SAVEDATA - BAPI MATERIAL SAVEDATA
Associated Function Group: 1001UEB
Released Date: 16.01.2006
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA' "Create and Change Material Master Data
  EXPORTING
    headdata =                  " bapimathead   Header segment with control information
*   clientdata =                " bapi_mara     Client-specific material data
*   clientdatax =               " bapi_marax    Information on update for CLIENTDATA
*   plantdata =                 " bapi_marc     Plant-specific material data
*   plantdatax =                " bapi_marcx    Information on update for PLANTDATA
*   forecastparameters =        " bapi_mpop     Forecast Parameters
*   forecastparametersx =       " bapi_mpopx    Information on update for FORECASTDATA
*   planningdata =              " bapi_mpgd     Planning data
*   planningdatax =             " bapi_mpgdx    Information on update for PLANNINGDATA
*   storagelocationdata =       " bapi_mard     Storage-location-specific material data
*   storagelocationdatax =      " bapi_mardx    Information on update for STORAGELOCATIONDATA
*   valuationdata =             " bapi_mbew     Valuation data
*   valuationdatax =            " bapi_mbewx    Information on update for VALUATIONDATA
*   warehousenumberdata =       " bapi_mlgn     Warehouse-number-specific material data
*   warehousenumberdatax =      " bapi_mlgnx    Information on update for WAREHOUSEDATA
*   salesdata =                 " bapi_mvke     Sales data
*   salesdatax =                " bapi_mvkex    Information on update for SALESDATA
*   storagetypedata =           " bapi_mlgt     Storage-type-specific material data
*   storagetypedatax =          " bapi_mlgtx    Information on update for STORAGETYPEDATA
*   flag_online = SPACE         " bapie1global_data-testrun  No ALE Field Selection
*   flag_cad_call = SPACE       " bapie1global_data-testrun  Call From CAD System
*   no_dequeue = SPACE          " bapie1global_data-testrun  Screens, display user entry
*   no_rollback_work = SPACE    " bapie1global_data-testrun  Override rollback if error occurs
  IMPORTING
    return =                    " bapiret2      Return parameters
* TABLES
*   materialdescription =       " bapi_makt     Material descriptions
*   unitsofmeasure =            " bapi_marm     Units of measure
*   unitsofmeasurex =           " bapi_marmx    Information on update for UNITSOFMEASURE
*   internationalartnos =       " bapi_mean     International Article Numbers (EANs)
*   materiallongtext =          " bapi_mltx     Long texts
*   taxclassifications =        " bapi_mlan     Tax classifications
*   returnmessages =            " bapi_matreturn2  All messages
*   prtdata =                   " bapi_mfhm     Production resource/tool (PRT) fields in the material master
*   prtdatax =                  " bapi_mfhmx    Information on update for PRTDATAX
*   extensionin =               " bapiparex     Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
*   extensioninx =              " bapiparexx    Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
    .  "  BAPI_MATERIAL_SAVEDATA

SAP Documentation for FM BAPI_MATERIAL_SAVEDATA


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.
INCLUDE ISO OBJECT DOKU ID TX
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.
Documentation extract taken from SAP system, Copyright (c) SAP AG






Terms of Service     Contact Us     Privacy Policy     Useful SAP related sites