2008 Jun 17 12:20 PM
Hi,
I want to use only one radiobutton on the selection screen.
I have declared the parameters statement like this.
PARAMETERS: p_screen RADIOBUTTON GROUP rad1.
When I try to execute the program it is giving error as
'The radiobutton group "RAD1" contains only one PARAMETER'.Can anyone tell me what would be the reason for this.
Regards,
Hema
2008 Jun 17 12:22 PM
Hi,
For radio buttons you need to choose options between two or more. If you provide only 1 option, definately it will throw an error.
Thanks,
Sriram Ponna.
2008 Jun 17 12:23 PM
hi
for an radio button u need minimum two field
like this way
PARAMETER p_alv RADIOBUTTON GROUP alv.
PARAMETER p_class RADIOBUTTON
GROUP alv DEFAULT 'X'.
Cheers
Snehi Chouhan
Edited by: snehi chouhan on Jun 17, 2008 1:25 PM
2008 Jun 17 12:23 PM
Hi Hema,
Radio button genrally we use for selection,
so there should be atleast two radio buttons,
If there is only one what is the use of that,
if at all ur requirement is based on this selection u can place check box instead of radio button
Regds,
Murali.
2008 Jun 17 12:23 PM
HI,
You cannot use only one radio button on the selection screen, the concept of radio button is giving choice to user to select any of the options. Instead you can use check box.
Rgds,
Bujji
2008 Jun 17 12:24 PM
Hi,
Provide two options to choose from :
PARAMETERS: p_screen RADIOBUTTON GROUP rad1,
p_screen1 RADIOBUTTON GROUP rad1.
Thanks,
Sriram Ponna.
2008 Jun 17 12:24 PM
Hi Hema,
Radio buttons are declared in a group.
You cannot declare only one radiobutton. If u need only one, why dont you go for checkbox instead of radio button.
Thanks,
Keerthi.
2008 Jun 17 12:25 PM
Hi
We cannot declare one radiobutton for that purpose we use check box
parameters:
p_screen as checkbox.
if there are multiple selections and we can select only one at a then we use radio button.
for your purpose we can use checkbox.
Hope it helps u.
Regards
Manjari.
2008 Jun 17 12:28 PM
Hema,
this is the basic thing radio button always appear in group like two or four and so on.
simply as in your requirement you have to use checkbox instead of radio button.
please reward for good ans.
Amit.
2008 Jun 17 1:00 PM
Yes...it will give error.Why should you create a radio-button with only one parameter.
2008 Jun 17 1:16 PM
HI,
Radio button is for selecting the single from multiple (options).
If u want a single option use CHECKBOX it will solve your problem.
2008 Jun 17 1:32 PM
Hi,
we should create atleast 2 radiobuttons under one group.
i think u have created only one radio button..
Regards,
venkat n
2008 Jun 17 2:06 PM
It is meaning less to use single Radio Button in
selection Screen. In this case we should have use
Check Box.
We can create single radio Button in selection screen but don't use it.
The following way we can create it. Here we can create 2 Radio Button but we used single
and other is Disable mode.
SELECTION-SCREEN BEGIN OF...............
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) text.....
PARAMETERS: p_rad1 RADIOBUTTON GROUP rad1 .
PARAMETERS: p_rad2 RADIOBUTTON GROUP rad1 .
SELECTION-SCREEN..........
SELECTION-SCREEN END OF..............
DISABLE ONE RADIO BUTTION **
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'P_RAD2'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
[ Don't Use it ]
If helpfull...Rewards point
Regards,
Sk Kamruzzaman