09-26-2006 5:19 AM
Hi ,
I want to Display Four Radio Buttons on the Selection Screen. But the Condition is that first it should show only two radio buttons and by selecting one of the it should show anohter two. I wrote it but it is not working . I wrote it in the At Selection-Output Event that if Screen-group = 'gr' the screen-invisible = 1.
After Execution of the program it shows only two buttons.But after selecting it not showing the remaiaing two buttons.
In which Event should I write the code ?
All these radio buttons are defined in the program.
09-26-2006 5:23 AM
09-26-2006 6:11 AM
Hi Satya,
Is your problem Sovled??
if yes, Kindly close the thread.
Regards,
Senthil
09-26-2006 5:25 AM
Parameters: rd1 RADIOBUTTON group g1 default 'X' user-command ch ,
rd2 RADIOBUTTON group g1 ,
rd3 RADIOBUTTON group g1 modif id ID2 ,
rd4 RADIOBUTTON group g1 modif id ID3 .
AT SELECTION-SCREEN.
check sy-ucomm = 'CH'.
AT SELECTION-SCREEN output.
IF rd1 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ID2' OR screen-group1 = 'ID3' .
screen-ACTIVE = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
09-26-2006 5:27 AM
Copy and paste this code and check.
parameters : r1 radiobutton group g1 USER-COMMAND OFF,
r2 radiobutton group G1.
parameters : p1(10) MODIF ID SC1,
P2(10) MODIF ID SC1,
P3(10) MODIF ID SC2,
P4(10) MODIF ID SC2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF R1 = 'X'.
IF SCREEN-GROUP1 = 'SC2'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
CONTINUE.
ENDIF.
ENDIF.
IF R2 = 'X'.
IF SCREEN-GROUP1 = 'SC1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
CONTINUE.
ENDIF.
ENDIF.
ENDLOOP.
Rreward if useful.
Regards,
Senthil
09-26-2006 5:29 AM
hi,
try this code
parameters : p_rad1 radiobutton group g1 user-command ABCD,
p_rad2 radiobutton group g1,
p_rad3 radiobutton group g1 modif-id GR,
p_rad4 radiobutton group g1 modif-id GR.
data: v_chk type c.
at selection-screen output.
if v_chk = 'X'.
loop at screen.
if screen-group = 'GR'.
screen-active = 1.
modify screen.
endif.
endloop.
else.
loop at screen.
if screen-group = 'GR'.
screen-active = 0.
modify screen.
endif.
endloop.
endif.
at selection-screen.
if p_rad1 = 'X'.
v_chk = ' '.
else.
v_chk = 'X'.
endif.
Regards,
Sailaja.