Email using CL_BCS with multiple attachment in any format
Introduction:
The requirement is to send the email from SAP with multiple attachments; the attachment can be in any
format like PDF, DOC, DOCX, XLS, XLSX etc. also user can write some text line which should come in the
email body.
Selection screen. :
Email in Inbox :
we can see the 4 attachments in email.
For the source code refer the attachment
*Note: I have use separate forms for each attachment that can be done with single form also with ‘DO’ or
‘loop’ logic.
Thanks so far. As you are sending HTML Emails, do you know how to send this as a multipart message containing both the HTML part and a corresponding text part?
HI,
Till now I have use only one format HTML or TXT, I have not try multipart, If I found any think related to this I will update.
Regards,
Zafar
Hello Zafar,
Next time please consider posting the "code snippet" content as a WiKi and not as a blog.
BR,
Suhas
Hi, where is the attachment?
Thanks!
Hello Zafar,
Where is code attachment?
Can you please post the code?
Thanks.
Hello Zafar,
Where is code attachment?
Hi,
I thing attachment got removed.
Find the code below:.