03-27-2008 9:27 AM
Hi All,
I have a file that I want to attach to an email, but the contents of the file's lines are greater than 255 characters. The attachment table type only supports 255 characters, so some of the content is being truncated. I'm using methods (cl_document_bcs class) to attach the document. The table type is SOLI_TAB.
The data that i want to email is in an internal table in my program.
How can I email the complete data which is more than 255 characters as attachment in normal report?
Thanks in Advance.
Satish
03-27-2008 10:02 AM
03-27-2008 10:04 AM
03-27-2008 10:14 AM
Loop thru the internal table with data and populate it in a string variable.
loop at itab.
concatenate itab-f1 itab-f2.... itab-fn into str
separated by cl_abap_char_utilities=>horizontal tab.
concatentate str cl_abap_char_utilities=>cr_lf into str.
endloop.
now call the FM SCMS_STRING_TO_FTEXT passing the string and the internal the same structure as SOLI_TAB.
Inform the FM that you are passing the binary data.
Hope this helps.
Thanks,
Balaji