Skip to Content

Read email attachment from SOST and send same file to different mail IDs

Hi,

Is it possible to read an attachment from SOST to my custom program and send same attachment to a different mail ID ? I

Thanks,

Devesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 23, 2020 at 07:33 PM

    Attachment or email? I guess you mean "read an attachment of an existing email, and send a new email with this attachment".

    Read the email with CL_DOCUMENT_BCS=>GETU_INSTANCE_BY_KEY, read the attachment with methods IF_DOCUMENT_BCS~GET_BODY_PART_*.

    Then create a new email as usual.

    Eventually you may copy the email instance to a new instance with the method IF_COPY_BCS~COPY, change its recipient and send it as usual.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 24, 2020 at 05:02 AM
    -1

    Any sample code will be helpful to me ..

    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.