Application Development and Automation 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: 
Read only

Page numbers in sap scripts

Former Member
0 Likes
788

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

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
Read only

Former Member
0 Likes
748

try

SAPSCRIPT-jobpages

this variable gives the total pages

Read only

Former Member
0 Likes
748

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.

Read only

Former Member
0 Likes
748

&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&

Read only

Former Member
0 Likes
748

sfsy-page ->current page

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

Read only

Former Member
0 Likes
748

use this....

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

&PAGE& / &SAPSCRIPT-FORMPAGES&

Regards

vijay

Read only

0 Likes
748

hi,

Do this way..

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

Read only

Former Member
0 Likes
748

Hii

For page number the code is

/ ^$PAGE d_page_num