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 Smartforms...

Former Member
0 Kudos

Hello,

I'm going to get crazy with that page numbers in Smartforms...

I only want to display "Page x / y" using:

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

but on the 10 first pages I get "Page 1 / *", "Page 2 / *" ... "Page 9 / *" and then only I have the real result for the 10th page........

(using Format "1,2,3" and Mode "Increase")

and tried to define some data :

<i>data: w_page type numc2.

move SFSY-FORMPAGES to w_page.</i>

and displaying w_page, but during the execution SFSY-FORMPAGES has the same value as SFSY-PAGE... so I get 1/1, 2/2, 3/3 etc.....

Some help please!!!

Thanks,

Seb

1 ACCEPTED SOLUTION

Former Member
0 Kudos

take a look at this note

sap note: 779492

8 REPLIES 8

Former Member
0 Kudos

Hi,

Your page definition (Page &SFSY-PAGE& / &SFSY-FORMPAGES& )will work. I think your window width is not enough to print complete text. Please increase window width in which you are printing the page info.

Regards,

Lanka

Former Member
0 Kudos

i had a similar problem earlier some time back. I had to apply an sap note for this. I am not sure which one. Please check SAP NOTES for this error if the error still exists.

Former Member
0 Kudos

take a look at this note

sap note: 779492

Former Member
0 Kudos

hisebastien

try Page &SFSY-PAGE& / &SFSY-JOBPAGES&

&SFSY-JOBPAGES& is Total Number of Pages of Print Job

may be this will give correct one.

if it is useful don't forget to reward the points

Regards,

naveen

Former Member
0 Kudos

Former Member
0 Kudos

Hi,

simply use &SFSY-PAGE(Z)& / &SFSY-FORMPAGES(Z)&.It solves.

Thanks & Regards,

Maheswar.A.U.

Intelligroup Asia Pvt Ltd,

Hyderabad

0 Kudos

wonderful,it worked perfectly,Tx.alot as I have been struggling for it for long time.

Thnaks,

Bhaskar

Message was edited by: BHASKAR ADDEPALLI

0 Kudos

Hi,

I had the same issue. I tried the solution given by Maheshwar but it didnt work ... Bhaskar, you have replied that it worked for you. Can you tell me whose solution worked and if possible just put the piece of code here.

Thanks,

Aruna