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

Carriage return character?

Former Member
0 Likes
821

Hi Friends,

I am trying to send a mail using a standard Function Module. I should restrict the length of a line to say 200 characters. Once the 200 char limit is reached i got to get the next 200 chars on the next line. The message content is passed through an internal table. How to include a carriage return within the content?

Prompt replies would be rewarded.

Thanks in advance.

Tamilarasan.

Hi Friends,

I am trying to send a mail using a standard Function Module. I should restrict the length of a line to say 200 characters. Once the 200 char limit is reached i got to get the next 200 chars on the next line. The message content is passed through an internal table. How to include a carriage return within the content?

Prompt replies would be rewarded.

Thanks in advance.

Tamilarasan.

4 REPLIES 4
Read only

Former Member
0 Likes
735

Hi,

See this thread:

Svetlin

Read only

former_member182371
Active Contributor
0 Likes
735

Hi,

search for cr_lf in the forum. there you´ll find several examples.

Best regards.

Read only

andreas_mann3
Active Contributor
0 Likes
735

Hi ,

have a look to that link:

Andreas

Read only

Former Member
0 Likes
735

Hi, if you want to achieve it, don't fill the attach table using your internal table directly.

Concatenate all of the lines of internal table to be a long string, seperate with the cl_abap_char_utilities=>newline or '0D0A'.

Then split the long string into the attach table, fully fill every line of the attach table, except the last one.

E.G.

internal table (line length 7)

AAAAAAA

BBBBBBB

CCCCCCC

attach table (line length 10)

AAAAAAA(0D)(0A)B

BBBBBB(0D)(0A)CC

CCCCC

And don't forget the flag on TRANSF_BIN = 'X'.

Hope it will be helpful

thanks a lot