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: 

SFSY-FORMPAGES not displayed in XSF output

Former Member
0 Kudos

I am trying to display a smartform as an html output using XSF output option. However, I am unable to display the total no. of pages. I am using SFSY-FORMPAGES to display Page x of y.

Does anybody have a suggestion to solve this issue? We are in WebAS 620.

Thanks

5 REPLIES 5

Former Member
0 Kudos

Hi

Use the command &SFSY-PAGE(4Z)&/SFSY-FORMPAGES(4Z)&. This will solve your problem.

Thanks

Former Member
0 Kudos

Sorry! It still doesn't work. It works fine on normal printout and PDF output but not in XSF output.

Former Member
0 Kudos

Have a look at program SF_XSF_DEMO.

Rob

0 Kudos

I did take a look at that example program but interestingly the output created by the program does not have the total number of pages either.

THis is what I am getting

Page 2 / Please visit us in the Web: www.sap.com

0 Kudos

This is the generated XML code

- <window name="PAGE" page="NEXT" page-id="001">

- <text name="PAGE" style="SF_XSF_DEMO1" lang="EN">

- <p name="AS">

Page

<sym name="SFSY-PAGE">2</sym>

/

<sym name="SFSY-FORMPAGES" />

</p>

</text>

</window

Seems like SFSY-FORMPAGES is blank.