2008 Feb 18 2:51 PM
Hello Guru's,
i've got a Report which lists some Employes. The Data is displayed in an ALV. The Header of this ALV displays the Count of Employes displayed.
My Problem: Is there any posibility to refresh the Employee Count in the Header when maybe a Filter on the ALV is set and the displayed Count of Employes changed?
Regards
2008 Feb 20 7:23 AM
Try implementing the AFTER_USER_COMMAND event of CL_GUI_ALV_GRID class.
In its implementation checked if the filter was selected, determine the number of the rows filtered.
There is method get_filtered_entries in class cl_gui_alv_grid which returns a table of all entries hidden by the filter. This will help you in determining the number of records hidden by the filter and so you can calculate the number of records shown as a result of filter.
Hope this helps.
Reward points if helpful.
Thanks,
Balaji
Edited by: Balaji Ganapathiraman on Feb 20, 2008 12:57 PM
Hello Guru's,
i've got a Report which lists some Employes. The Data is displayed in an ALV. The Header of this ALV displays the Count of Employes displayed.
My Problem: Is there any posibility to refresh the Employee Count in the Header when maybe a Filter on the ALV is set and the displayed Count of Employes changed?
Regards
2008 Feb 20 7:23 AM
Try implementing the AFTER_USER_COMMAND event of CL_GUI_ALV_GRID class.
In its implementation checked if the filter was selected, determine the number of the rows filtered.
There is method get_filtered_entries in class cl_gui_alv_grid which returns a table of all entries hidden by the filter. This will help you in determining the number of records hidden by the filter and so you can calculate the number of records shown as a result of filter.
Hope this helps.
Reward points if helpful.
Thanks,
Balaji
Edited by: Balaji Ganapathiraman on Feb 20, 2008 12:57 PM
2008 Feb 20 1:21 PM
Hy Balaji,
your tip workes successfully. Thanks for this! Now i got another question: The method returns a hash table. Is there some posibility to compare the values of the hashtable with the values in my internal table?
Commands like loop are not allowed on hashed tables.
Regards