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

Former Member
0 Likes
1,072

hi all,

i need only one radio button in my selection screen.please tell me how to write without using group.

PARAMETERS : x_bukrs RADIOBUTTON GROUP rb1.

thanks in advance.

11 REPLIES 11
Read only

Former Member
0 Likes
1,048

Hi,

Its not possible.

Regards,

Bhaskar

Read only

0 Likes
1,048

One way out is create two and disable 1

Read only

Former Member
0 Likes
1,048

hi

minimum u must have 2 radio button

else u can opt for checkbox .

Cheers

Snehi

Read only

Former Member
0 Likes
1,048

Hi

what is the purpose of using single radio button on the selection screen.

Better to go for check box.

Read only

Former Member
0 Likes
1,048

Hi,

I think you can not craete single radiobutton, because you always have to assign it to a group when you declare it.

But you can declare single checkbox.

Regards,

Sujit

Read only

Former Member
0 Likes
1,048

Hii!

It is not possible to have only one radiobutton in radio button group. But u can do it by programming. Just have a look at this code


REPORT z_sdn.

PARAMETERS:
  p_num RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND abc MODIF ID abc,
  p_char RADIOBUTTON GROUP rad1 MODIF ID xyz.


AT SELECTION-SCREEN OUTPUT.
  IF p_num EQ 'X'.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'ABC'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'XYZ'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

Regards

Abhijeet

Read only

Former Member
0 Likes
1,048

Some thing like this possible..


REPORT  ztest_radion.
PARAMETERS : x_bukrs RADIOBUTTON GROUP rb1 DEFAULT 'X',
             x2 RADIOBUTTON GROUP rb1.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-name = 'X2'.
      screen-active = 0.
      screen-invisible = 0.
      modify screen.
    ENDIF.
  ENDLOOP.

You can define 2 , but display only one.

Read only

Former Member
0 Likes
1,048

One solution is only threre. Create a Screen in screen painter with one radio button

rgds

rajesh

Read only

Former Member
0 Likes
1,048

Hi sai latha,

Radiobuttons itself means selecting between more than one option. So, single radiobutton has no meaning and It is not possible to have single radiobutton on the selection screen.

If you want to have single selection then go for checkbox.

Regards,

Sravanthi

Read only

Former Member
0 Likes
1,048

Hi,

You cannot declare a single radio button, always radiobutton have to be two minimum , its like either or, if you want one than go for a check box.

This is not possible

PARAMETERS : x_bukrs RADIOBUTTON GROUP rb1.

have to be mininum like this:

PARAMETERS : x_bukrs RADIOBUTTON GROUP rb1.
PARAMETERS : x_bukrs1 RADIOBUTTON GROUP rb1.

With luck,

Pritam.

Read only

Former Member
0 Likes
1,048

Hi ,

It absolutely makes no sense to have only One Radio Button.

See if you select the Radio Button , then there is no option for you to Deselect it.

Its always advisable to have Check Box instead of Radio Button.