Skip to Content
0
Former Member
Dec 04, 2006 at 05:01 AM

How to make screen fields input value '0' at runtime. ??

38 Views

I have two radiobuttons r1 and r2,

and i have two parameters p1 and p2.

Now,

when r1 is selected p2 should be disabled for input,

and when r2 is selected p1 should be disabled for output.

Right now i am using

**************************************************

AT SELECTION-SCREEN OUTPUT.

if r1 = 'X'.

LOOP AT SCREEN.

if screen-name = 'p2'.

screen-input = '0'.

MODIFY SCREEN.

endloop.

endif.

else.

LOOP AT SCREEN.

if screen-name = 'p1'.

screen-input = '0'.

MODIFY SCREEN.

endif.

endloop.

endif.

*********************************

The following code on execution,

only sets the default, but this event is not triggered on runtime.

How can we do this ??