Application Development and Automation 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: 
Read only

Send e-mail with a file as attachment - Break line problems

Former Member
0 Likes
643

Hi

I use the function SO_NEW_DOCUMENT_ATT_SEND_API1 to send an e-mail from ABAP program.

With SAP4.5B, all work good, but since we have 4.6C, the attached file is malformatted.

An automatic CRLF break line is generated all 1022 char!

The eattachment is create from content of internal table with a line of 255 char.

How can I avoid the automatic CRLF char or how can I to send a good file ?

Thank

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
474

Hi

I use the function SO_NEW_DOCUMENT_ATT_SEND_API1 to send an e-mail from ABAP program.

With SAP4.5B, all work good, but since we have 4.6C, the attached file is malformatted.

An automatic CRLF break line is generated all 1022 char!

The eattachment is create from content of internal table with a line of 255 char.

How can I avoid the automatic CRLF char or how can I to send a good file ?

Thank

3 REPLIES 3
Read only

andreas_mann3
Active Contributor
0 Likes
474

Hi,

look here:

Andreas

Read only

Former Member
0 Likes
475
Read only

Former Member
0 Likes
474

Thanks you for your help.

However, it was not a programmation problem but a bad entry in SOPR standard table. Field SYUSROUT must be set to D (instead 1) to avoid the using of KPro conversion which cause this problem.