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: 

Smartforms page no

Former Member
0 Kudos

hi gurus,

i have a problem in displaying my page no.

Page No. &sfsy-page& of &sfsy-formpages&

when &sfsy-page& is a single digit the &sfsy-formpages& displays *(asterisk)

ex. 1 of * -> where * is 31,

however when &sfsy-page& is two digits the &sfsy-formpages& displays properly.

ex. 10 of 31.

can you help me on this one?

<<Do not offer points>>

thanks,

eo

Edited by: Matt on Feb 28, 2009 7:22 PM

1 ACCEPTED SOLUTION

I355602
Advisor
Advisor
0 Kudos

Hi,

Use:-

&SFSY-PAGE& for page number

and &SFSY-FORMPAGES(3ZC)& for total pages.

So take Page: &SFSY-PAGE& of &SFSY-FORMPAGES(3ZC)&

Hope this helps you.

Thanks & Regards,

Tarun

6 REPLIES 6

Former Member
0 Kudos

&sfsy-page(3)& of &sfsy-formpages(3)&

0 Kudos

thanks but it seems to have a problem in total pages

it displays

1 of 013.

how can i remove 0?

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

This problem happens every time to every ABAP developer )

Define the window as "Finals Window" & then try like this:

Page No. &sfsy-page(CZ)& of &sfsy-formpages(CZ)&

BR,

Suhas

Former Member
0 Kudos

Hi,

Suhas is right.

See this recent thread

Check this SAP note as well

Note 588352 - '*' when you output the total number of pages

Regards

I355602
Advisor
Advisor
0 Kudos

Hi,

Use:-

&SFSY-PAGE& for page number

and &SFSY-FORMPAGES(3ZC)& for total pages.

So take Page: &SFSY-PAGE& of &SFSY-FORMPAGES(3ZC)&

Hope this helps you.

Thanks & Regards,

Tarun

Former Member
0 Kudos

Hi

it is the problem that can be solved by condensing the total formpages.

You can write it in this way that condenses the total number of pages.

&SFSY-PAGE& of &SFSY-FORMPAGES(3ZC)&

This defnitly will solve your problem

regards

Hareesh