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

Withholding tax code XX - BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
3,008

Hello ppl,

I am trying to post a document using Bapi, BAPI_ACC_DOCUMENT_POST. The document is posted successfully but the Withholding tax code is updated as XX.

I am using ECC6 environment. The data is passed in the following way.

I have filled the parameters documentheader, accountgl, accountpayable, currencyamount, accountwt.

The with holding tax code is passed in the parameter accountpayable-w_tax_code. Also, in the parameter accountwt-wt_code the with holding tax code is passed. In the parameter accountwt-bas_amt_tc i have passed the withholdingtaxbase amount. In the parameter accountwt-itemno_acc I have passed the corresponding line item number (In my case Vendor Line item number i.e., Account Payable)

When these values are passed and BAPI is executed the document is posted but the taxcode is updated as XX instead of the value that is passed. (In my case 07)

In debug mode it is observed that when data is passed in parameter accountwt, internally there is some counter whose value becomes 1. If the counter value is >0 then the tax code value is changed to XX.

Please let me know why I get this problem. Is it problem with Standard SAP?

3 REPLIES 3
Read only

mrio_espinheira
Participant
0 Likes
1,012

Hello,

I've never got the table parameter ACCOUNTWT working and posting the correct Withholding Tax information. You have other alternatives to post withholding tax, via BADI (BADI_ACC_DOCUMENT) or BTE ([BAPI_ACC_DOCUMENT_POST Withholding Tax |]) for example.

Best regards.

Read only

Former Member
0 Likes
1,012

Hi Praveen,

you have solved this issue? Please, help me.
Regards.

Read only

Former Member
0 Likes
1,012

Hi Praveen,

you have solved this issue? Please, help me.

Regards.