04-25-2007 6:19 AM
How to display <b>total number of line items</b> at the bottoms using the FM: REUSE_ALV_GRID_DISPLAY.
Say ... I have 3 line items displayed in the output. Bottom iot should have the count of line items.
NOTE: I am not asking about SUM of Numerical values.
Thanks in advance.
04-25-2007 6:26 AM
Hi Mohan,
Register the End_of_list event and display with REUSE_ALV_COMMENTRY_WRITE inforamtion. The information is normal logic only just describe you internal table and pass that informaton to the above FM's. This will be displayed at the end of the List. If suppose you take END_OF_PAGE then while printing it will be triggered for each and every page . Logically its not correct. So go ahead with END_OF_LIST event only.
Warm Reards,
Vijay
04-25-2007 6:23 AM
Hi,
USE describe itab lines n.
write in the 'END-OF-PAGE' event , total no of lines.
Regards,
Sonika
04-25-2007 6:24 AM
Hi Mohan,
For that you can do one thing....
you can just count the line items of the internal table from which you are displaying data using statement...
DESCRIBE TABLE ITAB LINES INT.
and then you should display the value of variable INT at the end in END-OF-PAGE event.
Reward Points if helpful,
Regards,
Tejas
04-25-2007 6:26 AM
Hi Mohan,
Register the End_of_list event and display with REUSE_ALV_COMMENTRY_WRITE inforamtion. The information is normal logic only just describe you internal table and pass that informaton to the above FM's. This will be displayed at the end of the List. If suppose you take END_OF_PAGE then while printing it will be triggered for each and every page . Logically its not correct. So go ahead with END_OF_LIST event only.
Warm Reards,
Vijay