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_MATERIAL_SAVEDATA - tax classification

Former Member
0 Likes
1,777

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

2 REPLIES 2
Read only

Former Member
0 Likes
735

Hello,

Check the Return Table. If the message is successful then use.

[code]

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'.

[code]

Thanks !!!

Read only

former_member206439
Contributor
0 Likes
735

Hi

no

only headdata is mandatory