I am trying to use BAPI BAPI_ACC_DOCUMENT_POST to post a FI-AP invoice using Tax Jurisdiction Code for Canada. I am populating the Tax Jurisdiction Code and the Tax code at the ACCOUNTGL table because I need to have the tax codes on the Expense line in the invoice. When I execute the BAPI I am getting the following error on the RETURN table: "Tax code I4 does not exist for jurisdiction code CABC"
The Tax Code is valid for the Tax Jurisdiction Code used, if I clear the content of the field TAX_CODE on ACCOUNTGL table then I am able to post the invoice with the 2 tax lines (please see below) but no Tax Code and no Tax Jurisdiction Code is passed to the Expense line in the invoice. Can someone help me to understand the use of the Tax Jurisdiction Code for Canada on this BAPI?
Populated ACCOUNTGL table as follows:
ITEMNO_ACC = 0000000001
GL_ACCOUNT = 3415999999
TAX_CODE = I4
TAXJURCODE = CABC
COSTCENTER = XXX01C1111
Populated ACCOUNTPAYABLE table as follows:
ITEMNO_ACC = 0000000002
VENDOR_NO = 1111111199
BLINE_DATE = 19.06.2013
Populated ACCOUNTTAX table as follows:
ITEMNO_ACC = 0000000003
ACCT_KEY = ZV2
TAX_CODE = I4
TAX_RATE = 5
TAXJURCODE = CABC
ITEMNO_ACC = 0000000004
ACCT_KEY = ZV3
TAX_CODE = I4
TAX_RATE = 9
TAXJURCODE = CABC
Populated CURRENCYAMOUNT table as follows:
ITEMNO_ACC = 0000000001
CURRENCY = EUR
AMT_DOCCUR = 100
TAX_AMT = 14
ITEMNO_ACC = 0000000002
CURRENCY = EUR
AMT_DOCCUR = 114-
ITEMNO_ACC = 0000000003
CURRENCY = EUR
AMT_DOCCUR = 5
AMT_BASE = 100
ITEMNO_ACC = 0000000004
CURRENCY = EUR
AMT_DOCCUR = 9
AMT_BASE = 100