Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Excel attachment in a mail for background program

Former Member
0 Likes
837

Hi,

I have a program which is scheduled to execute in background every day.

Program output is printed to the screen. Simultaneously, I want to send an excel file as an attachment through email.

This excel file would be having the same data which is printed on the screen.

I have checked for other threads in SDN for sending excel file as attachment, but did not find anything relavant.

If anyone has any idea, please let me know....

Thanks in advance - S M

Hi,

I have a program which is scheduled to execute in background every day.

Program output is printed to the screen. Simultaneously, I want to send an excel file as an attachment through email.

This excel file would be having the same data which is printed on the screen.

I have checked for other threads in SDN for sending excel file as attachment, but did not find anything relavant.

If anyone has any idea, please let me know....

Thanks in advance - S M

4 REPLIES 4
Read only

nirajgadre
Active Contributor
0 Likes
723

Hi,

Use the Function module SO_DOCUMENT_SEND_API1 after the displaying the data on the screen.

Read only

Former Member
0 Likes
723

Please see this [link|http://wiki.sdn.sap.com/wiki/display/Snippets/MultipleAttachmentsExplanation]

Regards,

Sumit

Read only

Former Member
0 Likes
723

Hi ,

Use this FM SO_DOCUMENT_SEND_API1.

Regards,

GJ

Read only

Former Member
0 Likes
723

Hi,

You can use the cl_bcs class to send email with attachments.

Refer to the below article of mine which has the code snippet on how to send an excel file as an attachement.

http://divulgesap.com/blog.php?p=ODI=

Hope it helps.

Regards,

Ravikiran