Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ACC_DOCUMENT_POST BSET

NunoSilva
Explorer
0 Likes
1,074

Hello,

I am posting a document using the BAPI BAPI_ACC_DOCUMENT_POST.

When posting that document I am adding tax items.

The items generated on the document are correct. Here are the specific items I am talking about (not all document items):

Item     Posting Key     Tax Code     Value

1          50                    NA               -299,60

2          50                    NA               -17.98

3          40                    NA               17-98

4          40                    NA               3780

5          40                    NA               226,80

6          50                    NA               -226,80

When I look into the tax data of the document (table BSET) I can only find the values from items 2 and 3. The is no data from items 5 and 6.

Seems like it is not taking into consideration the positive values posted.

Can anyone help me understand why this is happening.

Thank you in advance.

Nuno Silva

2 REPLIES 2
Read only

Former Member
0 Likes
762

Hi, the table BSET stores the accounting line items for which tax code is entered.

In your case, though the tax code is not being passed directly to the BAPI, I feel that the tax codes are being identified based on configurations done for the G/L Account.

Hope this helps.

Read only

0 Likes
762

Hello,

Actually I am sending the correct tax codes to the BAPI and it is in fact generating the document items correctly. The only thing wrong in the document are the bset items.

Any ideas?

Thank you.