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

Concatenate

Former Member
0 Likes
354

Hi,

REPORT zprograma.

data :s1(18) type c,

s2(10) type c,

s3 type string.

s1 = 'abap'.

s2 = 'objects'.

concatenate s1 s2 into s3 separated by space.

write s3.

Output: abap objects

My requirement is to get Output as:

"abap objects"

The second string should start at 19th position rather than start as 6th position.

Could u pls help me to clear on this.

Thanks

Bala Raja

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
336

Hi ,

Please use shift for s1 and s2 so that your position is altered as required and then pass them to the third string .

Thanks .

Hi ,

Please use shift for s1 and s2 so that your position is altered as required and then pass them to the third string .

Thanks .

1 REPLY 1
Read only

Former Member
0 Likes
337

Hi ,

Please use shift for s1 and s2 so that your position is altered as required and then pass them to the third string .

Thanks .