Logic for Radio button and Check Box
I have select option with one check box and two radio buttons. if i checks that check box i want to display the two radiobuttons after i will click one radio bution it will allow to enter some value inthe input selection box, if i click 2nd radiobutton that time it wont allow to enter values in the input selection box. pls if anyone having idea of the logic or give me idea.
In my selection screen i have one check box, 2 radio buttons and 2 input parameter boxes.
Can anyone guide this?
Point will be sure.
PARAMETERS: chk TYPE c AS CHECKBOX USER-COMMAND chkbox, rd1 TYPE c RADIOBUTTON GROUP rd USER-COMMAND rd, rd2 TYPE c RADIOBUTTON GROUP rd, p1 TYPE char10 MODIF ID 1, p2 TYPE char10 MODIF ID 2. AT SELECTION-SCREEN OUTPUT. LOOP AT SCREEN. IF screen-group4 = '001' OR screen-group4 = '002'. IF chk NE 'X'. screen-invisible = 1. ELSE. screen-invisible = 0. ENDIF. ENDIF. IF screen-group1 = '1' OR screen-group1 = '2'. IF chk = 'X' AND rd2 = 'X'. screen-active = 1. ELSE. screen-active = 0. ENDIF. ENDIF. MODIFY SCREEN. ENDLOOP.