‎2008 Jul 09 6:05 AM
Hi Experts,
I have requirement in where in a module pool screen I am creating two Radio-buttons say R1 and R2 under one group.
When I do this the first radio button R1 is by default gettimg checked. What is that I need to do for making secand radiobutton R2 by default getting cheked.....?
Kindly help me out in this aspect.
Regards,
Rama Murthy.P
‎2008 Jul 09 7:18 AM
Hi Dear,
Q: When I do this the first radio button R1 is by default gettimg checked. What is that I need to do for making secand radiobutton R2 by default getting cheked.....?
Ans: 1) In the PBO of the screen you need to set R2 = 'X'.
OR
2) In the TOP include write:
DATA : r1 type c,
r2 type c DEFAULT 'X'.
With Regards,
Rupinder
‎2008 Jul 09 6:07 AM
‎2008 Jul 09 6:12 AM
Sharayu,
Where must I write this default 'X', which you have specified.
Regards,
Ram.
‎2008 Jul 09 6:09 AM
Hi
Please check the names you have given to the radio buttons, in the sense you would have named the second radio button R1 and vice versa.. check the one which is need to be checked and give 'x' for that in select statement.
Regards
Divya
‎2008 Jul 09 6:11 AM
Hi,
u can define like this: R2 radiobutton group RAD default 'X'...
Chk the following link....
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba6de35c111d1829f0000e829fbfe/content.htm
Regards.
‎2008 Jul 09 6:13 AM
Hi,
All my requirement is in a Module-pool screen ( SE51 ) not a Report.
Regards,
Ram.
‎2008 Jul 09 6:12 AM
Hi,
in PBO set value for that second radio button. and remember to keep both radio buttons under one group.
R2 = 'X'.
Modify Screen.
Regards,
SUDHIR MANJAREKAR
‎2008 Jul 09 6:15 AM
in PBO ... make R2 as 'X'
at run timr...
dont consider earlier answer as it was w.r.t selstion screen radio buttons
‎2008 Jul 09 6:17 AM
Sharayu,
CAn you please explain me in detail as how to do that at run time.
If you answer this I will give you 10 points.
Regards,
Ram
‎2008 Jul 09 6:33 AM
‎2008 Jul 09 6:12 AM
‎2008 Jul 09 6:29 AM
try this code
PARAMETERS : r_open TYPE c RADIOBUTTON group r1.
PARAMETERS : r_all TYPE c RADIOBUTTON group r1 default 'X'.
‎2008 Jul 09 7:18 AM
Hi Dear,
Q: When I do this the first radio button R1 is by default gettimg checked. What is that I need to do for making secand radiobutton R2 by default getting cheked.....?
Ans: 1) In the PBO of the screen you need to set R2 = 'X'.
OR
2) In the TOP include write:
DATA : r1 type c,
r2 type c DEFAULT 'X'.
With Regards,
Rupinder
‎2008 Jul 09 7:28 AM
At Screen Painter set two radio button (ZRADIOBUTTON1 and ZRADIOBUTTON2),select bothor and click Edit->Grouping->Radio Button Group->Define.
REPORT Z_TEST_YW.
DATA: OK_CODE TYPE SY-UCOMM,
ZRADIOBUTTON1(1),
ZRADIOBUTTON2(1).
START-OF-SELECTION.
CALL SCREEN '100'.
&----
*& Module STATUS_0100 OUTPUT
&----
text
----
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS '100'.
SET TITLEBAR 'xxx'.
ZRADIOBUTTON2 = 'X'. "set the second radiobutton selected
ENDMODULE. " STATUS_0100 OUTPUT
&----
*& Module USER_COMMAND_0100 INPUT
&----
text
----
MODULE USER_COMMAND_0100 INPUT.
CASE:OK_CODE.
WHEN:'BACK' OR 'EXIT' OR 'CANCEL'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
‎2008 Aug 22 7:29 AM