10-01-2009 10:44 AM
Hi there,
I have an ALV Grid table on a dynpro (classical no WD). I allow the user to filter the data in the ALV. Now, I'm looking for a solution how I can get the number of displayed rows on the application server after filtering the data in the ALV on the presentation server. Are there any events or methods which can be used for this?
Thanks in advance and regards,
Martin
10-01-2009 10:51 AM
Hi
But you're speaking about classical ALV grid or OOA ALV?
In the classical u can use the event TOP_OF_LIST, in the OOA u can use the event AFTER_USER_COMMAND in order to get the value of the fileters and count the lines will be displayed.
Max
10-01-2009 10:51 AM
Hi
But you're speaking about classical ALV grid or OOA ALV?
In the classical u can use the event TOP_OF_LIST, in the OOA u can use the event AFTER_USER_COMMAND in order to get the value of the fileters and count the lines will be displayed.
Max
10-01-2009 10:54 AM
Hi Max,
thanks for your answer. I'm talking about ALV OO.
If I understood you right, I can just get the filter criteria and afterwards I can filter my internal table on the app. server in order to count how many rows are displayed, right?
Thanks and regards,
Martin
10-01-2009 11:00 AM
Hi
Yes you're right
The methods GET_FILTERED_ENTRIES and GET_FILTER_CRITERIA are available in class CL_GUI_ALV_GRID, probably the method GET_FILTERED_ENTRIES is good for you: it should retunrs all index of the records will be displayed
Max
10-01-2009 11:03 AM