All
I'm using Post Processing Framework (PPF) for Dispute Management to output email correspondence via Smartforms.
The main correspondence is attached as a PDF, but I would also like to attach other business documents to the email as attachments. These additional documents are all archived PDFs and I know how to fetch them etc.
My problem is how to attach the additional business documents to the correspondence so it all goes out in one single email. I know that there is BAdI method COMPLETE_PROC_PPF~complete_send, which I could use to add an attachment, but problem here is that this exit kicks in too early, as the user hasn't chosen the action (correspondence) yet. Each action triggers a different Smartform, which requires different attachments.
Other BAdIs such as EXEC_METHODCALL_PPF do not have the send request (parameter IO_SEND) in the signature, which I need to attach further documents via class interface CL_DOCUMENTS_BCS->add_attachment.
I've looked through the PPF Guidelines document and the 6.20/6.40 PPF Implementation guide and spotted a MERGE function for actions, but can't find more information on it. Has anyone used it successfully to merge actions? Would it be possible to declare my other business documents as further actions and then merge them into one correspondence message?
Last resort would obviously be to use the PERSONALIZE_DOCUMENT method of the PPF to do an old-fashioned call of FM SO_NEW_DOCUMENT_ATT_SEND_API1 and then prevent any further triggering by the PPF itself. I don't really like this solution, as it defeats the whole object of having a framework and am wondering if I'm overlooking something here.
Has anyone else had this problem of attaching additional business documents to PPF email correspondence? By the way, everything has to be sent in ONE email message. I don't want to send out separate emails for each attachment.
Kind regards,
Michael
Edited by: Michael Koch (UK) on Apr 21, 2011 6:00 PM
Edited by: Michael Koch (UK) on Apr 21, 2011 6:02 PM