Application Development 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: 

Radio Button

Former Member
0 Kudos
64

hi.

i've given 2 radio buttons in the selection screen.

i want that at start none of them must be selected and on selection on either of them it should call either ALV list or grid display.

5 REPLIES 5

Former Member
0 Kudos
40

hi,

i think its not possible that both radio button not selected...

u have to give default to one of them

dhruv_shah3
Active Contributor
0 Kudos
40

Hi,

Radio Button comes in Group. So if you want that none of them is selected then give separate radio buttons.

for displaying on selection of radio button you can code as

if rbt1 = 'X'.

perform alv_list_display.

else.

perform alv_grid_display.

endif.

HTH

Regards,

Dhruv Shah

Former Member
0 Kudos
40

Hi,

You can not make both inactive.

Use the following code to generate ALV or list .

parameters: p_alv type c radiobutton group grp1 user-command rad,

p_list type c radiobutton group grp1.

at selection-screen.

if p_alv eq 'X'.

*show alv

else.

*show list

endif.

Former Member
0 Kudos
40

This is not possible .At least on of the radiobutton should be assined a default value. Though you don't give the default value first defined radio button will be default.

0 Kudos
40

Hi

Atleast one of the radio buttons has to be defined active as its not possible to deactivate both......

you can do one thing ...create a push button and code in the way that when push button is clicked...the function coresponding to the active radiobutton is performed ie either alv grid or list is displayed..