cancel
Showing results for 
Search instead for 
Did you mean: 

Find out number of rows of an ALV table

daniel_humberg
Contributor
0 Kudos

I would like to implement a generic method that returns the number of lines that are shown in an ALV table. Is this possible? Can I retrieve this information from the ALV model, or do I have to check the context for this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Daniel,

I suggest you to do it using the context since you can change the number of lines in the ALV using filters.

Regards,

daniel_humberg
Contributor
0 Kudos

Is there a dynamic way to find out, which context node is currently bound to the ALV?

Former Member
0 Kudos

Hi Daniel,

The iwci_salv_wd_table interface (the interface used which implements the method GET_MODEL), also has the method WD_GET_API, which returns a reference to IF_WD_CONTROLLER. This interface implements methods which will return the context information.

Hope this helps

Regards,

Wenonah

Answers (0)