Automatic attachment and mail to external system
Our requirement is based on a event the details are to added to a pdf and it should be automatically attached and send as a mail to external system. Sending a mail is working. But how to automatically generate the pdf and attach to the mail ?
By using these FM
SO_NEW_DOCUMENT_SEND_API1, SO_NEW_DOCUMENT_ATT_SEND_API1 . You can send attachment in the email.
Refer this [article|https://wiki.sdn.sap.com/wiki/x/AINMB ], which is sending email from ABAP Program convert it as a FM and attach it to you're BO method. And call it in the workflow via Task.