I am using the BAPI_ACC_DOCUMENT_POST to post the Accounting Document with Withholding Tax.
With holding tax amount is calculated correctly and it is displaying in FB03 through the implementation of BTE - RWBAPI01.
But the data in WITH_ITEM table has only data for fields - BUKRS, BELNR, GJAHR, BUZEI and WITHT.
We also need data to be updated for fields - WT_WITHCD, WT_QSSHH, WT_QSSHB, HKONT and some other required fields.
Note: Through T.code FB01, it is updating correctly.
Please guide me on the same.