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: 

regarding mail

Former Member
0 Kudos

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/...............

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

former_member186143
Active Contributor
0 Kudos

the text file for the messagebody is passed thourgh CONTENTS_TXT

kind regards

arthur

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

And check this link...