Page Numbering SFSY-FORMPAGES = *

Hi,
I have a Smartform where i'm using SFSY-FORMPAGES to get the total no of pages.
The thing is that sometimes it prints ok like "11 of N", but sometimes it prints "23 of" or "9 of *".
Any ideas why sometimes the total no of pages is not displayed or is displayed like *??.
thanks!.

You can correct it by following one of these two options:
1. Write Page numbering with formatting option (4ZC). It would not get you * untill 9999 pages.
Page &SFSY-PAGE& of &SFSY-FORMPAGES(4ZC)&
2. Change the window type of the window which has the Page number text element to "Final Window"
Regards,
Naimesh Patel

Similar Messages

  • Error in Page SFSY-PAGE of SFSY-FORMPAGES

    Hi;
    When i enumerate the smartform pages with this in a textbox Page &SFSY-PAGE& of &SFSY-FORMPAGES&, and the number of pages is more than 10 it displays:
    Page 1 of  *, Page 2 of  *.....Page 1 of 10.. Page 1 of 11.....
    the first 9 pages the SFSY-FORMPAGES displays '*' but if the number of pages is less than 10 it doit well:
    Page 1 of 8... Page 2 of 8 ....
    What could be the problem...?
    Thanks on advance.
    David Fúnez
    Tegucigalpa, Honduras
    Corp. Mandofer

    Hi David,
    Look at OSS Note 588352. Use format like &SFSY-FORMPAGES(3Z)&.
    The length of the field will be longer and zero suppress.
    I hope you will get it
    Thanks
    Seshu

  • Why the statement: "IF SFSY-PAGE EQ SFSY-FORMPAGES" do not work?

    Hi gurus,
    I want to check if the current page is the last page and use this statement in Code Node:
    IF SFSY-PAGE EQ SFSY-FORMPAGES.
        V_G_SHOW = 'X'.
    ELSE.
    But when I try to debug this part of code, I find   SFSY-PAGE  and SFSY-FORMPAGES always have same value.
    Why?
    thanks

    Smartforms evaluate &SFSY-FORMPAGES& during the execution of the form.
    If you want to know the final number of pages, you have to execute the Windows at the end of the form. Look at OSS [Note 588352 - '*' when you output the total number of pages |https://service.sap.com/sap/support/notes/588352] so the window will be "late" executed and the data of &SFSY-FORMPAGES& and &SFSY-PAGE& may be different. (the note relates to "final" window)
    Regards

  • Error with SFSY-FORMPAGES and  SFSY-PAGE

    hi,
    i m having a problem in smartforms using SFSY-PAGE and SFSY-FORMPAGES . This two system feilds always returs with one value added. for an example if total # of pages 10 , SFSY-FORMPAGES  returns 11 ,for the first page SFSY-PAGE returns 2.
    Looking for a quick response...
    [email protected]
    Thanks ...
    Dilum-Sri lanka

    Hi Dilum,
    Use these two variables in a text in a smart form:
    &SFSY-FORMPAGES &
    &SFSY-PAGE&
    You will see that in the print preview itself ; the values which are getting displayed for the two variables are absolutely correct.
    So there is no problem as such while using these two variables.
    And no error is there even if you just have one page. In your case the value for the two variables is 1 each whihc is getting displayed in the print preview .
    Regards,
    Kunal.
    Message was edited by: Kunal Kumar

  • Printing page numbers in smartform

    Hello all,
    we need to print page numbers as Page 1 of 10 etc..
    But I can not use SFSY-FORMPAGES because I print multiple documents.
    I need to know how many pages will be printed in advance.
    Every time a new document comes we have to start the count again.
    Have anyone come across this and solved it. Pls help.
    Useful answers are rewarded.
    thanks.

    hi
    try this
    Page&SFSY-PAGE& of &SFSY-FORMPAGES(3ZC)&
    don't forgot to write 3zc otherwise it will show '*' ones the page no will exceed 10.
    regards
    vijay
    reward points if helpfull

  • Problem with &SFSY-FORMPAGES&

    Hi All,
        When i was using the &SFSY-FORMPAGES& in smartforms, it was showing '*' till it reaches 10th page, from 11th page onwards it was showing total number of pages in the smartform. Can any one tell me the reason.
    Thanks in advance
    Jaya

    try this jaya....
    &SFSY-PAGE& of &SFSY-FORMPAGES(2z)&    or
    &SFSY-PAGE& / &SFSY-FORMPAGES(2z)&
    If you find it useful mark the points
    ~~Guduri

  • Smartform output error &SFSY-FORMPAGES& &SFSY-JOBPAGES&

    Hi, everyone.
    I have a issue about smartform printing.
    My smartform contains system variables
    &SFSY-PAGE&, &SFSY-FORMPAGES&, &SFSY-JOBPAGES&
    example as below.
    I have a 64 pages form printing.
    but I got preview like this
    PAGE:  6/ 46/46
    6: &SFSY-PAGE&
    46:&SFSY-FORMPAGES&
    46:&SFSY-JOBPAGES&
    AS I print it out, as preview.
    Does anybody have the issue like this?
    Please help solve. Thank in advance.

    Hi,
        If you use &SFSY-PAGE& of &SFSY-FORMPAGES&
    the output will be like 1 of 64
                                    2 of 64........
    &SFSY-PAGE&:-     Inserts the number of the current print page into the text. You determine the format of the page number (for example, Arabic, numeric) in the page node
    &SFSY-FORMPAGES&:- Displays the total number of pages for the currently processed form. This allows you to include texts such as u2018Page x of yu2019 into your output.
    &SFSY-JOBPAGES&:-Contains the total page number of all forms in the currently processed print request.
    Since in your case job contains only one form so you are getting 46 for both form pages and job pages(job can have any number of forms).
    Thank U,
    Jay....

  • Smartforms: SFSY-FORMPAGES = star very strange

    Hi,
    I have a very strange problem:
    In a smartform i use as usually &SFSY-PAGE&/&SFSY-FORMPAGES& for numer of pages/total pages.
    If the spool has less than ten pages all is right, if it has greater than ten pages (in the example 14) i get that:
    1/*
    2/*
    3/*
    4/*
    5/*
    6/*
    7/*
    8/*
    9/*
    10/14
    11/14
    12/14
    13/14
    14/14
    I don't understand why.
    I tried to increase the space for window but nothing changes.
    Please, help me.
    Matteo Vernile.

    Use &SFSY-PAGE& of &SFSY-FORMPAGES(4ZC)&  instead of the &SFSY-PAGE&/&SFSY-FORMPAGES&.
    This will not print astrik upto 9999 pages.
    REgards,
    Naimesh Patel

  • SFSY-FORMPAGES showing incorrect number of pages

    Hello,
    I have created a check form, and use SFSY-FORMPAGES to display the page numbers on the check and separate remittance if necessary.  If I print a single check that has no separate pages for remittance, it is telling me that there are 2 pages in the form, when there is only one.  What can I do to fix?

    Hi Daniel,
    As you said that,you have used SFSY-FORMPAGES to display the page numbers on the check and separate remittance so for that reason its printing two pages i.e one for the check and another for the remittance.
    Create the program lines for the remittance..incase if the remittance is there print the check and remittance else print only the check.
    Regards,
    Sravanthi

  • Smartform page numbering

    Hi experts,
    I am displaying notification numbers in the ALV format. when the user selects few of the notification numbers and click on display button it should display the notification details using smartform.
    I have to trigger a new page for every notification number.
    I had problem in numbering the smartform pages.
    For example if the user selects 3 notification numbers say 1st one takes 3 pages, second one takes one page and third one takes 2 pages then i have number the pages as below.
    1st notif:1of 3,2 of 3,3 of 3.
    2nd notif:1 of 1.
    3rd notif:1 of 2,2 of 2.
    Please give me some suggestion.
    Thank you.
    Regards,
    Bharat Kalagara.

    hi ,
    in the driver program based on on a check on notification number call smartform , and now in smartform where u are printing page number make that window as a final window , this will help in calculating total no of pages now create a text element and write &sfsy-page(3cz)& of &sfsy-formpages(3cz)&.
    hope this helps you !!!
    regards,
    prashanti

  • SFSY-FORMPAGES and SFSY-JOBPAGES

    Hi
    I have given SFSY-FORMPAGES and SFSY-JOBPAGES in smartforms but in the output form * is getting printed instead of page numbers and total pages.
    thanks
    Satish

    Hi Satish,
    Please refer the below thread(s),
    Page Number in Smartform
    Best Regards.

  • How to set page numbers in scripts

    Hi,
        i want page numbers at bottom of page,
      please tell me how to set page numbers in scripts?

    Hi,
    In footer
    use this
    &PAGE& / &SAPSCRIPT-FORMPAGES&
    &PAGE& of &SAPSCRIPT-FORMPAGES&
    reward if it helps..
    regards,
    Omkar.

  • SFSY-FORMPAGES not displayed in XSF output

    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

    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.

  • Smartforms Page Numbers problem

    Hi All,
    Can any one suggest me in this issue
    i need continue to next page<PAGE NO> in the last of smartfoprm pages if there is more than one page
    for that what to do
    Thanks
    Surendra

    Hi Suri,
    How about this commands
    &SFSY-FORMPAGES& 
    Displays the total number of pages for the currently processed form. This  allows you to include texts such as'Page x of y' into your output. 
    &SFSY-JOBPAGES& 
    Contains the total page number of all forms in the currently processed print  request. 
    Regards,
    Pravin

  • PAge Numbers in Smart forms

    Hi,
    I m trying to print the total number of pages in the smart forms using the system field SFSY-FORMPAGES. This is showing from page 10 and in the previous pages it is shown as *. Kindly help me on this.
    Thanks.
    Ashok

    Hi,
    Maybe there is an issue in the display of the page number. Rather than passing the sfsy-formpages to the text element directly, declare a global variable, and assign it the sfsy-formpages. then use this variable in the text element.
    data: v_page like sfsy-formpages. "declare in global definition
    move: sfsy-page-formpages to v_page.
    Also, try increasing the width of the window displaying the page number.
    Regards,
    Zaheed

Maybe you are looking for

  • How to connect an external disk to time capsule?

    Hi, I've just connected my new external disk 2TB to the time capsule device. However, it doesn't show in the disk tab in Airport express. Yes, of course the disk is on, it's hfs+journaled formatted and works fine when connected directly to my usb por

  • How do you get canoscan lide 110 scanner to display in "file import" menu?

    I have several older versions of Photoshop Elements running on various computers.  In ALL of them, if you go to "File>Import" you see "Canoscan LIDE xx".  when you choose it, there is a great scanning application that runs. On a newer computer, i had

  • Windows 8.1 client to Mac - can't open volumes

    I have a mini with a number of drives (two internal, a few more connected via USB3 and Firewire). I have filesharing turned on (+SMB). From any other Mac on my network, I can log in using my admin account and access every drive. However, from a new A

  • Problem in output

    REPORT  zmm_matl_desc LINE-COUNT 40 LINE-SIZE 80 NO STANDARD PAGE HEADING. ***************************DATA DECLARATION************************** TYPE-POOLS: slis. TABLES: mseg, mkpf. DATA: BEGIN OF t_mseg OCCURS 0,       mblnr LIKE mseg-mblnr,      

  • Why can't I use the creative cloud connection file syncing?

    I hear people raving about it on twitter, so why am I only seeing a 'coming soon' message in the files tab of my creative cloud interface? I would very much like to use the file syncing to work between two computers! What is going on here? Is there s