Withholding tax for debtors using BAPI_ACC_DOCUMENT_POST
I'm using BAPI_ACC_DOCUMENT_POST for generating debtors invoices, in which apply withholding tax. ACCOUNTWT has been informed and everything seems to be OK, but when I review the information updated into the different tables, I can see that BSEG-QBSHB is empty and BSEG-QSZNR has been filled.
When I generate a similar debtor invoice through standard transaction, BSEG-QBSHB is filled with the withholding tax amount, and BSEG-QSZNR is empty. With help from basis team, we can see that BSEG-QSZNR is informed by standard coding in BAPI, but not what's happening with BSEG-QBSHB. Do you know how can I populate BSEG-QBSHB using this bapi?
Any suggestion will be apreciated.
MAURIZIO BIANCOTTI replied
don't mind the BSEG table if You have the extended WT functionality. Please read the note number 363309 that does not refer to Your request but that can confirm You how the BSEG table has no relevance at all when You post an Invoice with Extended WT. The only field that usually is filled for technical reason is QSSKZ (XX). Therefore if the with_item table is correctly filled, You will not face any problem because the posting is correctly made.
Have a nice day.