Skip to Content
author's profile photo Former Member
Former Member

Send TXT file by fm : SO_NEW_DOCUMENT_ATT_SEND_API1

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Aug 23, 2017 at 01:24 PM

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

    line && |\n|. 

    ?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 23, 2017 at 02:09 PM

    Or use the slightly more modern CL_BCS* classes.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.