2010 Feb 03 5:47 AM
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
2010 Feb 03 6:02 AM
Hi,
Use the Function module SO_DOCUMENT_SEND_API1 after the displaying the data on the screen.
2010 Apr 22 4:54 AM
Please see this [link|http://wiki.sdn.sap.com/wiki/display/Snippets/MultipleAttachmentsExplanation]
Regards,
Sumit
2010 Apr 22 5:08 AM
2010 Apr 22 5:08 AM
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
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |