Hi,
I'm using BAPI_ACC_DOCUMENT_POST to post Vendor Accounting document .
In FB01 if we put Discount base, the discount is automatically calculated from payment term and a new GL line is created with the discount amount and the original GL line value is adjusted automatically whilie saving.
But this is not happening when I create AP document using the BAPI, the discount is not calculated.
Please let me know if you have any idea how to do it.
Thanks,
Surendra Maggi.