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: 

No of rows displayed in ALV display

Former Member
0 Kudos
123

Hi All,

In ALV report, how can one determine the number of rows that are displayed?

Please suggest your thoughts.

Regards,

Sandeep.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
81

The number of records that are present in internal table which you are passing to alv will be the no. of records that are displayed in alv.

Best Regards,

Vibha Deshmukh

*Plz mark useful answers

9 REPLIES 9

Former Member
0 Kudos
81

ya u can check it in internal table which u pass to display alv.

u can use sy-dbcnt to cont number of rows in inernal table.

Former Member
0 Kudos
82

The number of records that are present in internal table which you are passing to alv will be the no. of records that are displayed in alv.

Best Regards,

Vibha Deshmukh

*Plz mark useful answers

0 Kudos
81

Hi Vibha,

Its worked but i have one more question , can we adjust the no of record displayed on ALV if the user applies filter to the Displayed report.

If it is possible, please suggest.

Thanks,

Sandeep.

0 Kudos
81

Hi,

If suppose there are 10 entries and user gives filter condition and only 5 entries satisfy the condition,then only those will be displayed.

0 Kudos
81

No , when we filter in ALV that will not be reflected in the internal table

0 Kudos
81

Yes u are right.

I am displaying the "No. of record": which will hold the record to the header of ALV display.

But at start if no of record shows 10 entries and later if the user apply filter then we have 5 entries but will the "<b>No. of record</b>" shown in header part will display 5.

This is my concern.

Thanks.

Sandeep.

Former Member
0 Kudos
81

I think its only possible through finding the no of rows of an internal table for that use sy-tabix to check.

jayanthi_jayaraman
Active Contributor
0 Kudos
81

Hi,

Describe the output table you are passing to display.Then you find the no. of rows.

describe table itab length ln.

0 Kudos
81

Thanks Jayanthi,

Its worked.