Skip to Content
author's profile photo Former Member
Former Member

Email Order attachment or document URL link

Hello,

I have a requirement to fetch order attachment and email it on save event. Also if possible a URL to an attachment in the same email. I am trying to use CL_CRM_DOCUMENTS class & method SEND_DOCUMENTS but it is popping the standard send email screen and then we need to click on send button to process it. As my code needs to be run in the background how to handle this situation.

Or is there any other way to send existing attachment as email.

Rgds,

Shobhit

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Nov 23, 2011 at 09:47 PM

    Hello, Shobhit.

    Try to use a class CL_DOCUMENT_BCS.

    Check [this wiki|http://wiki.sdn.sap.com/wiki/display/Snippets/Sending+attachmentusingcl_bcsclasses] and [this blog|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1135] [original link is broken] [original link is broken]; for details.

    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.