cancel
Showing results for 
Search instead for 
Did you mean: 

regarding one selection screen

Former Member
0 Kudos

hi,

i have 4 radio buttons in my selection screen.

ex 1,2,3,4.

i want to click if 1 , then 3 should automatically active state,

same when i click radiobutton 2, 4 will come.

how to do this ....???

please help,

yours regards

subhasis

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

If your radio buttons is in the same group then u cant do this. Because in one group u can select only one radio button at any time.

If first 2 are in group1 and last 2 are in group2 then U can do like this. Copy paste this code in ur system and check the functionality.

SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME.

PARAMETER: P_RADIO1 RADIOBUTTON GROUP GRP1 USER-COMMAND ucomm DEFAULT 'X',

P_RADIO2 RADIOBUTTON GROUP GRP1.

SELECTION-SCREEN: END OF BLOCK B1.

SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME.

PARAMETER: P_RADIO3 RADIOBUTTON GROUP GRP2 USER-COMMAND ucomm,

P_RADIO4 RADIOBUTTON GROUP GRP2.

SELECTION-SCREEN: END OF BLOCK B2.

AT SELECTION-SCREEN OUTPUT.

IF p_radio1 EQ 'X'.

CLEAR: p_radio4.

p_radio3 = 'X'.

ELSEIF p_radio2 EQ 'X'.

CLEAR: p_radio3.

p_radio4 = 'X'.

ENDIF.