‎2010 Oct 01 8:24 AM
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?
‎2010 Oct 01 11:38 AM
‎2012 Nov 29 4:51 PM
Hi Praveen,
‎2012 Nov 29 4:52 PM
Hi Praveen,
Regards.