Application Development and Automation 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: 
Read only

help me

Former Member
0 Likes
831

THIS IS DIALOG PROGRAMMING

IN THAT IM TRYING TO CREATE RADIO BUTTON WITH OUT ASSIGNING THEM IN GROUP.

I DID CODING LIKE THAT ONLY ONE RADIO BUTTON SHOULD BE SELECT BUT HERE ALL RADIO BUTTONS ARE GETTING SELECTED .

PLZ TELL ME THE SOLUTION

PROGRAM DEMO_DYNPRO_INPUT_OUTPUT.

DATA: INPUT TYPE I,

OUTPUT TYPE I,

RADIO1, RADIO2, RADIO3, BOX1, BOX2, BOX3, EXIT.

CALL SCREEN 100.

MODULE INIT_SCREEN_100 OUTPUT.

CLEAR INPUT.

RADIO1 = 'X'.

CLEAR: RADIO2, RADIO3.

ENDMODULE.

MODULE USER_COMMAND_0100 INPUT.

OUTPUT = INPUT.

BOX1 = RADIO1.

BOX2 = RADIO2.

BOX3 = RADIO3.

IF EXIT NE SPACE.

LEAVE PROGRAM.

ENDIF.

ENDMODULE.

7 REPLIES 7
Read only

Former Member
0 Likes
797

Hi

It's a must to assign the Radiobuttons in a group, that is the property of radiobuttons

If you need more than one option at a time better use Checkboxes instead of radiobuttons.

Reward points if useful

Regards

Anji

Read only

0 Likes
797

This pgm has given help.sap.com.

u can check it abap pdf

page no is 535

Read only

former_member632991
Active Contributor
0 Likes
797

Hi,

Radio Button are used if u want to select only one option from various options at a time, and for that they all are assigned in a group.

if u don't want to assign in a group then better opt for checkbox.

Hope it clears.

Regards,

Sonika

Read only

Former Member
0 Likes
797

Hi,

In a Radio button Group One will be selected defaultly.While creating seperate radiobuttons without assigning to a group each radiobutton is selected Defaultly.

Regards,

Padmam.

Read only

Former Member
0 Likes
797

Hi,

This will not work in graphical painter..It will work in normal editor..

For grouping the radio buttons

Do the following..

Select one radio button then press graphical element button in the application toolbar..

Place the cursor on the other radio button..

Then press "Define graph. group" in the application toolbar..

THis will group the radio buttons..

Either of the one will be selected..

Thanks,

Naren

Read only

0 Likes
797

hi,

for that you select all the radio buttons and then right click and then click define group.

regards,

santosh

Read only

former_member196299
Active Contributor
0 Likes
797

hi ,

Whenever you want to create radiuo buttons always assign them into groups ..

in your case you should select the radio buttons you want to be grouped , right click on that and choose 'define group '.

then they will get the property of radiobuttons and only one can be choosen ...

Regards,

Ranjita