BAPI_ACC_DOCUMENT_POST Parked document tax amount
I am using BAPI_ACC_DOCUMENT_POST to park the customer invoice document. The document is getting created successfully, but there is a different in credit amount, due to tax amount. I can successfully post the document using same BAPI, but while creating with document status '2'(Parked), value of credit amount has twice the tax value.
Customer Debit - 52.43
GL Credit - 49.00
Tax Credit- 3.43
But total credit is displaying as '55.86'. I have attached the screenshot for reference.
I am passing the BAPI parameters as specified in SAP note 2229113.
Kindly help to resolve the issue.
Thanks in Advance,