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

radiobox problem

Former Member
0 Likes
705

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
679

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.

6 REPLIES 6
Read only

Former Member
0 Likes
679

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

Read only

former_member402443
Contributor
0 Likes
679

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

Read only

Former Member
0 Likes
679

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

Read only

Former Member
0 Likes
679

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.

Read only

Former Member
0 Likes
679

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

Read only

Former Member
0 Likes
680

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.