‎2005 Dec 09 5:01 AM
Hi,
Iam trying to write ULINE length dynamically in the loop.
for example
write:1(10) sy-uline.
but i want to change the length of uline at runtime.
i have given like this.
data:g_len(2) type n.
g_len = '15'.
write:/1(g_len) sy-uline.
It is throwing error.How to rectify this?
points guaranteed
kaki
Message was edited by: Kaki R
‎2005 Dec 09 5:27 AM
‎2005 Dec 09 5:04 AM
Hi,
you have to use <b>paramete</b>r for runtime input
Regards,
Sakthi.
Message was edited by: sakthivel s
‎2005 Dec 09 5:09 AM
data:g_len(2) type n.
g_len = 7.
write:/1(g_len) sy-uline.
write:/ sy-vline,'aaa',sy-vline.
write:/1(g_len) sy-uline.
this works well.
‎2005 Dec 09 5:10 AM
hi
try this
<b>parameter:g_len(2) type n.
write:/ g_len as line.</b>
regards
Arun
Message was edited by: arun a v
‎2005 Dec 09 5:11 AM
use this..
Instead of type n use type i
data:g_len type i .
g_len = 15.
write:/1(g_len) sy-uline.
Message was edited by: Asit Garg
‎2005 Dec 09 5:11 AM
Hi try this
<b>parameter: x type i.
parameter: y type i.
ULINE AT x(y).
write:/X(Y) sy-uline.</b>
get back 4 more help.
regards vijay
Message was edited by: vijayasarathy raghunathan
‎2005 Dec 09 5:13 AM
Hi Kaki,
It is working FIne For me,
I don't know what error you are getting...
vijay
‎2005 Dec 09 5:21 AM
in the loop iam passing the length into g_len
g_len = strlen( g_names ).
now iam having g_len value 62.
write:/1(g_len) sy-uline.
iam getting following error.
"You cannot use the syntax "WRITE/ULINE /1(G_LEN)". The correct syntax is "WRITE/ULINE AT /1(G_LEN)".
‎2005 Dec 09 5:27 AM
what is the version
here i am not getting any error mine 4.7version...
check that also...
‎2005 Dec 09 5:27 AM
‎2005 Dec 09 5:33 AM
Hi Shekhar,
Your code is working.
Thanks for all the replies to all the members.
points allowted
cheers
kaki
‎2005 Dec 09 5:35 AM