cancel
Showing results for 
Search instead for 
Did you mean: 

sending mail with attachment

Former Member
0 Kudos

Hi Folks,

I got one requirement.Send an email with excel file attachment.How can i approach for this.I found some documents regarding sending emails by using some function modules but i need send email with attachment.Pls help me

Edited by: ravidanda on May 19, 2011 7:56 AM

Edited by: ravidanda on May 19, 2011 7:57 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184578
Active Contributor
0 Kudos

Hi.,

Check this Wiki: [Sending Mail with Attachment.|http://wiki.sdn.sap.com/wiki/display/Snippets/Sendingmailwith+attachment]

also., [Send Mail with Excel Attachment|http://sap-wiki.blogspot.com/2011/02/abap-send-email-with-excel-attachment.html]

hope this helps u.,

Thanks & Regards

Kiran

Former Member
0 Kudos

Hi Ravi,

Check this wiki... email with attachments.

http://wiki.sdn.sap.com/wiki/display/WDABAP/WD4A-SendinganEmailalongwithPDFasanattachment

Cheers,

Kris.

Former Member
0 Kudos

Hi Kissnas,

I used same code that is available in that link.but iam not receiving mail.But iam getting the following warning.Pls help me

The exception CX_SEND_REQ_BCS is neither caught nor is it declared in the RAISING clause of ONACTIONSEND_MAIL.

The exception CX_ADDRESS_BCS is neither caught nor is it declared in the RAISING clause of ONACTIONSEND_MAIL.

The exception CX_DOCUMENT_BCS is neither caught nor is it declared in the RAISING clause of ONACTIONSEND_MAIL.

Former Member
0 Kudos

Address, Document & Send Request Exceptions..

Plz run BCS_TEST01 program, you might find what;s wrong in your system.

BCS_TEST0* programs too would help you.

Plz check if BCS/SMTP Service is active

if else, Use this below to get it done.

/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface

Former Member
0 Kudos

Hi Mallikarjun,

While running bcs_test01 programming it showing recepitant email as @sap.com.i have to change this id to my id?

Edited by: ravidanda on May 25, 2011 7:34 AM