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: 

REUSE_ALV_GRID_DISPLAY

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

former_member632991
Active Contributor
0 Kudos

Hi,

USE describe itab lines n.

write in the 'END-OF-PAGE' event , total no of lines.

Regards,

Sonika

Former Member
0 Kudos

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

Former Member
0 Kudos

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