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