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

regarding mail

hi,

in his function module SO_NEW_DOCUMENT_ATT_SEND_API1 am passing 2 lines in packing_list-body_num to 2 lines,after sending mail to recipient, when he open that text file he is getting whole data in single line. Is there any changes we need to in coding to get 2 lines in the text file.

Please provide valuable suggestions/...............

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 09:39 AM

    it depands on how ur appending the data into objbin table.

    concatinate CL_ABAP_CHAR_UTILITIES=>CR_LF at end of each line.

    Edited by: S.r.v.r.Kumar on Jun 16, 2008 3:10 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 16, 2008 at 09:40 AM

    the text file for the messagebody is passed thourgh CONTENTS_TXT

    kind regards

    arthur

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 09:41 AM

    When u r filling the data in the object table fill it in two lines...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 09:48 AM

    open the files in BINARY MODE (and not text mode)

    This will take care of

    the NEW LINE Character

    which is present in text files (at the end of each line)

    Check this...

    /people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 10:02 AM
    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.