cancel
Showing results for 
Search instead for 
Did you mean: 

Email Order attachment or document URL link

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

VishnAndr
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Thanks a lot Andrei, that was very useful.

Answers (0)