cancel
Showing results for 
Search instead for 
Did you mean: 

Set body text and subject of the email

hickey
Explorer
0 Kudos

Hi all.

My client wants to send Certificate of analysis (COA), which is output from VL02N, attached to an email. I know I must set up the media of output type to send mail.

In that situation, is there any way to write some text in the body and subject of the email?

Is there any Exit or BADI to solve this request?

Thank you for your advice.

FredericGirod
Active Contributor
0 Kudos

You have to create a Smartforms corresponding to the email body.

Generate the mail based on this smartforms, and call in the print program the COA in PDF form and attach it in the email

Accepted Solutions (0)

Answers (1)

Answers (1)

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

teruhiko.hikita

Yes, there is a way to write some text in the body and subject of the email when sending the Certificate of Analysis (COA) output from VL02N. You can utilize the standard SAP function module called 'SO_DOCUMENT_SEND_API1' to accomplish this. This function module can be used to send different types of documents as attachments via email using the SAPconnect functionality. You can also specify the email subject, body and the email address of the recipient.
Additionally, you can also use BADIs or exits to further customize the email body and subject. For example, you can set up a custom BADI to include additional information in the email body and subject such as the customer name, order number, etc.

FredericGirod
Active Contributor
0 Kudos

You should not recommend the FM SO_DOCUMENT_SEND_API1, it is not recommended to use it. (better is to use class CL_BCS)