Triggering of idoc in FB60
I am using transaction FB60 to park the FI vendor invoice. Now my requirement is when user park the document it should trigger the custom outbound function module which will generate the idoc of type FIDCCP02.
so my task is to create the function module in which i will populate the fields of idoc FIDCCP02 and generate Idoc to send out of SAP system.
So which is the way to trigger this function module. How should I approach to this requiremet.
Thanks in advance,