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: 

Get the number of displayed rows in an ALV on the App. Server

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

Thank you very much for the quick help!