cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Tax item missing for tax code error from BAPI_ACC_DOCUMENT_POST.

12-03-2024 1:39 PM
25409680 Discoverer
2164 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

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.

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

HenrikeGroetecke
Product and Topic Expert
Product and Topic Expert
0 Likes

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.

Solution

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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