The best way to send email in SAP is using CL_BCS but it’s a little cumbersome code and unless an attachment – any file or XL – is required, using a function module SO_NEW_DOCUMENT_SEND_API1 is a quick smart way to do it.
Create a work area of type SODOCCHGI1 and pass details like language and subject line. Then create an internal table of type SOLI with a header line. In this internal table pass the content of the email. Lastly, create an internal table of type SOMLREC90 with a header line and pass email ids in receiver fields.
Call the function module.
Few tcodes which might be helpful –
SOST – help checking if the email has been set
SCOT – for checking mail server and port configuration
~S
Recent Comments