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

2 lines gap between 2 strings while concatenate

Former Member
0 Likes
668

Hi,

How to get more than 1 line gap between two strings while concatenating two strings.

Regards,

Neerup

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
0 Likes
489

use this

concatenate A

CL_ABAP_CHAR_UTILITIES=>CR_LF

CL_ABAP_CHAR_UTILITIES=>CR_LF

CL_ABAP_CHAR_UTILITIES=>CR_LF

CL_ABAP_CHAR_UTILITIES=>CR_LF

etc.

B

into lv_string.

3 REPLIES 3
Read only

Sm1tje
Active Contributor
0 Likes
490

use this

concatenate A

CL_ABAP_CHAR_UTILITIES=>CR_LF

CL_ABAP_CHAR_UTILITIES=>CR_LF

CL_ABAP_CHAR_UTILITIES=>CR_LF

CL_ABAP_CHAR_UTILITIES=>CR_LF

etc.

B

into lv_string.

Read only

Former Member
0 Likes
489

Hi,

Thanks for the quick reply....

I am still getting spaces only.....i want 2 or more lines between those two strings.

like

A

B

C

regards,

neerup.

Read only

Former Member
0 Likes
489

Try with ' '

(space within Quotes)

Else

Do normal Concatenation with single space and then use SPLIT keywork (SPLIT wher the space is there) and the again Concatenate.

the flow is CONCATENATE (with single space)

then SPLIT (at space)

then CONCATENATE (with single space)