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: 

SORT AND FILTER FIELDS DISPLAY

Former Member
0 Kudos

Hi,

I am working on an ALV. I need to display the sort and filter fields in an ALV Report so that the user can sort it or filter it.

I've already declared g_variant type disvariant and called the necessary function modules such as REUSE_ALV_VARIANT_DEFAULT_GET, REUSE_ALV_VARIANT_EXISTENCE and 'REUSE_ALV_VARIANT_F4' but there are still no icons displayed.

Can anyone help me on this?

Thanks in advance.

Regards,

BELEN

5 REPLIES 5

raymond_giuseppi
Active Contributor
0 Kudos

Did you change the display status in form (I_CALLBACK_PF_STATUS_SET) ?

Which value did you give to i_save ?

Did you put code in IT_EXCLUDING or in (I_CALLBACK_PF_STATUS_SET) form?

Did you fill the calling program name in IS_VARIANT, DISVARIANT structure ?

Regards

0 Kudos

Hi Raymond,

I used i_save = 'A',

i didn't use it_excluding and i did fill the calling program name is_variant.

What do you mean by changing the display status in form (i_callback_pf_status_set?)

0 Kudos

Did you use the standard display (with the icons sort and filter) or a specific PF-STATUS with specific icon for your application.

IF yes, you (or one of you colleagues) have copied the standard status to your program and add/remove some icons;maybe destroying some icons.

Regards

0 Kudos

i used the standard pf-status. i can't understand why its not working.

0 Kudos

Coul you try to fill parameter it_sort to test

  ADD 1 TO ls_sort-spos.
  ls_sort-fieldname = 'KOKRS_LONG'.
  ls_sort-up = 'X'.
  ls_sort-subtot = 'X'.
  APPEND ls_sort TO gt_sort.

Regards