2006 Jun 16 8:52 AM
Hi experts,
is there a way i can write a series of space characters in a list, i need a simpler way so that i'll not have to write it manually. right now my code looks like this.
write:/1 '|', '****', '|'. "<---(5 spaces)( represents space char).
the problem occurs when i need to write 50 spaces or more.
pls. help.
Thanks a lot.
2006 Jun 16 8:55 AM
Jesus,
You can write as
write:/1 '|', 5 '|'.
.
Here you are just mentioning the position where you need to wirte. Automatically the space will be coming in between.
rgds,
TM.
Please mark points if helpful.
2006 Jun 16 8:54 AM
data : m(50) type c.
data : myspace(50) type c.
data : howmany type i.
howmany = 25.
concatenate 'kishan' 'negi' into m separated by myspace(howmany).
write m.
<b>
write:/1 '|', myspace(howmany), '|'.</b>
2006 Jun 16 8:55 AM
Jesus,
You can write as
write:/1 '|', 5 '|'.
.
Here you are just mentioning the position where you need to wirte. Automatically the space will be coming in between.
rgds,
TM.
Please mark points if helpful.
2006 Jun 16 9:03 AM
data : m(50) type c.
data : myspace(50) type c.
data : howmany type i.
howmany = 25.
write:/1 '|', myspace(howmany), '|'.
if u rite this way it full fill ur requirment.
2006 Jun 16 9:03 AM
got it. i solved it on my own though your replies helped a lot. thanks.
2006 Jun 16 9:14 AM
Hi Jesus,
you can get the spaces in this way...
Just check it.
REPORT ZTEST.
write:/1 '|', <b>` ` ,` ` ,` `, ` `, ` `,` `,</b> '|'.
<b>` `</b> one space.
Regards
vijay
2006 Jun 16 9:20 AM