2013 Apr 15 6:05 PM
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.
2013 Apr 16 6:59 AM
Hi Surendra,
Is the Payment Term assigned to the AP document? Or is there a link between the two? Have you checked that? From the above post, it seems like the discount is not getting calculated from the payment term for the AP document. Or maybe you can ask your abaper (if you are functional) to debug this bapi for AP documents and check what exactly is happening.
2013 Apr 25 8:26 PM
Hi A N,
Payment term assigned to the AP document, but the BAPI is not posting the discount line item.
I am a ABAPER and looking for feasibility of BAPI usage for adding discount line item in the accounting document.
2013 Apr 26 4:53 AM
Hi Surendra
If you are an ABAPER, its best to discuss this with your functional consultant about the requirement and the functionality.
2013 Apr 26 7:12 AM
Hello Surendra,
There are different BAPI's available for vendor account posting. Each one will have its own functionality. Check with functional and analysis or study about the BAPI and understand if it will suit your
requirement. These links might be helpful. Have a look at it.
http://scn.sap.com/thread/1451467
http://scn.sap.com/docs/DOC-25959 (Indirectly might help you - More information on cash discount)
Thanks.
2013 Apr 29 1:15 PM
Hi,
I have tried this long back. I think this should work for the BAPI BAPI_ACC_DOCUMENT_POST aswell.
I think prerequisite is Vendor must be subjected to withholding tax.
If the error exists, post the logic in your next message.