‎2008 May 19 6:57 AM
Hi Experts,
I wanted to add 5 space before my variable & wanted to store in other variable.
i.e.
concatenate ' ' lv_var into lv_new. "where there r five space in ' '.
The value of LV_NEW should look like ' TEST'. Before test there is 5 space required.
How I can do that?
‎2008 May 19 7:02 AM
HI
do this
constants: k(5) type c value ' '. "5 spaces.
concatenate k LV_NEW respecting space. (it works depends upon the version u r using)
Regards
Aditya
‎2008 May 19 7:02 AM
HI
do this
constants: k(5) type c value ' '. "5 spaces.
concatenate k LV_NEW respecting space. (it works depends upon the version u r using)
Regards
Aditya
‎2008 May 19 7:04 AM
‎2008 May 19 7:04 AM
hi neha,
just try out assigning 5 space manually into a new variable of type char(5) say to lv_space. and then concatenate lv_space lv_var to lv_new.just an assumption.try this.
reward if helpful
thanks and regards
sudipta
‎2008 May 19 7:05 AM
Hi neha,
try this code
data: w_space type char5 value ' ',
w_value type char10.
constatns: c_value type char10 value 'ABCDEFGHIJ'.
concatenate w_space c_vlaue into w_value.
‎2008 May 19 7:07 AM
hi,
tyr like this
data : f1(5),
f2(5) value 'SPACE',
f3(10) type c.
f3+4(5) = f2.
write f3.
reward if helpful
prasanth
‎2008 May 19 7:24 AM
Hi,
data: test(3) type c value 'tes',
out type string.
concatenate ' ' ' ' ' ' ' ' ' ' test into out separated by ' '.
write:/ out.
I think it is useful for you.
Reward if it useful for you.
Thanks & ragards
Deepika
‎2008 May 19 7:43 AM