Symptom:
When displaying the total number of pages in the SAPScript form, if the total pages are more then 10 pages, the total number of pages display is incorrect:
For example, the result having 16 pages with the script :
Page: &PAGE& OF &SAPSCRIPT-FORMPAGES(C)&
When scrolling the Page 1 to 9, the result shown:
Page : 1 of 1
Page : 2 of 1
Page : 3 of 1
When scrolling the Page 10 above, the result shown:
Page : 10 of 16
Page : 11 of 16
Page : 12 of 16
Reason:
When using the &SAPSCRIPT-FORMPAGES(C)& without specify the length, SAP will compress the total number of pages using the length of the &PAGE& variable.
Solution:
1) Specify the length:
&SAPSCRIPT-FORMPAGES(3)&
2) Not using (C) option:
&SAPSCRIPT-FORMPAGES&
No comments:
Post a Comment