2006 Oct 09 6:17 AM
Hi All,
In ALV report, how can one determine the number of rows that are displayed?
Please suggest your thoughts.
Regards,
Sandeep.
2006 Oct 09 6:21 AM
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
2006 Oct 09 6:19 AM
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.
2006 Oct 09 6:21 AM
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
2006 Oct 09 10:33 AM
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.
2006 Oct 09 10:35 AM
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.
2006 Oct 09 10:37 AM
No , when we filter in ALV that will not be reflected in the internal table
2006 Oct 09 11:15 AM
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.
2006 Oct 09 6:21 AM
I think its only possible through finding the no of rows of an internal table for that use sy-tabix to check.
2006 Oct 09 6:24 AM
Hi,
Describe the output table you are passing to display.Then you find the no. of rows.
describe table itab length ln.
2006 Oct 09 6:34 AM