‎2006 Aug 24 1:58 PM
im having 3 radio buttons on selection screen. if i select one radio button the rest two selection screen blocks should be disabled or made invisible.
how could this be done. pls provide source code ?
‎2006 Aug 24 2:06 PM
You can try this sample program. Depending on the radiobutton a corresponding field will be presented.
report zrich_0001.
parameters: p_rad1 radiobutton group grp1 default 'X'
user-command check,
p_rad2 radiobutton group grp1 ,
p_rad3 radiobutton group grp1 .
parameters: p_fld1 type c modif id rd1 ,
p_fld2 type c modif id rd2 ,
p_fld3 type c modif id rd3 .
at selection-screen output.
loop at screen.
if p_rad1 = 'X'
and ( screen-group1 = 'RD2'
or screen-group1 = 'RD3' ).
screen-active = '0'.
endif.
if p_rad2 = 'X'
and ( screen-group1 = 'RD1'
or screen-group1 = 'RD3' ).
screen-active = '0'.
endif.
if p_rad3 = 'X'
and ( screen-group1 = 'RD1'
or screen-group1 = 'RD2' ).
screen-active = '0'.
endif.
modify screen.
endloop.
Regards,
Rich Heilman
‎2006 Aug 24 2:06 PM
You can try this sample program. Depending on the radiobutton a corresponding field will be presented.
report zrich_0001.
parameters: p_rad1 radiobutton group grp1 default 'X'
user-command check,
p_rad2 radiobutton group grp1 ,
p_rad3 radiobutton group grp1 .
parameters: p_fld1 type c modif id rd1 ,
p_fld2 type c modif id rd2 ,
p_fld3 type c modif id rd3 .
at selection-screen output.
loop at screen.
if p_rad1 = 'X'
and ( screen-group1 = 'RD2'
or screen-group1 = 'RD3' ).
screen-active = '0'.
endif.
if p_rad2 = 'X'
and ( screen-group1 = 'RD1'
or screen-group1 = 'RD3' ).
screen-active = '0'.
endif.
if p_rad3 = 'X'
and ( screen-group1 = 'RD1'
or screen-group1 = 'RD2' ).
screen-active = '0'.
endif.
modify screen.
endloop.
Regards,
Rich Heilman
‎2006 Aug 24 2:16 PM