06-29-2007 7:41 AM
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
06-29-2007 7:56 AM
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
06-29-2007 8:03 AM
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?)
06-29-2007 8:09 AM
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
06-29-2007 8:51 AM
i used the standard pf-status. i can't understand why its not working.
06-29-2007 9:15 AM
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