cancel
Showing results for 
Search instead for 
Did you mean: 

a simple question on page number in sapscript

Former Member
0 Kudos

hi all,

i'm using the following syntax to print page number at header level, however it alwasy comes as PAGE 1 OF total-page. That means if i have total 5 pages,

it will print PAGE 1 OF 5 for all the pages.

please advise where is the problem. thanks.

<s>Page &PAGE& OF &SAPSCRIPT-FORMPAGES&</>

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

i got it now. i have to set the counter to INC in the FIRST PAGE. thanks.

Former Member
0 Kudos

the field PAGE that you are using is it a standard firld??

or if it is one of fields defined by ou.. are you incrementing the field value for new page??

Former Member
0 Kudos

hi, the &PAGE& i'm using is a system field i think. i thought its incrementing itself automatically?

Former Member
0 Kudos

Hi

use like this &page& of &TTXSY-NEXTPAGE&

or use this &SAPSCRIPT-FORMPAGES&

i think it will helps u.

<b>reward is suefull</b>

Former Member
0 Kudos

hi, nothing comes when i use &TTXSY-NEXTPAGE&.

&SAPSCRIPT-FORMPAGES& is actually the total pages number i'm using.