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: 

select-deselect radiobuttons in modulepool

Former Member
0 Kudos
100

Hi All !!!

i am creating an hr infotype inwhich i have screen in which i have 3 radiobuttons , i have created all radiobuttons in layout ,

At a time of execution it showing all3 buttons seleted but i want that selectio of buttons by user,

in declaration i have declared as below

DATA : RB1 TYPE C,

RB2 TYPE C.

CAN ANYBODY TELL ME HOW TO SO;VE THESE PROBLEM

7 REPLIES 7

Mohamed_Mukhtar
Active Contributor
0 Kudos
79

hi,

In screen painter...

Select all radio buttons ....

Right click on the seleceted radio buttons

Select

Radio Button Group------>Define...

Hope it solves ur problem

Thanks & Regards

Former Member
0 Kudos
79

Hi

U need to group the radiobuttons by screen painter

Max

raymond_giuseppi
Active Contributor
0 Kudos
79

One radiobutton and only one is selected at a time, what you wrote indicates that your three rtadiobuttons are not member of a single group.

Go to SE51 and select all the three checkboxes and then convert them into a radiobutton group.

Regards

sujeet2918
Active Contributor
0 Kudos
79

Hello Paresh,

please provide Group to your radio button declaration.

Like below code :

PaRAMETERS: r_xyz1 radiobutton group r1,

r_xyz2 radiobutton group r1,

r_xyz3 radiobutton group r1,

Hope it will Help you.

Have a Nice Day,

Regards,

Sujeet

I355602
Product and Topic Expert
Product and Topic Expert
0 Kudos
79

Hi,

Whenever you take multiple radiobuttons on screen of same group i.e., if you want only one of them to be selected at a time, then you need to define them into a single group.

To do so follow these simple steps:

Select all radio buttons --> Right click on the seleceted radio buttons --> Select Radio Button Group -->Define

Now when you execute, only one radiobutton will be selected at a time.

And remember that you need to declare variables (no of variabels same as no of radiobutton taken on screen and of same name) to hold the value corresponding to the radiobutton is selected.


data : v_rb1(1) type c,
       v_rb2(1) type c.
       "and so on.

Hope this helps you.

Thanks & Regards,

Tarun Gambhir

Former Member
0 Kudos
79

thnks my question is solved