cancel
Showing results for 
Search instead for 
Did you mean: 

sapscript page number

Former Member
0 Kudos

Hello i'm trying to put the page number on a sapscript form, but it's not working.

Here is my source code:

/ &PAGE& / &SAPSCRIPT-FORMPAGES&

I have tried to put Y4 instead of / in the beginning but i have no results.

Thanks a lot.

Jon

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

HI,

AS &PAGE(R)& OF &SAPSCRIPT-FORMPAGES(R)&

Former Member
0 Kudos

Below is the desription of script page variables

&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 A of B for your output.

&SAPSCRIPT-JOBPAGES&:

This field contains a number representing the total number of pages of all forms contained in the currently formatted print request, in other words, of all forms created using the OPEN_FORM, START_FORM.. ENDFORM, START_FORM.. END_FORM,..., CLOSE_FORM function modules.

YOu can use it like

&page& of &SAPSCRIPT-FORMPAGES& or &page& / &SAPSCRIPT-FORMPAGES&

Former Member
0 Kudos

Many times in the old sapscript the page window is not printed on the first page.

because that window is not on the first page

other possiblity. The window is to small. try to resize it (make it bigger)

success

Gr., Frank

former_member585865
Contributor
0 Kudos

Hi,

&PAGE& of &SAPSCRIPT-FORMPAGES(Z)&

it should work just check by removing / in your form.

Former Member
0 Kudos

Hi,

Try &SAPSCRIPT-JOBPAGES& instead of &SAPSCRIPT-FORMPAGES&

&PAGE& / &SAPSCRIPT-JOBPAGES&..

The value of &SAPSCRIPT-JOBPAGES& will not be displayed in the print preview..but will be displayed on Printouts.

former_member203305
Active Contributor
0 Kudos

Hi

try this way


Page: &SFSY-PAGE&/&SFSY-FORMPAGES&</>

Regards.