Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Parameters with radiobutton

Former Member
0 Kudos
13,314

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

12 REPLIES 12

Former Member
0 Kudos
2,632

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.

Former Member
0 Kudos
2,632

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

Former Member
0 Kudos
2,632

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.

Former Member
0 Kudos
2,632

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

Former Member
0 Kudos
2,632

Hi,

Provide two options to choose from :



PARAMETERS: p_screen RADIOBUTTON GROUP rad1,
                        p_screen1 RADIOBUTTON GROUP rad1.

Thanks,

Sriram Ponna.

Former Member
0 Kudos
2,632

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.

Former Member
0 Kudos
2,632

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.

former_member181995
Active Contributor
0 Kudos
2,632

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.

former_member212653
Active Contributor
0 Kudos
2,632

Yes...it will give error.Why should you create a radio-button with only one parameter.

Former Member
0 Kudos
2,632

HI,

Radio button is for selecting the single from multiple (options).

If u want a single option use CHECKBOX it will solve your problem.

Former Member
0 Kudos
2,632

Hi,

we should create atleast 2 radiobuttons under one group.

i think u have created only one radio button..

Regards,

venkat n

sk_kamaruzzaman
Participant
0 Kudos
2,632

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