The issue is because we are sending zero tax, so no BSET internal table is filling and we are getting this standard error. Any idea on this.
Request clarification before answering.
Hello,
Thank you very much for your question and sorry for the late reply.
Can you please check whether the following information (GenAI was used to help generate this content) solves your issue?
When using the BAPI_ACC_DOCUMENT_POST and encountering the error ‘Tax item missing for tax code’, it is often due to the absence of tax data in the BSET internal table. This typically happens when zero tax is sent, leading to the error.
To resolve this issue, ensure that the tax code is correctly set and that the tax items are properly calculated and included in the BSET table. Here are some steps you can follow:
Check Tax Code Validity: Ensure that the tax code used is valid and falls within the correct validity period. If the tax code has various validity periods, Posting Journal Entries with Tax Using SOAP Posting APIs you may need to specify a tax determination date.
Include Tax Line Items: Even if the tax amount is zero, you should still include the tax line items in your payload. This involves setting the necessary fields such as Tax Code, Tax Classification, and Tax Base Amount.
Use Correct Tax Calculation Method: If your system requires tax calculation by line items, ensure that this is activated and that tax items are determined individually for each item.
Review Configuration: Check the configuration settings for your tax accounts and ensure that they are set to allow posting without tax if G/L account requires a valid tax code necessary.
By following these steps, you should be able to resolve the error and successfully post your document using BAPI_ACC_DOCUMENT_POST.
Kind regards,
Henrike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 14 | |
| 12 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.