‎2007 Jun 13 7:00 AM
Hello Guys,
Iam facing problem with Radio buttons. There are 3 radio buttons in my selection Screen for different fields. 2 RB of same group 'XXX' and one of 'YYY'.
When I select the RB2 = 'X' and press F4 in SO_FIELD2 , the fields are properly getting populated in SO_FIELD. But the Radiobutton RB1 is becoming 'X' or getting selected.
Similar is the case with RB3.
Can anyone help me on this ASAP?.
Thanks in advance
Sham
‎2007 Jun 13 7:04 AM
Hi
What for you are using the third Rb?
SInce you are using the two groups XXX and YYY naturally irrespective of the XXX group the YYY group button will be selected
Why can't you add/put all the 3 RB's in the same RB group and use
Reward points for useful Answers
Regards
Anji
‎2007 Jun 13 7:07 AM
‎2007 Jun 13 7:05 AM
Sundar,
In a group there should be atleast two radiobuttons out of which one will get selected by default.
K.Kiran.
‎2007 Jun 13 7:12 AM
Hello Kiran,
In Group 1, RB1 is X . And Group2, RB3 = 'X' by default.
Thanks
Sham
‎2007 Jun 13 7:06 AM
Hi Sundar,
In addition to Anji's answer I would like to add that if it is not related to the first radio button group at all, you should rather use checkbox instead of using the third readio button.
Regards,
Suruchi
‎2007 Jun 13 7:09 AM
Hi,
SELECTION-SCREEN BEGIN OF BLOCK rad1
WITH FRAME TITLE title.
PARAMETERS: r1 RADIOBUTTON GROUP gr1,
r2 RADIOBUTTON GROUP gr1,
r3 RADIOBUTTON GROUP gr1.
SELECTION-SCREEN END OF BLOCK rad1.
reward points if helpful,
Regard's
Raghunath.S
‎2007 Jun 13 7:12 AM
example of coding using multiple radio buttons
In-order for the Radiobutton selection process to initiate the 'AT selection-screen' event you need to add the 'USER_COMMAND' option to the parameter declaration. See code below.
*Code used to Initiate the 'AT selection-screen' EVENT from radiobuttons.
selection-screen begin of block group with frame title text-s04.
parameters: p_sel1 type c radiobutton group sel user-command upd.
parameters: p_sel2 type c radiobutton group sel.
parameters: p_sel3 type c radiobutton group sel.
selection-screen end of block groupGirish