‎2008 Dec 23 9:29 AM
Hi,
I have created a screen where i have two radio buttons. When i execute the screen, both the radio buttons are checked. My requirement is, by default both radio buttons should not be checked, and later user has to check one. I am new very much new to module pool program. Please suggest me how to do this..
Thanks in advance,
Shyam.
‎2008 Dec 23 9:42 AM
Hi
In screen painter
First select 2 radion buttons then
Go to
Editgrouping-radiobutton grouping---define
Regards
Ramchander Rao.K
Edited by: ramchander krishnamraju on Dec 23, 2008 10:43 AM
‎2008 Dec 23 9:33 AM
Hi Shyam,
SAP recommends to add a new radiobutton, say "none", that is checked by default. Then the user has to check one of the other two radiobuttons.
Also remember to group these 3 radiobuttons together, so that the user only checks one of them.
I hope it helps. Kind regards,
Alvaro
‎2008 Dec 23 9:34 AM
Hi,
Do not place both the radio button not in the group.
Regards,
Naresh
‎2008 Dec 23 9:42 AM
Hi
In screen painter
First select 2 radion buttons then
Go to
Editgrouping-radiobutton grouping---define
Regards
Ramchander Rao.K
Edited by: ramchander krishnamraju on Dec 23, 2008 10:43 AM
‎2008 Dec 23 9:44 AM
Hi shyam ,
Do as I say
Now u have 2 Radiobuttons on ur screen say R1 and R2
on the screen layout give the description to both of them .
Now select both R1 and R2 with their descriptions .
and right click on the selected area now at the end of the window which has come out of the right click just click on the option called define radio button group or something like that .
Now u have radiobutton group defined now when u execute the t-code u wont find both the buttons selected .
Thanks
Sahil
‎2008 Dec 23 10:06 AM
Hi Sahil,
Thanks for your answer. I did as said by you. Now screen came with first radio button checked. But my requirement is nothing should be cheked.user should select one of them.Also, while coming back from the screen, it throwing an error message saying as 'invalid field format(screen error)'. Could you pls explian me what wrong i did. PLs suggest me..
Thanks,
Shyam.
‎2008 Dec 23 10:55 AM
Dear Shyam,
To the best of my knowledge,
As per the SAP architecture at least one radio button is selected even you clear the value in PBO.
This is not possible to have all the radio buttons deselected ( one radio button is selected by default).
This is the same in any programing languages that support radio buttons (This is to the best of my knowldge)
if your problem is solved please close this thread
Best Regards
Ramchander Rao.K
‎2009 Jan 09 7:39 AM
Any ideas about the error message "invalid field format(screen error)" on the screen with the radio buttons?
‎2008 Dec 23 9:48 AM
Hi shyam ,
try this
SELECTION-SCREEN COMMENT 2(6) TEXT_001.
parameter : r_pa type c radiobutton group gr1 user-command mode default 'X',
r_pa1 type c radiobutton group gr1 default 'X'.
‎2008 Dec 23 9:56 AM
Hello,
Radio buttons are generally used to select only one option of a list. so by default one and only one of the radio button will be selected, then user can select any other radio button which will unselect any other radio button which is selected.
Now your problem is that both the radio buttons are selected, to avoid that you have to group both the radio buttons together.
Select the radio buttons and right click and select group. this group the radio buttons. and only one will be selected at time.