05-15-2009 10:07 AM
Hi All
Can anybody suggest me some BAPI names which have flexibility to save only certain required fields of a material into mara, marc , makt and mvke.
In my program i am using some interanl tables for the above mentioned table fields and i want to save them.
Please suggest me.
05-15-2009 10:11 AM
05-15-2009 10:12 AM
05-15-2009 10:15 AM
HI,
Please check the BAPI below.
BAPI_MATERIAL_SAVEDATA
Edited by: Dande on May 15, 2009 11:18 AM
05-15-2009 11:31 AM
Actuallay this bapi is already used there..
now the requiremnet is I want to change only certain fields.. and update only that fields. if i use this al the fields will be updated again.
an u help as per this?
05-15-2009 11:47 AM
Hi ,
You have to user
BAPI_MATERIAL_SAVEDATA
but with different combinations .
Like if you want update Plant data which resides in MARC table then you have to use
import parameters
PLANTDATA and PLANTDATAX with your required fields which you want to update , suppose if you want
update/modify storage location data which resides in MARD table you have use STORAGELOCATIONDATA
and STORAGELOCATIONDATAX with your required fields which you want to modify .
Like in this way you can use only the required parameter and its flag structure which ends with 'X'.
Regards,
Raghavendra
05-19-2009 10:42 AM
Hi Raghavendra,
Thanks for youe information.
But see I want to update only these fields. These are not specific to one structure/table.
Description
UPC Code
MPG
SPPG Price
FS01 Plant Code
Weight and Measures
Suppose for updating upc code if i use clientdata and clientdatax then all the other values in clientdata are also intialized na?
Please suugetme or correct me if am wrong? I need all the other data corresponding to that materil shoild be as it is.
05-19-2009 10:48 AM
Hi,
If you are updating upc code in the structure clientdata and clientdatax, then only UPC code will get updated. The rest of the data will remain as it is. The only data for which u pass as 'X' in the structurex in this case upc code in clientdatax, will be updated.
Regards,
Nikhil
05-19-2009 12:29 PM
05-15-2009 12:05 PM
Using BAPI_MATERIAL_SAVEDATA
Import structures:
Parameter id Reference type Data type Description
HEADDATA LIKE BAPIMATHEAD Header segment with control information
CLIENTDATA LIKE BAPI_MARA Client-specific material data
CLIENTDATAX LIKE BAPI_MARAX Information on update for CLIENTDATA
PLANTDATA LIKE BAPI_MARC Plant-specific material data
PLANTDATAX LIKE BAPI_MARCX Information on update for PLANTDATA
PLANNINGDATA LIKE BAPI_MPGD Planning data
PLANNINGDATAX LIKE BAPI_MPGDX Information on update for PLANNINGDATA
STORAGELOCATIONDATA LIKE BAPI_MARD Storage-location-specific material data
STORAGELOCATIONDATAX LIKE BAPI_MARDX Information on update for STORAGELOCATIONDATA
VALUATIONDATA LIKE BAPI_MBEW Valuation data
VALUATIONDATAX LIKE BAPI_MBEWX Information on update for VALUATIONDATA
SALESDATA LIKE BAPI_MVKE Sales data
SALESDATAX LIKE BAPI_MVKEX Information on update for SALESDATA
STORAGETYPEDATA LIKE BAPI_MLGT Storage-type-specific material data
STORAGETYPEDATAX LIKE BAPI_MLGTX Information on update for STORAGETYPEDATA
Import/export tables:
Parameter id Reference type Data type Description
MATERIALDESCRIPTION LIKE BAPI_MAKT Use for more than one material description translation.
TAXCLASSIFICATIONS LIKE BAPI_MLAN Table for tax classification
RETURNMESSAGES LIKE BAPI_MATRETURN2 Result of calling a function
05-05-2011 11:58 AM