‎2008 Aug 12 10:24 AM
Hi,
I am using BAPI_MATERIAL_SAVEDATA to create and change materials.
Are there any mandatory fields to be passed to the bapi for tax classification?
Currently I am passing
DEPCOUNTRY
TAX_TYPE_1
TAXCLASS_1
but tax classification is not updating.
Here is my code for loading the tax data ...
i_taxclass-depcountry = 'AE'.
i_taxclass-tax_type_1 = 'MWST'.
i_taxclass-taxclass_1 = '0'.
APPEND i_taxclass.
and the code calling bapi ...
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = w_headdata
IMPORTING
return = w_return
TABLES
unitsofmeasure = i_unitsofmeasure
unitsofmeasurex = i_unitsofmeasurex
taxclassifications = i_taxclass
returnmessages = i_returnmessages.
Thanks.
Edited by: Lindy Killops on Aug 12, 2008 11:27 AM
‎2008 Aug 12 10:31 AM
Hello,
Check the Return Table. If the message is successful then use.
[code]
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
[code]
Thanks !!!
‎2008 Aug 12 10:31 AM