Skip to Content

Sending mail with attachment from Disk

Hello Community,

i need to write the report where the user is given the opportunity to send an attachment that he chooses from disk.

For mail sending I'd like to use cl_bcs_document and to get the right file I thought of using cl_gui_frontend_services=>file_open_dialog.


Now I'm not quite sure how to bring it together and create the mail.


Thank you in advance,


Philipp

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2016 at 01:09 PM

    Have a look at class CL_BCS_MESSAGE and method ADD_ATTACHMENT. This methods accepts a file as BLOB.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.