Show TOC

SAPscript: Total number of pages

Description

From Release 3.0, SAPscript allows you to output the total number of pages on any output page:

2 new system symbols (note upper case) were therefore introduced:

Examples:

Page &PAGE& of &SAPSCRIPT-FORMPAGES(C)&
Specifies the current page number and total page number. The additional specification (C) outputs the symbol in a compressed form, that is the leading blanks are omitted in the 4-character output (default).

Number of all output pages: &SAPSCRIPT-JOBPAGES(C)&
Outputs the total number of output pages. Caution: When using this symbol, all output pages must be held in the main storage so that the total page number can be inserted at the end of the output. Larger outputs can affect performance.