Getting   *    in place of page number

Hi all,
In my Smartform i am unable to print the total no of pages .
I have written the code as follows.
   &SFSY-PAGE&   OF  &SFSY-FORMPAGES&.
But in the output i am getting like this
Page 1 of   * ,   page 2 of  *...... but for last page i am getting correct
format.i.e page 10 of 10.
So, how do i get the page number in place of   *.
Thanks in advance
Krupali

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

Similar Messages

  • How do I get rid of a page number that's not in the header of a Pages doc?

    On one of my pages document is a page number beside the header area but not in the header.
    I can't select it, can't find anything in the Pages help to tell me how that page number came about and how to get rid of it.

    Try Format > Advanced > Make Master objects selectable.
    S.

  • How do I get rid of -1 page number from TOC

    When I create and import a TOC in to my document, the first TOC page has no number, which is OK, the second page is numbered -1 and the last TOC page also has no number. I am trying to get rid of the -1 from the second page. I have tried a number of things from Format >Document>Numbering and Format>Page Layout>Master  Page Usage but nothing succeeds. Would be grateful for any help if anyone recognises this problem. Thanks.

    Got to where the page number is, usually a Master Page, and either delete it, or set it to a color that is set to invisible (via Color Views) prior to publication.
    Check both Left and Right MPs.
    View > Master Pages
    In most templates, the page number is a "#" in the header or footer.

  • Get TotalPageCount or last page number

    Hi... i didn't think that the new crystal report 2008 could be so different to use from crystal 8!
    I have a simple question. how cai i know the totalpagecount from vb? i need this parameter because i need to show a printdialog with "from page to page" before calling .printtoprinter method...
    in vb6 with crystal 8 i just write:
    Rpt.PrintingStatus.NumberOfPages
    and now??????
    P.S.: i can't understand why the old RDC was much more easy to use! with VB6 i can add sort field, get number of pages... etc. now i had to write a book!!!

    It is in Note [1216240 |https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    You will want to search the notes database for information like this.
    The formatengine is undocumented so I do not know about that, but I dont think you would use it to add a sort field at runtime.
    Create a new thread asking that question and maybe someone has code already for it.
    Make sure you search the forum first.
    Jason

  • IS-U print workbench - User exit - to get current page number

    Hi,
    I have a doubt in IS-U print workbench where in I need to get the current page number which is being processed inside the user exit of the application form.
    I have a user exit called Z_EXIT_150 and here I have a subroutine which is inside the LOOP DOC_ITEM …ENDLOOP.
    Inside the subroutine, I need to get the current script page number.
    There is an option of getting the current page as &PAGE& inside the Script but I need to know the page number inside the exit.
    Do you have any idea of getting the current page number?
    Thanks and Regards,
    Sakthi.

    Hi Sakthi,
    I have also had this problem while working in IS-U Print Workbench but was also unable to solve.  I tried looking into the output_text that is called when reaching an object that references SAPSCRIPT-FORMPAGES but I too could not find a way to save PAGE to a variable for later use.
    The only idea I can think of, although I have not tried, would be to place some sort of counter variable in the BUILD_DOCUMENTS and increment the counter each time there is a successful printout of a header logo or some other object that you expect to see printed on each new page - that way maybe you can determine later in the exit processing what page # you are currently in. 
    I hope this has helped some.  I would be really interested to hear if someone else has a solution of how to access items in the SAPSCRIPT structure from outside of the SAPscript code.
    Regards,
    Geoff

  • How to get the total page number when using Crystal Report in JSP

    In my JSP, I use the class CrystalReportViewer to generate and display the report views. But this class only sypply the function to get the info of the active view.
    Thus with this info, I only can get the active view's page number. How can I get the report total page number without showing the last page first?
    Thanks.

    Anything you do without submitting to form has to be done on the client side (ususally by JavaScript) using data which has been send already from the server.
    With JavaScript you can do quite a bit. You can download tables which don't necessarilly appear on the screen, loading them into JavaScript arrays by dynamically generating javascript. Then you can pick up events like drop-box selection and use these tables to chose what you do next (e.g. preloading other fields, setting drop box content etc.).
    Or, you can cause forms to be submitted when actions like a selection happen without the user clicking a button. It's generally a matter of how much data you'd need to transmit.
    Another posibility is to use a Java applet, which can generate requests to the server and handle the results as it chooses. That are a number of problems with that but occasionally it's the best solution.
    What you can't do is to handle user input inside a JSP. The JSP has come and gone before the user even gets to see your form.

  • Get Current page number of PDF file

    Hi,,
    I am using acrobat plugin(SDK) in VB.Net while am nevigating in the
    PDF file i want get the current viewing page number of that
    PDF file and Display in Lable/Text....
    In abouve screenshot am marked the SDK display page number that i want read by VB.NET and display in my application..

    ..... perhabs in connection with this;
    http://forums.adobe.com/message/4587057#4587057
    However, full Adobe Acrobat is needed for both (not Reader only).
    HTH, Reinhard

  • Quick question: How to get the scrolled page number using af:table

    Hi,
    When using range paging on scrolled table, how to get the current scrolled page number(1,2,3...), for example when moving the table vertical scroll bar forward or backward, is there any method in ViewObjectImpl class that I can use to get such information? I have seen the method scrollToRangePage(int i), but when scrolled ("Fetching data..."), it doesn't not get into this method. So it is wrong usage for this method, right?
    Thanks

    Didn't you just ask that question in this thread?: How to catch the page number when using scroll table in ADF 11g?
    A bit of patience might be in order.
    CM.

  • Crystal Report Crosstab Page Number Issue

    Hi Gurus,
    I am creating the crystal report which has variable column fields, so the number of pages are variable.
    The issue is, When i place the page number on the footer, It display only at the end of the page saying '1 of 1', I read lot of forums regarding this issue but didn't get resolved yet.
    My crosstab is in the report header, I even tried the dummy group and placed the cross tab in that group. In that case i am getting '1 of 1' in all the pages.
    Can you guys please help me to resolve this issue
    Thanks
    Vijay

    Hi Vijay,
    Try this Knowledge base article :  It works for all cr versions
    Symptom
    In Crystal Reports (CR) 9, a cross-tab needs to have page numbers for its virtual pages in the format:
    "1", "1-1", "1-2", and so on.
    How can the virtual pages of a cross-tab be numbered?
    Resolution
    Virtual pages can be numbered by conditionally formatting the 'Display String' property of a Cross-Tab field.
    Displaying Page Numbers in Cross-Tab Virtual Pages
    1. Right-click the top-left of a cross-tab and click 'Cross-Tab Expert'.
    2. In the 'Cross-Tab Expert' dialog box click the 'New Formula' button, then name the formula 'Page Number'.
    3. In the Formula Editor enter a blank space (" ") then click the 'Save' button. Close the 'Formula Editor' dialog box.
    4. In the 'Cross-Tab Expert' dialog box select this formula from the 'Available Fields' box and move it to the 'Columns' box. Use the 'Up' arrow for the 'Columns' box to move it to the top of this box.
    5. Click the 'OK' button to close the 'Cross-Tab Expert' dialog box.
    6. Right-click the 'Column #1 Name' field on the cross-tab and click 'Format Field'. The 'Format Editor' dialog box will appear.
    7. On the 'Common' tab click the 'X+2' button next to 'Display String'.
    8. Enter the following formula in the 'Format Formula Editor':
    global numbervar PageNum;
    PageNum:= PageNum + 1;
    if PageNum > 1 then "Page # " + totext(pagenumber,0) + "-" + totext(PageNum - 1,0)
    else "Page # " + totext(pagenumber,0)
    9. Click the 'Save and Close' button to close the 'Format Formula Editor' then click the 'OK' button to close the 'Format Editor' dialog box.
    When previewing the report, the cross-tab will display "1" for the first page and then "1-1, 1-2" and so on, for the subsequent virtual pages. Navigating to page 2 will show "2" for the first virtual page followed by "2-1, 2-2" and so on.
    Background
    'Virtual pages' are the pages on a cross-tab from left to right as opposed to the actual pages that are accessed through the 'Navigation' buttons.
    When you create a cross-tab that is wider than the specified page size, CR automatically spans the printing across enough pages to accommodate the width of the cross-tab. In the Preview tab, a line will appear at each page break.

  • Field value in page number X

    Hi everyone
    By using JavaScript, how can I get field value in page number X at runtime?
    Thanks

    I can recommend you to check the JavaScript scripting guide: http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    Especially last chapter called "Examples of Common Scripting Tasks", last three sub-chapters working with the instance manager. Shows how can you add, delete, count, view, move instances.

  • Can't see 'white' colored page number on colored object/paper

    I am using Pages '09 (v 4.3) and am having a devil of a time trying to get a 'white colored' page number to show up over a colored object that is streched over the sheet/paper to provide a color background. The problem seems limited to only when I want to use white, as any other color in the palette will show (assuming that there is enough contrast between the background color and selected page number color). I'm seeing this problem in a sheet where I want to use a black background with white text in the body (no issue there) and a white colored page number. Anyone else seen this? Or perhaps I have missed something simple?

    Peter -
    Is it there when you zoom in? No amount of zoom or lack thereof changes the situaiton.
    Is it there if you increase its point size? Nope.
    Is it there if you change the font? Nope.
    Have you tried using white from the Color Picker? Yes, no matter how white is selected the end result is the same.
    What is the Opacity of the text in the Graphic Inspector? Text does not have an opacity option/selection. Perhaps you are asking what the Opacity is of the solid color I am trying to set as the background, in which case it is 100%.

  • [b]Printing reports, getting a final blank page[/b]

    Hi,
    I'm printing out various reports, however i always get a final blank page. Any ideas how to suppress this?
    Also I would like to get rid of the page number at the top of the page and url address at the bottom if possible.
    Thanks
    Khalid

    I change the printer driver to HP Universal Printing PCL 6 and this got rid of the blank pages.

  • Page number other than 1

    I have a serious of reports. Each a single page. can I put a page number on them other than 1? So when they are all printed I will have a series of one page reports #1 thought #18.
    Thank you for any help, Joan

    Hi Keith,
    Yes you can place the page number other than u20181u2019.
    Create a formula and put u201CPage number + 1u201D in the formula.
    Now put the formula in the place of u2018Page numberu2019. Then it displays the page number other than 1
    Based on your requirement create a different formula for every report with u201CPage Number + u2018Required number-1u2019u201Cand place the formula in the first page instead of page number. Then it will display the Page Number based on the requirement.
    Regards,
    Naga.
    Edited by: Nagabrahmam Ramineni on Sep 12, 2011 5:18 PM

  • How to get page number from the PDF using Javascript

    Hi,
    We are having list of Single page PDF. The pdf are named in the order,
    ISBN_Author_01.PDF  (with real page number as i)
    ISBN_Author_02.PDF  (with real page number as ii)
    ISBN_Author_03.PDF  (with real page number as iii)
    ISBN_Author_04.PDF  (with real page number as 1)
    ISBN_Author_05.PDF  (with real page number as 2)
    ISBN_Author_06.PDF  (with real page number as 3)
    ISBN_Author_nn.PDF  (with real page number as 500)
    Here each pdf has a page number and in sequential order.
    The task is to check whether all the pdfs are in sequential order (i.e i, ii, iii, 1, 2, 3). If any page is missing, the script should throw an error report.
    To do this task, I am writing a Javascript to get the real page number from the PDF.
    Can anybody help me how to get the page number from the PDF using Javascript.
    Thanks,
    Gopal

    The "real" page number within a PDF is the count of the physical page starting at 0, zero.
    pageNum numPages
    The number printed on each page is the page label.
    setPageLabels  getPageLabel
    You will have to open each PDF and your script would need to know the page label for that file. I would expect you would need to build a 2 dimensional  array of the file names and the page label for the page within that array.

  • I,m new to Mac book. Have used Pages and written 49  chapters of a novel. How can I get them into one doc. and have Pages number them?

    I'm new to Mac book.  Using Pages I have written 49 chapters of a novel.  Can anyone tell me in simple terms how to put them into one document and have Pages number them?   I am lost.

    Hello, Lost! Yes you are a bit; try the Pages forum here; https://discussions.apple.com/community/iwork/pages
    While I do use Pages, I don't know the answer to that one, but I'm sure you'll soon get help in the right forum.

Maybe you are looking for