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: 

How to print pageno ex: 1/10, 2/10.... in layouts

Former Member
0 Kudos
232

hi guys,

how to print the page no in layout?please provide solution..

examle: 1/10, 2/10...

7 REPLIES 7

Former Member
0 Kudos
187

Hello,

&Page&/&SAPSCRIPT-FORMPAGES&

Hope this helps,let me know if u face any problem

Regards

Former Member
0 Kudos
187

In the page give Mode as INC

and in textelements of the window give as...

use &formpages& to get the total number of pages..

0 Kudos
187

<b>page:&Page&/&SAPSCRIPT-FORMPAGES&</b>

Former Member
0 Kudos
187

Hi Joseph,

You can use -

&PAGE&/&SAPSCRIPT-FORMPAGES&

Regards,

Saurabh

Former Member
0 Kudos
187

&PAGE& : Stores current page no

&SAPSCRIPT-FORMPAGES& : Stores total no of pages.

so you can use like,

  • &page& / &SAPSCRIPT-FORMPAGES&

Regards

Srikanth

Former Member
0 Kudos
187

Hi,

Is it for a simple report? Or for a Smartform?.

For <b>Report</b> you can write system variable in a event

TOP OF PAGE :

sy-pagno

to see current page number and function DISPLAY_PAGENUMBER to count total pages using

lines.

While for <b>Smartform</b> :

You can write in a text element

PAGE &sfsy-page& OF &sfsy-formpages(4ZCR)&

( so you'll see PAGE 1 OF 10 for ex.)

Former Member
0 Kudos
187

TO PRINT PAGE NO &PAGE& AND TO PRINT NO OF PAGES &FORMPAGES&