Нота 47035:
Цитата:
Symptom
When printing, all numbers of the multi-digit total page number of a form are not output in the symbol SAPSCRIPT-FORMPAGES. For example, only '2' appears on pages 1 to 9 instead of 23.
The total page number is entered as follows in the form:
0
Additional key words
SAPscript, Symbol, Program icon, SAPSCRIPT-FORMPAGES
Cause and prerequisites
The CONDENSE option cannot be used on the program icon SAPSCRIPT-FORMPAGES (C) without an explicit length specification: This symbol is only replaced with a value after the form has been completely edited, as the total number of pages of a form is first known in the program function END_FORM or CLOSE_FORM.
However, the size of the symbol (number of characters) is reserved correctly when the symbol first occurs, with the current page number. Therefore, only one character is reserved for option C (CONDENSE) on pages 1-9, two characters on pages 10-99, and so on
Solution
Either remove the option C:
Page: &PAGE& of 0
or create a predefined length specification (2 or 3 characters, depending on the number of pages expected):
Page: &PAGE& of 0
т.е. попробовать просто:
Code:
&SAPSCRIPT-FORMPAGES&