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

write probelm

Former Member
0 Likes
1,370

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,342

data:g_len type i value 50.

write at 1(g_len) sy-uline.

11 REPLIES 11
Read only

Former Member
0 Likes
1,342

Hi,

you have to use <b>paramete</b>r for runtime input

Regards,

Sakthi.

Message was edited by: sakthivel s

Read only

Former Member
0 Likes
1,342

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.

Read only

Former Member
0 Likes
1,342

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

Read only

Former Member
0 Likes
1,342

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

Read only

Former Member
0 Likes
1,342

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

Read only

Former Member
0 Likes
1,342

Hi Kaki,

It is working FIne For me,

I don't know what error you are getting...

vijay

Read only

0 Likes
1,342

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)".

Read only

0 Likes
1,342

what is the version

here i am not getting any error mine 4.7version...

check that also...

Read only

Former Member
0 Likes
1,343

data:g_len type i value 50.

write at 1(g_len) sy-uline.

Read only

0 Likes
1,342

Hi Shekhar,

Your code is working.

Thanks for all the replies to all the members.

points allowted

cheers

kaki

Read only

0 Likes
1,342

as ur problem is solved pls allot full points if u think so