cancel
Showing results for 
Search instead for 
Did you mean: 

Number of Pages in SAPSCRIPT

Former Member
0 Kudos

Hello Guys

i have a problem with numer of pages in SAPSCRIPT.

In SAPSCRIPT code i have:

&PAGE&/&SAPSCRIPT-FORMPAGES&

any way it doesn't work, for example when i have 3 pages it print always 1 / 3 also on page 2 and 3.

Do you know how it calculate these pages? maybe there is some setting or parameters in open_form or something similar????

please let me know

thanks in advance

Boris

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1.Set the pages>page counter> mode as INC.

All these are script related:

&DATE& Currentdate

&DAY& Day

&MONTH& Month

&YEAR& Year

&TIME& Time of the day

&HOURS& Hours

&MINUTES& Minutes

&SECONDS& Seconds

&PAGE& Page

&NEXTPAGE& Next page number

&SPACE& Blank

&ULINE& Underline

&VLINE& Vertical line

&NAME_OF_MONTH& Name of the Month

&SAPSCRIPT-FORMPAGES& Total number of pages in currently formatted layout set

&SAPSCRIPT-JOBPAGES& Total number of pages in currently formatted print request

Regards,

Shiva.

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

The system symbol &page& will display the page number on each page.

The table work area SAPSCRIPT contains fields, such as SAPSCRIPT-DRIVE, SAPSCRIPT-FORMPAGES and SAPSCRIPT-JOBPAGES that can be used as program symbols.

To get the number of pages If you use a single form for the driver program then use &SAPSCRIPT-FORMPAGES&. If you have multiple forms then to get total number of pages use &SAPSCRIPT-JOBPAGES&.

Reward.

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

increment page counter

in pages give the counter as inc

Regards,

Raj.

prasanth_kasturi
Active Contributor
0 Kudos

hi,

use like this

&PAGE&/&FORMPAGES&

you will get the required o/p

reward if helpful

regards

prasanth

Former Member
0 Kudos

Hi,

SAPSCRIPT-FORMPAGES will take care means it will give the count of the total pages in any sapscript.

Thanks

Sarada