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: 

How can I use CL_ABAP_CHAR_UTILITIES=>CR_LF

Former Member
0 Kudos

Hello!

How can I use CL_ABAP_CHAR_UTILITIES=>CR_LF for concatenate separated in lines in a variable?

thanks!

Edited by: Raphael Barbosa Silva on Mar 31, 2008 9:47 PM

Edited by: Raphael Barbosa Silva on Mar 31, 2008 9:48 PM

4 REPLIES 4

former_member194669
Active Contributor
0 Kudos

Try this way


v_nl(2) type c value cl_abap_char_utilities=>cr_lf.

concatenate v_variable1 v_nl v_variable2 into v_string.

Former Member
0 Kudos

concatenate v_msg 'text' cl_abap_char_utilities=>cr_lf into v_msg.

Kashi

Former Member
0 Kudos

I have a problem.

the message return text1text2##.

thanks!

Former Member
0 Kudos
concatenate 'first line'  'second line' into v_str SEPARATED BY cl_abap_char_utilities=>CR_LF.

You will see the output as

first line##second line

However when you download it into some file, output will be

first line

second line

G@urav.