Archiving after email is send from output type
I am using FM SO_DOCUMENT_SEND_AP1 function module to send email from output type after Invoice is saved. (Output type is script based). As this is custom functionality to send email, standard SAP does not archive the output. Is there any way to Archive this output?
Convert the OTF to PDF. Use FM ARCHIV_CREATE_OUTGOINGDOCUMENT and pass PDF data and archive parameters to this FM.