cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript page numbering

Former Member
0 Kudos

Hi Everyone,

I have been trying to print page numbers on the script in this format.

Page &PAGE& of &SAPSCRIPT-FORMPAGES&

When i debus the script, i realize that the field &SAPSCRIPT-FORMPAGES& is picking only 1 page, so on each page i am getting 1 of 1.

How do i rectify this.

I have 4 pages.

Thank you,

Deepthi

Points will be rewarded

Accepted Solutions (0)

Answers (5)

Answers (5)

0 Kudos

It must automatically incremented  after the new page is created... are you sure u have the  next

page generated...

Former Member
0 Kudos


Hello,

Use <b>PAGE &page& OF &SAPSCRIPT_JOBPAGES(3C)&</b>

Florian
Active Contributor
0 Kudos

Ansh 1,

this question is old, very old. 2006! Please work through that blog, it will help you for future posts and response:

~Florian

Former Member
0 Kudos

Use the SY-PAGNO system variable for ABAP

and use &PAGE& for SAPScript.

Former Member
0 Kudos

Hi Deepthi,

I'm sure you must have set the page property of

Page Counter:-

Mode START

Change it to

Page Counter:-

Mode INC

Regards

Amit Vaidya

Former Member
0 Kudos

Hi

Don't worry!

The system can know the right number of page only at the end, so you should see the result after printing the document

Max

Former Member
0 Kudos

Max,

I ran that but it never picks it up. Is there any other way i can do this??

Thanks in advance

Deepthi

Former Member
0 Kudos

Hi

Where have you inserted the statament? In which window?

Max

Former Member
0 Kudos

Hi ,

I have created a window called PAGENO. I copied this in all the pages and then i put this code in that window in 1 st page.

Is there something like a subroutine i could use.

Thanks

Deepthi

Former Member
0 Kudos

Hi

No! It seems all is ok, from SAP help:

&SAPSCRIPT-FORMPAGES&:

This field contains a number representing the total number of pages of the currently formatted form (any output between START_FORM and END_FORM). The page counter mode (START, INC, HOLD) of the individual pages is ignored. You can use this symbol to formulate information like

‘Page x of y’ for your output.

Max