How to autotrigger of downpayment request from purchase order.
I have a vendor which is created centrally and the payment term attached to the vendor is 50% advance and 50% 30 days from the date of invoice.
What basically my client wants is that the moment we raise a po on this vendor - it should trigger a down payment request with 50%(Down payment request and down payment is properly configured in FI) Eg. If PO value is 1000 it should trigger a down payment request for 500.
For triggering payment request from PO am using BAPI_PAYMENTREQUEST_CREATE.
Can any one tell me how can I can do that through ABAP