‎2007 May 10 6:28 AM
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.
‎2007 May 10 6:33 AM
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
‎2007 May 10 6:37 AM
This pgm has given help.sap.com.
u can check it abap pdf
page no is 535
‎2007 May 10 6:34 AM
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
‎2007 May 10 6:34 AM
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.
‎2007 May 10 6:34 AM
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
‎2007 May 10 6:34 AM
hi,
for that you select all the radio buttons and then right click and then click define group.
regards,
santosh
‎2007 May 10 6:40 AM
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