Example of tax posting using a BAPI
If, during the posting, you use a tax code with two tax conditions (7% and 5%), you must fill the transfer parameters as follows:
ACCOUNTPAYABLE
ITEMNO_ACC = '0000000001'
VENDOR_NO = 'VEND01'
ACCOUNTGL
ITEMNO_ACC = '0000000002'
GL_ACCOUNT = '0000400000'
TAX_CODE = 'A1'
TAXJURCODE = 'PA0011000'
ITEMNO_TAX = '000001'
ACCOUNTTAX
ITEMNO_ACC = '0000000003'
GL_ACCOUNT = '0000012345'
COND_KEY = 'MWS1'
ACCT_KEY = 'XM1'
TAX_CODE = 'A1'
TAXJURCODE = 'PA0010000'
TAXJURCODE_DEEP = 'PA0011000'
TAXJURCODE_LEVEL = '1'
ITEMNO_TAX = '000001'
ITEMNO_ACC = '0000000004'
GL_ACCOUNT = '0000012345'
COND_KEY = 'MWS2'
ACCT_KEY = 'XM2'
TAX_CODE = 'A1'
TAXJURCODE = 'PA0011000'
TAXJURCODE_DEEP = 'PA0011000'
TAXJURCODE_LEVEL = '2'
ITEMNO_TAX = '000001'
CURRENCYAMOUNT
ITEMNO_ACC = '0000000001'
CURR_TYPE = '00'
CURRENCY = 'USD'
AMT_DOCCUR = '113-'
ITEMNO_ACC = '0000000002'
CURR_TYPE = '00'
CURRENCY = 'USD'
AMT_DOCCUR = '100'
ITEMNO_ACC = '0000000003'
CURR_TYPE = '00'
CURRENCY = 'USD'
AMT_DOCCUR = '7'
AMT_BASE = '100'
ITEMNO_ACC = '0000000004'
CURR_TYPE = '00'
CURRENCY = 'USD'
AMT_DOCCUR = '5'
AMT_BASE = '100'
The detailed tax information, which you must transfer to the structure ACCOUNTTAX, is contained in your tax calculation procedure in transaction FTXP.