‎2007 Dec 23 10:58 AM
hi all:
i'm new abap developer. imeet aproblem with the radiobox, it is appear in the screen checked but i'm cleared it by the code and it is not unchecked.
(i.e. data: radio1(1) type c,
radio2(1) type c.
at the process before screen output.
module scrout out.
.................
endmodule.
module scrin input.
clear: radio2.
radio1 = 'x'.
endmodule.
///////////////
the problem with me is why not radio1 only appear checed ??
plz help me.
thanx.
Suneela.
‎2007 Dec 29 7:52 AM
Hi ,
You will need to group that radiobuttons so that SAP knows they are linked together. To do this using the grahical layout editor simply select all the radiobuttons and then right click on them, Now choose define group. Once you have done this you should not need any of the "clear" or "='X'" statements SAP should control it all for you.
hope this helps
Reward points if found helpful...
Venkoji Babu.
‎2007 Dec 23 11:30 AM
you've to group those radio-buttons. those are not grouped. as per the properties one must be checked in a group. they r working as different entity. so, this is happening. group them from screen painter.
Reward if useful
Regards
ANUPAM
‎2007 Dec 24 4:49 AM
Hi Suneela,
I check your code.
Just change the radio1= 'x' to 'X' . Then check your program.
(i.e. data: radio1(1) type c,
radio2(1) type c.
at the process before screen output.
module scrout out.
.................
endmodule.
module scrin input.
clear: radio2.
radio1 = 'X'.
endmodule.
Reward Points, if useful.
Regards,
Manoj Kumar
‎2007 Dec 24 5:23 AM
Hi ,
group the radio button and then try . its onle heppened only due to non grouping of radio button .
you can try this code :
PARAMETERS: R1 RADIOBUTTON GROUP RAD1,
R2 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
R3 RADIOBUTTON GROUP RAD1,
S1 RADIOBUTTON GROUP RAD2,
S2 RADIOBUTTON GROUP RAD2,
S3 RADIOBUTTON GROUP RAD2 DEFAULT 'X'.
regards
Deepak
‎2007 Dec 24 5:40 AM
Hi Suneela,
If you are desingin radio button on screen in SE51 make sure that your radio buttons are grouped. There is a option in SE51 sceen select two radio buttons and group them.
secondly, radio1 = 'x'. dont use small letter in Single quotes this is very important note in SAP. When u use single quotes the sap will become case specific. so use 'X'.
<b>reward if useful</b>
Regards,
sunil kairam.
‎2007 Dec 24 5:53 AM
Hi Praveen,
I think you have not grouoped the radio buttons.
Please check with that.
For more info on Radio Buttons please chk the link
[Checkboxes and Radio Buttons with Function Codes|http://help.sap.com/saphelp_nw04/helpdata/en/e6/83a0375b5dd003e10000009b38f8cf/content.htm]
Regards,
Chandru
‎2007 Dec 29 7:52 AM
Hi ,
You will need to group that radiobuttons so that SAP knows they are linked together. To do this using the grahical layout editor simply select all the radiobuttons and then right click on them, Now choose define group. Once you have done this you should not need any of the "clear" or "='X'" statements SAP should control it all for you.
hope this helps
Reward points if found helpful...
Venkoji Babu.