2012 Nov 13 3:27 AM
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.
2012 Nov 13 3:34 AM
Use separated by space.
concatenate wa_inf0006S5-ORT01 wa_inf0006S5-STATE wa_inf0006S5-PSTLZ INTO gv_lined separated by space.
Thanks,
VM.
Use separated by space.
concatenate wa_inf0006S5-ORT01 wa_inf0006S5-STATE wa_inf0006S5-PSTLZ INTO gv_lined separated by space.
Thanks,
VM.
2012 Nov 13 3:34 AM
Use separated by space.
concatenate wa_inf0006S5-ORT01 wa_inf0006S5-STATE wa_inf0006S5-PSTLZ INTO gv_lined separated by space.
Thanks,
VM.
2012 Nov 13 5:56 AM
You can use what Venkat has suggested. Or you can also use 'Respecting Blanks' addition.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |