I haven't updated my blog for a long time. There is no reason. Start from today. Today, I mainly want to write about how to send emails in ECC 6.0.
The SAP system has actually integrated a mail system, which can be viewed using tcode: sbwp. This email system can be used to send external or internal emails. In addition, this email system is often used in workflow.
There is nothing to talk about. paste the Code directly. If you are interested, you can study the code slowly. (Declaration: This code is not my original one. It was obtained from the Internet for repair, modification, and so on ).
The main function module is:
So_new_document_att_send_api1,
So_new_document_att_send_api1 and class:
Cl_document_bcs,
Cl_bcs,
Cl_cam_address_bcs
There are three email sending instances nearby. zsendemail can send attachments with standard row and column formats, and zsendemail_v2 and zsendemail_v3 can send attachments in any format.
/Files/flysky927/zsendemail.txt
/Files/flysky927/zsendemail_v2.txt
/Files/flysky927/zsendemail_v3.txt