×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

E-mail file unformatted

E-mail file unformatted

E-mail file unformatted

(OP)
We use SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail within SAP, but are having a lot of difficult because the data comes out unformatted.  The problem is that the data comes out without any carriage returns so what starts as a table with characters lined up, ends up as one LONG line of text with no hard breaks.  The breaks end up in the middle of lines, while data from multiple lines will be merged together.

There must be a simple solution that we are overlooking, but can anybody point it out?  I can't believe this is a problem for most people...

Thanks for your help.

RE: E-mail file unformatted

Hy tjgraf,

today I was facing the same problem.
I found out that you need to insert special constants before every coloumn. And there is also a special constant you have to insert before every field.

CONSTANTS: con_cret TYPE x VALUE '0D',  "OK for non Unicode
           con_tab TYPE x VALUE '09'.   "OK for non Unicode

With this constants I fill my content table like this:

CONCATENATE s_tab-username s_tab-udate+6(2) s_tab-udate+4(2)
s_tab-udate(4) s_tab-matnr s_tab-objectid
s_tab-maktxd s_tab-maktxe s_tab-tabname s_tab-tabkey
s_tab-fname s_tab-value_old s_tab-value_new s_tab-chngind
s_tab-changenr INTO s_inhalt-line separated by con_tab .

CONCATENATE con_cret s_inhalt-line INTO s_inhalt-line. "Zeilenumbruch

APPEND s_inhalt TO t_inhalt.

Ok, I hope that you have already found the solution, but I also write this down for everybody who will have the same problem later!
Good luck and God bless you all!
Manuel

RE: E-mail file unformatted

Oh,
I forgot to write that this was the solution for my Excel attachment! So, I didnĀ“t proof this with the normal text in the mails!
But maybe this can give you an idea of where to look for other  solutions!

Jesus loves you!
Manuel

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close