cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms: total number of pages print as * when pages exceed 10

Former Member
0 Kudos

Hello,

We have a custom smartform (Invoice) wherein we print the page numbers as current page (Total number of pages) using &SFSY-PAGE&(&SFSY-FORMPAGES&).

It prints fine when total number of pages is below 10. When total number of pages goes to 10 or above 10, it prints as 1(), 2()...9(*) from 1st- 9th page. Pages 10 and above are fine.

For eg; If my invoice is 12 pages.

1- 9 pages print as 1(), 2()........9(*)

10, 11, 12 pages print fine as 10(12), 11(12), 12(12).

Has anyone experienced this issue before? Any information on this would be much appreciated.

Thanks in Advance,

Karthik

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

Try like this for your pages:


* Page XX of XXX
Page &SFSY-PAGE& of &SFSY-FORMPAGES(4ZC)&

Regards,

Naimesh Patel

Answers (3)

Answers (3)

raymond_giuseppi
Active Contributor
0 Kudos

As specified before, by default Smartforms reserve a length equal to that of &SFSY-PAGE& (so 1 character before page 10.) so you may use a syntax like &SFSY-FORMPAGES(2)&.

If this solution does not agree to you, look at OSS [Note 588352 - '*' when you output the total number of pages |https://service.sap.com/sap/support/notes/588352]to implement a "late" processing of the window containing the total number of pages.

Regards

Former Member
0 Kudos

Thanks it solved my problem as well!!

Former Member
0 Kudos

Thanks both of you.. It worked.

former_member184657
Active Contributor
0 Kudos

u need to use the following code.

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

to do this u first need to drag and drop the sfsy-pages and sfsy-formpages onto ur text area.

then click the "change field" button and then manually type "(3ZC)" next to formpages.

this will solve ur problem.

regards,

pk