Disabling screen elements on a selection screen
How can one disbale/enable radio buttons on a standard selection screen, like the one created for a report?
The screen looks like:
Radio buttons 1,2, and 3 are in the same group G1.
Radio button 1
Radio button 2
Radio button 3
There is another radio button group G2, that has 3 other radio buttons.
I want to enable the user to be able to select radio buttons from G2 only if they have selected radio button 3.
I have tried the available AT SELECTION-SCREEN statements but with no luck.
Thanks for all your help.
Just the guys said to you, u need to change the attribute of selection-screen in the event AT SELECTION-SCREEN OUTPUT, but u need to assign an OK-CODE to the radiobutton of group1, in this way after pressing a radiobutton the event will be triggered automatically.
So your modification should be like following code:
PARAMETERS: r1 RADIOBUTTON GROUP g1 default 'X' USER-COMMAND AAA, r2 RADIOBUTTON GROUP g1, r3 RADIOBUTTON GROUP g1. PARAMETERS: r4 RADIOBUTTON GROUP g2 DEFAULT 'X' MODIF ID 001, r5 RADIOBUTTON GROUP g2 MODIF ID 001, r6 RADIOBUTTON GROUP g2 MODIF ID 001. AT SELECTION-SCREEN OUTPUT. case 'X'. when r3. when r1 or r2. loop at screen. if screen-group1 = '001'. screen-active = 0. MODIFY SCREEN. ENDIF. ENDLOOP. endcase.