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: 

ALV . How to remove the sort buttons on toolbar in ALV report?

Former Member
0 Kudos

Hi,experts

As you know, in default case , the alv report will display two sort buttons(ascending ,descending) on its toolbar , So How to remove the sort buttons on toolbar in ALV report?

Thanks for your help .

1 ACCEPTED SOLUTION

Former Member

Guixin,

In the SET_TABLE_FOR_FIRST_DISPLAY, fill the table IT_TOOLBAR_EXCLUDING, with values MC_FC_SORT, MC_FC_SORT_ASC, MC_FC_SORT_DSC.

Regards,

Ravi

4 REPLIES 4

Former Member

Guixin,

In the SET_TABLE_FOR_FIRST_DISPLAY, fill the table IT_TOOLBAR_EXCLUDING, with values MC_FC_SORT, MC_FC_SORT_ASC, MC_FC_SORT_DSC.

Regards,

Ravi

0 Kudos

Hi, Ravi:

What is SET_TABLE_FOR_FIRST_DISPLAY ? form ?

0 Kudos

Guixin,

I thought you were using OO Controls for the ALV report. That is the method which will show the data on the screen.

If you are using the function module REUSE_ALV_GRID_DISPLAY, there is a input parameter IT_EXCLUDING of type SLIS_T_EXTAB. Fill that table as given previously.

Regards,

Ravi

Message was edited by: Ravikumar Allampallam

Former Member
0 Kudos

Hi guixin,

1. Before calling REUSE_ALV_LIST_DISPLAY

2. Write this code :

*----


data : excl type SLIS_T_EXTAB.

data : exclwa type SLIS_EXTAB.

exclwa = '&OUP'.

append exclwa to excl.

exclwa = '&ODN'.

append exclwa to excl.

*----


3. Then while calling the FM,

pass this parameter also .

IT_EXCLUDING = excl

It will work fantastic.

regards,

amit m.