2022 Oct 25 11:06 AM
Hey Experts,
I have two radiobuttons and one Checkbox.
If the Checkbox is checked the radiobuttons should be grayed out and radiobutton one should be selected.
Your help would be appreciated.
2022 Oct 25 11:22 AM
Hi,
this would be a possible solution for this case:
PARAMETERS: p_rb_01 RADIOBUTTON GROUP rg01 MODIF ID zrb,
p_rb_02 RADIOBUTTON GROUP rg01 MODIF ID zrb.
PARAMETERS: p_cb AS CHECKBOX USER-COMMAND zcb.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'ZRB'.
IF p_cb IS NOT INITIAL.
screen-input = 0.
p_rb_01 = abap_true.
p_rb_02 = abap_false.
ELSE.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
I hope this helps you.
Kind regards
Jens
2022 Oct 25 11:22 AM
Hi,
this would be a possible solution for this case:
PARAMETERS: p_rb_01 RADIOBUTTON GROUP rg01 MODIF ID zrb,
p_rb_02 RADIOBUTTON GROUP rg01 MODIF ID zrb.
PARAMETERS: p_cb AS CHECKBOX USER-COMMAND zcb.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'ZRB'.
IF p_cb IS NOT INITIAL.
screen-input = 0.
p_rb_01 = abap_true.
p_rb_02 = abap_false.
ELSE.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
I hope this helps you.
Kind regards
Jens