Hi Friends,
I have a requirement in which two radio button are required on selection screen. But initially both of them should be unchecked. User should go on select either of the two.
Is it possible to achive this? Please guide me how this can be achieved.
Thanks,
Punit
If you are using radiobuttons on your selection screen then by default one of them will be checked.
not possible via radio-buttons , use check box instead.
HI Punit
Yes this is possible.
You need to create two radio buttons on selection screen one with default check, like:
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: p_rdbt1 RADIOBUTTON GROUP gi default 'X',
p_rdbt2 RADIOBUTTON GROUP gi.
SELECTION-SCREEN END OF BLOCK B1.
after that you need to do the coding accordingly.
like:
if p_rdbt1 = 'X'.
<do your coding here>.
elseif p_rdbt2 = 'X'.
<do your coding>.
endif.
I hope this will work for you.
Thanks
Lalit Gupta
Hi Punit,
You can try below logic.
PARAMETERS : r1 RADIOBUTTON GROUP g1 DEFAULT 'X',
r2 RADIOBUTTON GROUP g1,
r3 RADIOBUTTON GROUP g1.
Now hide this radiobutton r1 by using loop at screen
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'R1'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Regards,
Pawan
Check the following code Hide one radio button .
< http://www.sapfans.com/forums/viewtopic.php?f=13&t=12324 removed>>
Moderator Message: Copy-paste is a serious offense, which can lead to account deletion.
Edited by: kishan P on Oct 8, 2010 7:50 PM
Add a comment