‎2007 Oct 12 10:43 AM
i am having 3 radio button say r1,r2,r3. the r1 or r2 button selected means their corresponding input field will be enable otherwise it will be inactive. the code which i return for that is working fine. but the problem is the default option is r3 so i dont want the input buttons to be active while the page is loading. but always it showing the input fields. after that if i try its working fine.
the code which i am using is
case sy-ucomm.
when 'RB'.
if RB3 = 'X'.
loop at screen.
if screen-name = 'AIRLINE_CODE' or screen-name = 'AIRLINE_CODE1'.
screen-input = 0.
screen-active = 0.
modify screen.
CLEAR SCREEN.
endif.
if screen-name = 'DATE' or screen-name = 'DATE1'.
screen-input = 0.
screen-active = 0.
modify screen.
endif.
endloop.
endif.
if RB1 = 'X'.
loop at screen.
if screen-name = 'DATE' or screen-name = 'DATE1'.
screen-input = 1.
screen-active = 1.
modify screen.
endif.
if screen-name = 'AIRLINE_CODE' or screen-name = 'AIRLINE_CODE1'.
screen-input = 0.
screen-active = 0.
modify screen.
endif.
endloop.
endif.
if RB2 = 'X'.
loop at screen.
if screen-name = 'DATE' or screen-name = 'DATE1'.
screen-input = 0.
screen-active = 0.
modify screen.
endif.
if screen-name = 'AIRLINE_CODE' or screen-name = 'AIRLINE_CODE1'.
screen-input = 1.
screen-active = 1.
modify screen.
endif.
endloop.
endif.
thanks in advance.
‎2007 Oct 12 10:52 AM
Hi,
write the code to disable them in PBO also(when radio button R3 is selected)
rgds,
bharat.
‎2007 Oct 12 11:25 AM
hi,
use AT SELECTION-SCREEN ON OUTPUT event and try like this
AT SELECTION-SCREEN ON OUTPUT.
case sy-ucomm.
when 'RB'.
if RB3 = 'X'.
loop at screen.
if screen-name = 'AIRLINE_CODE' or screen-name = 'AIRLINE_CODE1'.
screen-input = 0.
screen-active = 0.
modify screen.
CLEAR SCREEN.
endif.
if screen-name = 'DATE' or screen-name = 'DATE1'.
screen-input = 0.
screen-active = 0.
modify screen.
endif.
endloop.
endif.
if RB1 = 'X'.
loop at screen.
if screen-name = 'DATE' or screen-name = 'DATE1'.
screen-input = 1.
screen-active = 1.
modify screen.
endif.
if screen-name = 'AIRLINE_CODE' or screen-name = 'AIRLINE_CODE1'.
screen-input = 0.
screen-active = 0.
modify screen.
endif.
endloop.
endif.
if RB2 = 'X'.
loop at screen.
if screen-name = 'DATE' or screen-name = 'DATE1'.
screen-input = 0.
screen-active = 0.
modify screen.
endif.
if screen-name = 'AIRLINE_CODE' or screen-name = 'AIRLINE_CODE1'.
screen-input = 1.
screen-active = 1.
modify screen.
endif.
endloop.
endif.
if helpful reward some points.
with regards,
Suresh Aluri.