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: 

How to display page numbers on alv list

0 Kudos
167

I want to display page numbers on the alv list.

Could you please provide the sample code or any standard report.

I have tried all the ways but still did not work.

And also I can see link but here missing some code declare the types.

http://saptechnical.com/Tutorials/ALV/PageNumbers

Like st_final and all .

Kindly help me to print

Thanks.

3 REPLIES 3

Jelena
Active Contributor
0 Kudos
73

Post the ways you've tried and what exactly "didn't work".

Also - why do you need this? I don't see what's the significance of the page numbers in a report (forms are a different matter). Are people physically printing the reports? Why? I haven't seen anyone in the office actually print a report in at least 5 years.

DoanManhQuynh
Active Contributor
0 Kudos
73

your mentioned link actually here:

https://wiki.scn.sap.com/wiki/display/ABAP/Printing+ALV+along+with+Page+Numbers

its just write sy-pagno in the event top of page. but as far as I know, page number only dislay correctly when you print or print preview the list.

0 Kudos
73

Hi Doan monh,

Thanks for the update.

Yes your correct, I need to print page numbers when we click on the print preview.

We can see that there are a lot of declaration missing like st_final...in above mentioned link.

Here I wanted to know what type should we use for st_final.

Thanks for the help.