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

Radio button on Selection Screen

Former Member
0 Likes
987

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

7 REPLIES 7
Read only

Former Member
0 Likes
879

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

Read only

0 Likes
879

Hello Anji,

the 3rd radiobottun is in Block2.

Thanks

Sham

Read only

kiran_k8
Active Contributor
0 Likes
879

Sundar,

In a group there should be atleast two radiobuttons out of which one will get selected by default.

K.Kiran.

Read only

Former Member
0 Likes
879

Hello Kiran,

In Group 1, RB1 is X . And Group2, RB3 = 'X' by default.

Thanks

Sham

Read only

Former Member
0 Likes
879

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

Read only

Former Member
0 Likes
879

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

Read only

Former Member
0 Likes
879

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 group

Girish