‎2011 Aug 03 3:53 PM
Hi All,
When I tired to use the function module SO_DOCUMENT_SEND_API1 to send Internal table data into email with text file. In debugging it showing file format correctly with multiple lines. After receiving mail the format is changed (two rows of internal table is coming in the single line like that) I also used the word wrap in the text file but no changes in the format.
Can any one suggest the best way of resolving this Issue.
Thanks in Advance for your help.
‎2011 Aug 03 4:54 PM
Hi Antony,
Please don't use this function module, people ask questions about it because of a "strange behavior". It has been superseded by CL_BCS class since release 6.10. With this class, you have say 50% less "chance" to get errors. There are examples in SDN and in each SAP system (BCS_EXAMPLE_* programs).
BR
Sandra
‎2011 Aug 04 7:26 PM
Thanks for your reply.
Even though If I use the class specified by you there is a problem with spaces as mentioned above there is no difference in the mail attachments.
Is there any other way to do that ..?
Thanks
‎2011 Aug 04 7:31 PM
Hi Antony,
It sounds like you just need to concatenate a character for cl_abap_char_utilities=>cr_lf at the end of each line to separate the rows in the internal table.
Regards,
Ryan Crosby