cancel
Showing results for 
Search instead for 
Did you mean: 

Page numbering in scripts

Former Member
0 Kudos

Hi,

I am working on a script program.The issue is the print preview is showing that there are 16 pages but the page numbering in the form displayed only one digit. Total page should allow 2 digits of values.

Pages 1 through 9 show as follows with the 1st # changing with each page, but showing 1 as total pages.

Page 9 0f 1

Once the 1st page number goes over to 2 digits then the paging states:

Page 10 of 16

The total pages number should always be 16 even for pages 1 through 9.

How can I fix this issue.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi ,

in some case sfsy-formpages will not work.

instead use sfsy-jobpages(3zc).

.

Former Member
0 Kudos

Hi,

Thank you very much.The problem is solved.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

It could be a issue related to lack of space, seems wierd considering then a longer text of 10 or 16 should have become even more nonsense.

However, try to expand the window in which you are displaying the page number(s) and/or reduce the tab spacing before the text Page. Also, in the PAGE and FORMPAGE variables add (C), to compress the fields.

Cheers,

Aditya

Former Member
0 Kudos

Hi,

Try like this:

PAGE &PAGE& OF &SAPSCRIPT-FORMPAGES&

Regards,

Bhaskar

Former Member
0 Kudos

Hi,

This code is already there in my program.When I debug the script it is showing same value for both &PAGE& and &SAPSCRIPT-FORMPAGES&.But in the print preview it is showing 1 of 1,2 of 1,3 of 1 ...............9 of 1.From page 10 it is showing normally like 10 of 16,11 of 16..........16 of 16