07-10-2020 9:16 AM
Hi All,
i m getting this error when i m trying to post a credit memo from bapi_acc_document_post .
i have successfully posted the document without taxes but with taxes i m getting this error.No tax rate defined for company code 1000 transaction FTXP Z1.
I have created 3 entries in GL_ACCOUNT TABLE : 1 for debtor, 2 for tax ( cgst and sgst separately).
in currency table i m making 4 entries : 1 for gl , 2 for tax entry and 1 for customer.
in Account tax : i m making 2 entries for taxes .
the same doc is working fine with fb75 transaction.
I am attaching debug values in word doc..and thanks in advance any suggestions would be valuable.
07-10-2020 12:50 PM
The error is not withing BAPI call but in FTXP customizing. In your tax code 'Z1' you must maintain the percentage 2,5 for lines with account key 'JOC' and 'JOS'. Atherwards this error will be gone.
Moreover - you do not need to pass the percentage / GL account in the Tax Segment. Tax code and account key are enough.
The tax lines (3 and 4 according to your BAPI Currency values) should not be delivered in 'ACCOUNTGL' segment. It is enough to pass them in 'ACCOUNTTAX' and their values in 'CURRENCYAMOUNT'.
Regards,
Marek Turczyński
07-10-2020 12:26 PM
07-10-2020 12:36 PM
Sorry ,
The attachment failed that time so i am adding it for your reference..
07-10-2020 12:50 PM
The error is not withing BAPI call but in FTXP customizing. In your tax code 'Z1' you must maintain the percentage 2,5 for lines with account key 'JOC' and 'JOS'. Atherwards this error will be gone.
Moreover - you do not need to pass the percentage / GL account in the Tax Segment. Tax code and account key are enough.
The tax lines (3 and 4 according to your BAPI Currency values) should not be delivered in 'ACCOUNTGL' segment. It is enough to pass them in 'ACCOUNTTAX' and their values in 'CURRENCYAMOUNT'.
Regards,
Marek Turczyński
07-10-2020 1:12 PM
OK , i will just look into it..but i have question everything is working fine when i m trying to post via fb75.
Thank your very much for your response Marek Turczyński.