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: 

Problem with the radio buttons

Former Member
0 Kudos

Hi,

I created three radio buttons in the layout.But when i am executing the tcode all the three radibuttons are getting selected even after i code in the PBO like this

DATA: input TYPE i,

output TYPE i,

X1(1) TYPE c, X2(1) TYPE c, X3(1) TYPE c, "radio buttons

box1(1) TYPE c, box2(1) TYPE c, box3(1) TYPE c, exit(1) TYPE c.

MODULE init_screen_100 OUTPUT.

CLEAR input.

X1 = 'X'.

CLEAR: X2, X3.

ENDMODULE.

MODULE user_command_0100 INPUT.

output = input.

box1 = X1.

When i debug X2,X3 are cleared but while showing the screen all three are getting selected.Please suggest where i am wrong.

Thanks

K Srinivas

box2 = X2.

box3 = X3.

IF exit NE space.

LEAVE PROGRAM.

ENDIF.

ENDMODULE.

1 ACCEPTED SOLUTION

former_member1245113
Active Contributor
0 Kudos

Hi

You need to define a group for the radio buttons

in screen painter

First select the radio buttons then go to

Editgroupingradiobutton grouping--define

Best Regards

Ramchander Roa.k

Edited by: ramchander krishnamraju on Dec 23, 2008 10:35 AM

Edited by: ramchander krishnamraju on Dec 23, 2008 10:36 AM

8 REPLIES 8

former_member1245113
Active Contributor
0 Kudos

Hi

You need to define a group for the radio buttons

in screen painter

First select the radio buttons then go to

Editgroupingradiobutton grouping--define

Best Regards

Ramchander Roa.k

Edited by: ramchander krishnamraju on Dec 23, 2008 10:35 AM

Edited by: ramchander krishnamraju on Dec 23, 2008 10:36 AM

0 Kudos

Thanks for the reply. I defined group in groups column for all 3 RBs. But the same error is repeating.

0 Kudos

hi

Please note i have edited the above message

go to Editgroupingradiobutton grouping--define

not in group1 group2 etc

Hope this is very clear to you

Regards

Ramchander Rao.k

0 Kudos

When i go to Edit->Grouping>Radiobutton Group>Define, Define is in disable mode.What steps i have to follow to make it enable?

Thanks

K Srinivas

0 Kudos

Hi Sreenu,

Just delete them and create new one again.

Regards

Ramchander Rao.K

0 Kudos

Hi ,

I tried as per your suggestion. But i am not getting in enable mode.

Thanks

K Srinivas

0 Kudos

Hi Sreenu,

If you cant DEFINE (as it is in grey mode) you can see the EXPAND option

just click it and then again select the 2 radio buttons now you can DEFINE

i did many time during this time.

or just delete these 2 radio buttons and create again.

Regards

Ramchander Rao.K

0 Kudos

Problem solved.

Thanks a lot.

K Srinivas