START_FORM resetting page number
Hi, my SAPScript program is using function modules START_FORM / END_FORM to print the totals page which is of a different format. Somehow, using START_FORM resets the page number. So I end up with having "Page 1 of 1" in the totals page.
Below is an example.
Report with a total of 4 pages - 3 pages of details and 1 separate page for totals. So page numbering is:
Page 1 of 3
Page 2 of 3
Page 3 of 3
--> END_FORM is called and then START_FORM is called
Page 1 of 1
The above paging is incorrect. Output must be:
Page 1 of 4
Page 2 of 4
Page 3 of 4
Page 4 of 4
How can this be corrected? Please help....