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: 

Send TXT file by fm : SO_NEW_DOCUMENT_ATT_SEND_API1

0 Kudos

I want to sent TXT file as a mail attachement, I am using

SO_NEW_DOCUMENT_ATT_SEND_API1

where I am passing my internal table (to be send in mail attachmnet )

Tables

contents_bin = dwn

dwn is of type : dwn LIKE solisti1

Suppose dwn contains

1 ABC Hello

2 XYZ World

currently MY o/p in mail comes

1 ABC hello 2 XYZ World

But I want in same format as as seen in table dwn

1 ABC Hello

2 XYZ World

2 REPLIES 2

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

Add a line break to each line, e.g. via

line && |\n|. 

?

pokrakam
Active Contributor
0 Kudos

Or use the slightly more modern CL_BCS* classes.