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 reset the page number?

Former Member
0 Kudos

Hi,

I am printing a list report. I am using the sy-pagno variable in the top-of-page for printing. After certain pages, the page number needs to get reset and start printing as '0' from that page again.

How do I achieve this?

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Instead of using sy-pagno call the subroutine from event top-of-page and within this routine define a static variable and increment it by 1 to display the page no. and also write the condition based on what u need to reset it to 0.

1 REPLY 1

Former Member
0 Kudos

Instead of using sy-pagno call the subroutine from event top-of-page and within this routine define a static variable and increment it by 1 to display the page no. and also write the condition based on what u need to reset it to 0.