cancel
Showing results for 
Search instead for 
Did you mean: 

Pagecount: problem with larger documents

Former Member
0 Kudos

Hi,

To print the pagecount I print &SFSY-PAGE&/&SFSY-JOBPAGES& on every page. This works for smaller documents (2-3 pages) but if I have larger documents (12-15 pages) it will print 1/, 2/, 3/, 4/ etc untill close to the end where it will print 12/13, 13/13 correctly.

Anyone had this issue before?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I never encountered this type of issue. Did you try this way:

😕 &page& of &SAPSCRIPT-FORMPAGES&

You can even use counter and initialize that on every trigger on page.

Edited by: K.Manas on Jan 5, 2011 3:35 PM

Former Member
0 Kudos

Sorry forgot to mention this is a SmartForm issue.

If I use a counter I can only print this value on the last page right? I can't post total amount of pages on first page this way.

Former Member
0 Kudos

Hi,

I think you should specific a length option for field, just like:


&SFSY-PAGE(4ZC)& / &SFSY-FORMPAGES(4ZC)&
"4: set length to 4
"Z: Suppresses leading zeros in numbers
"C: This effect corresponds to that of the ABAP statement CONDENSE

Please try,

Thanks