Application Development 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: 

Email attachment - line size bigger than 255

Former Member
0 Kudos

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

3 REPLIES 3

dhruv_shah3
Active Contributor
0 Kudos

Hi,

[SEE This|;

HTH

Regards,

Dhruv Shah

Former Member
0 Kudos

hi satish,

jst check the following link..

copy that code ..

i used it..

HOPE IT MAY USEFUL TO U..

REWARD POINTS IF USEFUL.....

Regards,

Bhumit Mehta

Former Member
0 Kudos

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