‎2008 Apr 16 1:27 PM
Dear all,
can you pls provide the solution for the below.
in my requirement i have a screen which contains the 9 fields and looks like below:
1 2 3
4 5 6
7 8 9
in some conditions i need to disable the fields 5 & 8. in this case the gap will remove automatically and the fields 6 & 9 will sit in the 5 & 8 places.
Regards
Venkat
‎2008 Apr 16 1:31 PM
in your screen loop, use
screen-input = 0.
instead of
screen-active = 0.
‎2008 Apr 16 1:35 PM
try like this,
parameters:
check1 type c as checkbox user-command fcode,
check2 type c as checkbox user-command fcode,
rad1 type c radiobutton group grp1 ,
rad2 type c radiobutton group grp1 ,
rad3 type c radiobutton group grp2 ,
rad4 type c radiobutton group grp2 .
at selection-screen output.
if check1 = 'X'.
loop at screen.
if screen-name = 'RAD3' or screen-name = 'RAD4' .
screen-active = 0.
modify screen.
endif.
endloop.
endif.
if check2 = 'X'.
loop at screen.
if screen-name = 'RAD1' or screen-name = 'RAD2' .
screen-active = 0.
modify screen.
endif.
endloop.
endif.
data:
itab type table of sy-datar,
wa like line of itab.
wa = 'SAVE'.
append wa to itab.
wa = 'CANCEL'.
append wa to itab.
The gap will adjust automatically.
‎2008 Apr 16 2:46 PM
Hi Venkat, set screen-active = '0' . Automatically adjusted on Selection-screen and on dialog program screen as well. Regards, Venkat.O
‎2008 Apr 16 4:12 PM
Hi,,
Simply do like this
loop at screen.
if (give u r condition).
screen-active = 0.
endif.
endloop.
it may help u...
regards
sunil kumar mutyala..