Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Radio button

I have 3 raddio buttons

0 RB1 O RB2 ORB3

I have 3 check boxes

[] chb1

[]chb2

[]chb3

if i select RB1 chb2 should be disabled,if i select RB2 chb3 should be disabled.

PLZ help me with code

Thanx in advance

Tags:
replied

This code may help u...

PARAMETER : r_c1 RADIOBUTTON GROUP id1 DEFAULT 'X' USER-COMMAND rd.
PARAMETER : r_c2 RADIOBUTTON GROUP id1.
PARAMETER : r_c3 RADIOBUTTON GROUP id1.
PARAMETER : p_fpath1 TYPE c AS CHECKBOX MODIF ID 1.
PARAMETER : p_fpath2 TYPE c AS CHECKBOX MODIF ID 2.
PARAMETER : p_fpath3 TYPE c AS CHECKBOX MODIF ID 3.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF r_c1 = 'X'.
      IF screen-group1 = '2'.
        screen-active = 0.
      ELSE.
        screen-active = 1.
      ENDIF.
    ELSEIF r_c2 = 'X'.
      IF screen-group1 = '3'.
        screen-active = 0.
      ELSE.
        screen-active = 1.
      ENDIF.
    ELSEIF r_c3 = 'X'.
      screen-active = 1.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.

Edited by: Sukriti Saha on Oct 21, 2008 8:08 AM

Edited by: Sukriti Saha on Oct 21, 2008 8:13 AM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question