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

Similar Messages

  • 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

  • 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

  • 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

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

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

  • 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

  • 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

  • Issue happened for SFSY-FORMPAGES sometimes

    I took SFSY-FORMPAGES to display the total pages, most of time, it works very well, but some time, the total pages are displayed as '*'.
    After deleting some spool on own spool list, it works again.
    Please give some advice.

    Try to use like this it will solve your problem for ever
    &SFSY-formpages(3CZ)&
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • SFSY-FORMPAGES showing as * when it exceeds 9

    Hi All,
    I have a field in my smartform which shows the total no. of pages generated.
    I have put SFSY-FORMPAGES for this purpose. It displays correctly till the no. of pages are 9.
    When the total no. of pages become 10, its showing me *
    The space for this field is 7cm so I think the space should not be a problem.
    Please let me know how I can resolve this.

    Hello,
    You can use &SFSY-FORMPAGES(3ZC)& instead of &SFSY-FORMPAGES&,
    as described in the SAP note: 588352.
    Regards,
    David

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

  • Log on to Runtime Workbench : click display error on page

    Dear all,
    when i try to log on to Runtime Workbench  and click on display message , i am getting error that error on page,
    we have already done post implementation steps for PI(XI),,
    what to do, to test the senario from Runtime Workbench.
    Best regards,
    dushyant.

    Hi,
    This will help you
    SAP Note-768456 &  SAP Note-928862
    http://help.sap.com/saphelp_nw2004s/helpdata/en/06/5d1741b393f26fe10000000a1550b0/content.htm
    Regards
    Agasthuri Doss

  • Error on page from BW 3.5's default web template

    Hi Guru's,
    We have a problem in our new BWD BW 3.5 environment where we are getting the "error on page" error from SAP-generated code and we aren’t sure why.
    On our old BWT BW 3.0b platform, we have been using a modified version of the 0query_template called Z_QUERY_TEMPLATE. We did a system copy of BWT to BWD, our new BW 3.5 platform. At that point in time we would see our old BW 3.5 default template for queries that we ran. We wanted to see what the new default web template looked like in BW 3.5. We found where we could remove the Z_QUERY_TEMPLATE from the Web Adhoc Analysis web template setting so we could see the new features of the BW 3.5 default BEx query designer template instead of our old BW 3.0b default template.
    Now when we run a query through the BW 3.5 query designer on BWD, we are using BW3.5’s default template. The prompt web page is fine. No errors on page messages.
    However, the initial presentation of the query results displays okay, but shows "error on page" in the message bar at the bottom of the displayed page. As soon as we do any navigation on those query results that error on page goes away. If we navigate back to the initial presentation, all is still okay. If we use the context menu to go back to start, we again get the error on page.
    This error on page does not happen in BQ2 (our new BW 3.5 QA environment copied from our old BW 3.0b QA environment where we had not yet changed the default BEx Query Designer template to be Z_QUERY_TEMPLATE). We have tried several queries and in each case, we get errors on page in BWD, but not in BQ2. We used ultraedit to compare the view source output from the equivalent web pages from BWD and BQ2 and the only difference is the validity date of the data. There are no other differences in the javascript code generated by BW in the two platforms.
    The statement that Internet Explorer is saying is the problem is the same in each of the cases we have checked and that is:
    SAPBWSetFocus(anchor);
    Error: Object expected
    Code: 0
    It’s in the set_tab() function.
    <script type="text/javascript">
    <!--
    /* Calls the online Documentation via technical QueryName */
    function callquerydoc() {
      var docustart= '/sap/bw/doc/meta/fldmeta/default?tlogo=elem&objnm=' + document.getElementById('querydoc').innerHTML;
      SAPBWOpenWindow(docustart,'Documentation',800,600);
    /* Sets the displayed tab */
    /* Check, which items of the Array check_items  is not hidden.
        Change the style of the HTML tag with id Group+Area/Group+Link */
    function set_tab() {
         if (!(navigator.appVersion.substring(0,1) == '4' && navigator.appName == 'Netscape')) {
           var check_items = new Array('GR1Toolbar','GR2Chart','GR3TECommon','GR4Broadcaster');
        for (i=0;i<check_items.length;i++) {
                        hidden = true;
                       prop = SAPBWGetItemProp(check_items<i>);
                       if (prop != null){
                                           for(j=1;j<prop.length;j++){
                                                      if (prop[j][0] == "HIDDEN")  hidden = (prop[j][1] == "X");
                   anchor_item = document.getElementById(check_items<i>.substring(0,3)+'Area').firstChild;
                    if (hidden) {
                        document.getElementById(check_items<i>.substring(0,3)+'Area').className='SAPBEXTbsTab';
                        anchor_item.title = 'Inactive Tab Page:' + ' ' + anchor_item.title; 
                    else {
                        document.getElementById(check_items<i>.substring(0,3)+'Area').className='SAPBEXTbsTabSel';
                        anchor_item.title = 'Active Tab Page:' +' ' + anchor_item.title; 
              } /* if */
          }   /* for */
        /* Set the BexHeader invisible when running as IView */
            if (SAPBWGetProperty('RUNS_AS_IVIEW')) {
                               document.getElementById('bexheader').style.visibility='hidden';
                               document.getElementById('bexheader').style.display='none';
              anchor = window.location.hash.substring(1,50);
              <b>SAPBWSetFocus(anchor);</b>
      }  /*function */
    -->
    </script>
    Because the error goes away as soon as we navigate I’m thinking some object isn’t being created or initialized, but since the view source code of these pages are identical I’m wondering if there is some code that should be executing before this page that is not happening in BWD for some reason.
    Any help will be much appreciated.
    Thanks,
    Jeri

    Heike,
    Thanks for your help in this. BWD and BQ2 are both on the same SP. SAP_BW release 350 level 10 (SAPKW35010) with BI_CONT at release 352 level 5 (SAPKIBIEP5).
    I invalidated the server cache following your instructions and tried again, but am still having the same problem in BWD. The initial display gets the "Done, but with errors on page" message until any navigation is done.
    I am using IE 6.0.2900.2180.xpsp_sp2_rtm.040803-2158 when I execute queries on both BWD and BQ2.
    Please, do you have any other suggestions?
    Thanks,
    Jeri

  • Error on page in Idm 7.1.0

    I installed IdM 7.1.0 with Tomcat 5.5.23, jdk 1.6 and MySql 5.0.45.
    I login to application and edit user assignments (click to Accounts, eg. Administrator and Assignments).
    There is an error on this page: there is a red cross instead of control to edit Roles, Individual Resource Assignment, Individual Resource Group Assignment or Resource Exclusions. When I click to the "Save" button, Internet Explorer reports "Error on page".
    Do you have any idea how to get rid of this error?

    Those controls are all Java applets, it sounds like you do not have Java applets enabled in your browser.
    If you can't use Java applets you can also edit the form (User Library in this case) and add a property to all of the fields whose display class is MultiSelect:
    <Property name='noApplet' value='true'/>
    This will cause the JavaScript version of the multiselect to render instead.

Maybe you are looking for