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?