cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove a Sort button from ALV List

Former Member
0 Kudos

Hi Experts,

How to remove sort button from ALV List.

I have requirement where I need to remove the sort button from ALV list.

Kindly give me useful clues.

Higher points will be awarded for the useful inputs.

Thanks in Advance,

Dharani

Accepted Solutions (0)

Answers (2)

Answers (2)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can using the I_EXCLUDING parameter to exclude function codes.

Regards,

RIch Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

For example...........




  data: iexclude type slis_t_extab.
  data: xexclude like line of iexclude.

  xexclude-fcode = '&ODN'. append xexclude to iexclude.
  xexclude-fcode = '&OUP'. append xexclude to iexclude.

  call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            it_fieldcat              = ifc
            it_excluding             = iexclude          "<--  Right HERE
       tables
            t_outtab                 = ialv
       exceptions
            program_error            = 1
            others                   = 2.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi

Check this link