We have the following scenario in place for our client
1. Creation of a Sales order triggers the creation of a Purchase Order automatically through IDOCs.
2. Also the creation of Sales Invoice would generates a Purchase Invoice automatically through IDOCs (INVOIC01).
3. We have a output type defined for the Sales Invoice. It's a PDF document and is stored in external archiving system (3rd party).
4. The archival link is updated in the Sales Invoice Document and the PDF output can be viewed by clicking on the attachments in VF03.
The requirement is to link the same PDF document to the corresponding Purchase Invoice (which is created from the Sales Invoice as described in step 2).
I have gone through the SDN posts already but was not able to find an answer which would solve this.
Any pointers for this would be greatly appreciated.
Thanks & Regards