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 does not work

former_member295881
Contributor
0 Likes
461

Hello Experts,

I'm trying to add space with other three variables into gv_lined. For reference following is my code.

DATA:  gv_lined(80) type c.

concatenate wa_inf0006S5-ORT01 ' ' wa_inf0006S5-STATE ' ' wa_inf0006S5-PSTLZ INTO gv_lined.

gv_lined should hold value like this (North Sydney 1120 NSW AU)

However, it ignore both spaces and store value as (North Sydney 1120NSWAU). Can anybody see what is the issue?

Many thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
436

Use separated by space.

concatenate wa_inf0006S5-ORT01  wa_inf0006S5-STATE wa_inf0006S5-PSTLZ INTO gv_lined separated by space.

Thanks,

VM.

Hello Experts,

I'm trying to add space with other three variables into gv_lined. For reference following is my code.

DATA:  gv_lined(80) type c.

concatenate wa_inf0006S5-ORT01 ' ' wa_inf0006S5-STATE ' ' wa_inf0006S5-PSTLZ INTO gv_lined.

gv_lined should hold value like this (North Sydney 1120 NSW AU)

However, it ignore both spaces and store value as (North Sydney 1120NSWAU). Can anybody see what is the issue?

Many thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
437

Use separated by space.

concatenate wa_inf0006S5-ORT01  wa_inf0006S5-STATE wa_inf0006S5-PSTLZ INTO gv_lined separated by space.

Thanks,

VM.

Read only

Former Member
0 Likes
436

You can use what Venkat has suggested. Or you can also use 'Respecting Blanks' addition.