From SAP Netweaver 7.0 & above (Include S/4 HANA)
-
Main method: send_mail .
-
Body can format in text/plain or HTML .
-
Can define specific email or distrubation email also possible control the sender by SAP user name or any fictive email.
-
Can also send the email in future date.
-
Can attach multiples files that can be:
A) binary files converted from spools.
B) AnyForms sapscript/smartforms/adobe converted to binary files.
C) Any files.
Instruction to implement code:
- file Methods_Desc+Table_Types+Structure_Types.xlsx -> check sheets in file to implement structures & Table types.
- file y_send_mail.txt -> implement the class .
- files Interface YIF_PREPARE_MAIL.txt & Example local class send maill attach internal table as excel using interface yif_prepare_mail.txt -> optional example to prepare details for mail interface.
- all others files example codes to send attach files .
Enjoy :)