Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Page numbers in sap scripts

Former Member
0 Kudos

Hi,

Is it possible to give page numbers as 2/11 , 3/11 etc..in sp scripts?

Ex:

Suppose total number of pages as 11.

So first page should be numberd as 1/11.

second page as 2/11 and so on.

Thank you

7 REPLIES 7

Former Member
0 Kudos

try

SAPSCRIPT-jobpages

this variable gives the total pages

Former Member
0 Kudos

Hi Madhu,

I think you can do it like this:

In the editor, goto the menu 'Insert'.Select Symbols->System SYmbols.You can select the required symbols from there...

In your script , just write <b>&page& </b> and it will give u the particular page number.

You can select SAPSCRIPT and take FORMPAGES variable to get the number of pages...

Regards,

SP.

Former Member
0 Kudos

&page& prints the current page no

&sapscript-formpages& prints the no of pages written to the form

&sapscript-jobpages& prints the no of pages written to the spool list

You can write:

/: &page& / &sapscript-formpages&

former_member181962
Active Contributor
0 Kudos

sfsy-page ->current page

Concantenate sfsy-page '/' sfsy-JOBPAGES into v_var.

former_member188685
Active Contributor
0 Kudos

use this....

in the window which you want to show the page numbers...

&PAGE& / &SAPSCRIPT-FORMPAGES&

Regards

vijay

0 Kudos

hi,

Do this way..

<b>&PAGE& / &SAPSCRIPT-FORMPAGES&</b> to print in that format

Former Member
0 Kudos

Hii

For page number the code is

/ ^$PAGE d_page_num