2008 Mar 27 11:20 AM
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.
2008 Mar 27 11:28 AM
hi,
i think its not possible that both radio button not selected...
u have to give default to one of them
2008 Mar 27 11:28 AM
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
2008 Mar 27 11:31 AM
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.
2008 Mar 27 11:35 AM
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.
2008 Mar 27 11:40 AM
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..