Show Page Numbers on a Multi-Page Report Header

CR-XI (R2)

I have a REPORT HEADER section that shows all the parameters that are entered at runtime.

I have the Page Number “X of Y” in both the REPORT HEADER A and PAGE HEADER sections.

In some cases, these parameter lists can be very long and run to over 3 pages.

This results in the Page Number “1 of Y” appearing at the start of the parameter lists, then nothing on Page 2 and 3 of the parameter lists.

The Page Number “4 of Y” is OK on all other pages, once the Multi-Page REPORT HEADER is completed.

Anyone have a smart way to show the Page Number on each-page of a Multi-Page REPORT HEADER…?

Thanks in advance for the help!


MJRBIM :canada: (BOB member since 2007-03-23)

Try using a variable to show. Might be a bit tricky, but might work too.


muffntuf :us: (BOB member since 2006-01-04)

Oooh, thats a tricky one as the PH isnt a paged section as such. Variables wont work due to page N of M being calculated whileprintingrecords.

The only way I think you could attempt this is size your report header to be as big as youll ever think youll need it, and then put the Page N of M special field at selected intervals in the section. It might take a bit of flicking between design and preview to get it right.

I just tried it on a blank report, made the report header really big in design and then dropped page N of M at the top and then another one about 28 cms (if thats cms on the left) down the page.

It does appear on the second report page in preview, so maybe that`ll work.


ABILtd :uk: (BOB member since 2006-02-08)

You can try this solution that I posted in the SAP forums.

  1. Create an empty group, by creating a formula with:

whilereadingrecords;
“”;

  1. Insert the parameter list into this group header.
  2. Suppress group footer.
  3. Place the special field Page N or M in the page header and it should display Page N or M irrespective of how long the group header is.
  4. Suppress the Report Header.

Sanjay Kodidine :us: (BOB member since 2008-03-19)

Thank you - but it would take putting the variable in two places to make it work. As you say it is a whileprintingrecords function and would need to work that way. But can be done.


muffntuf :us: (BOB member since 2006-01-04)