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

Incorrect text format from Function module SO_DOCUMENT_SEND_API1

Former Member
0 Likes
617

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.

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
0 Likes
555

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

Read only

0 Likes
555

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

Read only

0 Likes
555

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