2010 Jul 18 10:09 AM
Dear All,
I have a requirement in which based on a path, i need to attach the word document,that should be sent to a specified mail recipient.
I tried bsc_example_5. But that attached only winword file..and that cant be opened through MS-Word.
Pl. suggest.
Regards,
Vidhya
Dear All,
I have a requirement in which based on a path, i need to attach the word document,that should be sent to a specified mail recipient.
I tried bsc_example_5. But that attached only winword file..and that cant be opened through MS-Word.
Pl. suggest.
Regards,
Vidhya
2010 Jul 19 4:13 AM
Hello,
Use the function module SO_DOCUMENT_SEND_API1
Don't forget to populate the 'packing_list' and 'contents_bin' tables.
Read the file in binary mode to populate contents_bin
2010 Jul 19 4:42 AM
Hi Vidhya,
You can use the cl_bcs class methods to send email with attachments. to send a .XLS or .DOC type files as attachment you need to have your data in BINARY format.
Refer to my article below which has the code snippet of the same -
http://www.divulgesap.com/blog.php?p=ODI=
Hope it helps.
Regards,
Ravikiran
2010 Jul 22 7:01 PM