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

radio button in module pool

Former Member
0 Likes
382

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.

2 REPLIES 2
Read only

Former Member
0 Likes
344

Hi,

write the code to disable them in PBO also(when radio button R3 is selected)

rgds,

bharat.

Read only

Former Member
0 Likes
344

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.