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

Disabling chekboxes when radio button selection is changed??????????

Former Member
0 Likes
608

Hi All,

I am fighting with a requirment in my project. The selection screen displays two radio buttons out of which

on has been already selected. There are some checkboxes which is in edit mode. This is the state of selection screen. Now user clicks on other radio button. Now i should disable the checkboxes. How can i aceive this???

Note: After disabling the user should be presented with new selection screen.

3 REPLIES 3
Read only

George_Lioumis
Active Participant
0 Likes
578

Hi.

Try this:

parameters: p_1 radiobutton group gr1 user-command ucomm,

p_2 radiobutton group gr1,

p_l1 as checkbox,

p_l2 a scheckbox.

at selection-screen.

loop at screen.

if p_1 = 'X'.

if screen-name eq 'P_L1' or

screen-name eq 'P_L2'.

screen-input = 0.

modicy screen.

endif.

else.

if screen-name eq 'P_L1' or

screen-name eq 'P_L2'.

screen-input = 1.

modicy screen.

endif.

endif.

endloop.

regards,

George

Read only

JozsefSzikszai
Active Contributor
0 Likes
578

hi Rakesh,

do like this:

PARAMETERS : p_r1 RADIOBUTTON GROUP rb1 USER-COMMAND uc01,

p_r2 RADIOBUTTON GROUP rb1 USER-COMMAND uc01,

p_cb1 AS CHECKBOX MODIF ID 001,

p_cb2 AS CHECKBOX MODIF ID 001,

p_cb3 AS CHECKBOX MODIF ID 001,

...

AT SELECTION-SCREEN OUTPUT.

LOOP AT screen.

IF screen-group1 EQ '001'.

IF p_rb1 EQ 'X'.

screen-inout = '1'.

ELSE.

screen-input = '0'.

ENDIF.

MODIFY screen.

ENDIF.

ENDLOOP.

hope this helps

ec

Read only

Former Member
0 Likes
578

TABLES : bsis.

SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETER : sp_sel radiobutton group rad USER-COMMAND radio DEFAULT 'X',

sp_all RADIOBUTTON GROUP rad.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

parameters : chk1as checkbox modif id sp1.

parameters : chk2 as checkbox MODIF ID sp2.

SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF sp_sel = 'X'.

IF screen-group1 = 'SP2'.

screen-input = '0'.

screen-invisible = '0'.

screen-required = '0'.

MODIFY SCREEN.

ENDIF.

else.

IF screen-group1 = 'SP2'.

screen-input = '0'.

screen-invisible = '0'.

screen-required = '0'.

MODIFY SCREEN.

ENDIF.

endif.

ENDLOOP.

Thanks,

Sriram Ponna.