Problem with Pages in a Report

hi everyone,
in a Report where the header displays actual page and maximum of pages like "Page 4/7" it always shows "Page 2/3" even if it only shows 1 Page or 5 Pages... it always says there "Page 2/3" what did i made wrong?
thx in advance

Hi,
Try to pass the page number dynamically using the system fields.
REPORT ZJE_TEST no standard page heading line-count 60(5).
  data: v_totpage type i.
  data: v_temp(3) type c.
  Start-of-selection.
   do 100 times.
       write:/ sy-index.
   enddo.
  end-of-selection.
   v_temp = v_totpage.
   do v_totpage times.
      read line 1 of page sy-index.
      replace 'PAGNO' in sy-lisel with  v_temp.
      modify line 1 of page sy-index.
   enddo.
  top-of-page.
   write:/60 'page', sy-pagno, '/','PAGNO'.
   v_totpage = sy-pagno.
Here is  a sample:
zlines number of lines in the table
sy-srows number of lines in screen
sy-cpage current page
zpages total number of pages type i
temp temporary number type f
describe table itab lines zlines.
temp = zlines / sy-srows.
zpages = trunc( temp ).
temp = frac( temp ).
if temp > 0.
zpages = zpages + 1.
endif.
zpages is the number of pages
write: /'Page ',sy-cpage, ' of ', zpages.
Regards,
Jagadish

Similar Messages

  • Problem with Pages on the iPad 2.

    Hi all,
    I have been having a strange problem with Pages on the iPad that I hope someone can find a solution for.
    As a writer, I find that Pages on the iPad is a very good solution to my problem of needing something small and light to transport around, whilst still allowing me to do some serious writing.  I use the Apple 3 battery bluetooth keyboard, and this gives me a superb working solution.
    I started using the iPad 2 to do my second book and for the first 40,000 words everything was fine.  But as I started going back and forth with the cursor keys, editing passages in the book, I noticed that the cursor position did not match up with the I beam cursor on screen.  As it transitioned between pages it would loose it's corresponding position and the entry point for new text could be up to six characters in either direction.
    Now this is not a problem if you enter a new page, as there is nothing beyond it, but in the majority of cases it is a major problem when going back over your work and editing it.  I have to manually reset the start position of every new page so as to garantee the typing will go where I want it to.
    Now I thought at first this was something to do with Bluetooth keyboard, but after using the onscreen keyboard and the find and replace function, I have noticed that it loses it's position in the document in a similar way.  I have included a screen shot of it finding a problem I was searching for.  In this case it is ", and" to be replaced with "and," or "and".  Clearly in the image you can see that it is not happy and is not selecting the right things, if I replace it will replace exactly what is selected.
    Has anyone else seen this problem.  It seems to happen with large or small documents and I think that this is a fundamental problem with Pages on the iPad.  Seeing as I can't get Apple to acknowledge this I brought it here for everyone else to check out.  If we get enough voices on this, then we can make change happen.

    That's right Br Abdullah, I'm finding the same problem with my itune Arabic library that I synced to iBooks version 1.5! As you say the pages are not arranged correctly.
    The other problem that I'm finding is that the highlights & notes that i have made on the books on a previous version of ibooks, when synced with ibooks version 1.5, they are scattered everywhere, and sometimes in areas where there are no texts.
    I left a message on the report a bug section of iBooks on the app store, and I contacted them on their feedback of apple product issues. I don't know what else we can do. It seems that no one is listening to us. I'm Dissapointed that I upgraded my iBooks version to 1.5; I was really looking forward to reading on my new iPhone 4S (on iBooks)!
    What else can we do to get our concerns heared? Somebody? Anybody?

  • I'm having constant problems with pages not working. I.E.: I cannot fill in writeable fields, click on buttons... or anything... nothing on the page works. And, this is not exclusive to a particular site. I can, however, work well in Explorer.

    For the last few weeks I have had constant problems with pages not working. I.E.: I cannot fill in writeable fields, click on buttons... or anything... nothing on the page works. And, this is not exclusive to a particular site. It does seem to be a browser issue, because I can work well in Explorer.

    Both the Yahoo! Toolbar extension and the Babylon extension have been reported to cause an issue like that. Disable or uninstall those add-ons.
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Problem with page numbering in Acrobat XI Pro

    Hello community,
    I got a problem with page numbering with certain documents in Acrobat XI Pro.
    The next error comes up:
    Translated in English:
    There is an error occured when getting up of page-content.
    This is occured with certain pdf-documents (i cannot uploading this file).
    Is someone have similar problem, or has someone hev a sollution for this?
    Greetings,
    Bart

    This usually means the file is corrupt, probably because it was not created
    using a standard application like Adobe Acrobat.

  • I have a problem with Pages shutting down my documents.

      I have a problem with Pages shutting down my documents. I have several
    several documents on my homepage,but once I select one it shuts down and
    goes to the ipad homepage.Other documents open with no problem.
    Can someone tell me what's happening
    antdel

    Pages is crashing for some reason.
    You say that other documents open with no problems, do you mean other Pages documents or documents in another app?
    Try closing Pages completely in the recents tray and reboot your iPad. See if that helps. If it doesn't help, you may have to delete and reinstall Pages. If that doesn't work, you might have a corrupt document that you need to track down and delete.
    Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Problems with Pages 5 docs converting to Word docs

    It seems with the new upgrade on my MacBook Air, I have a glitch. Now when I convert a Pages doc to Word, the page breaks get removed and the doc turns into a sea. Also, I sent this new Word doc to my Kindle to upload into ebook form (never had a problem with Pages 09 previously, always came out beautifully) and now the doc turns into a digitally mangled mess. Any ideas?? Thank you.

    Usually when it does that it is because there is an XML table somewhere buried in there and either the table width or margin indents are forcing the text far left.
    Hard to pin down the problem with being able to examine the actual file contents.
    …and Pages 5 is buggy.
    So why don't you just use Pages '09? It works.
    Peter

  • Problem with Pages 09 after latest Snow Leopard Update

    I upgraded Snow Leopard with the latest update this afternoon, and now I am having all sorts of problems with Pages. Most importantly, the Pages templates are all messed up, with formatting all screwed up and the typesetting a mess. Has anyone else experienced such problems with Pages after the update? I may have to revert back to pre-update Snow Leopard if this can't be resolved, since I use Pages for my work. Any assistance here would be appreciated!

    You can install the combo over the delta (Software Update version). I did after I inadvertently used Software Update on my MacBook Pro. That's what I get for trying to update 3 Macs at one time.
    Here is the link to the Mac OS 10.6.4 combo updater.

  • Export problems with pages/ save as word document results in corrupted text

    This may be a new problem with Pages as I have not seen this happen with previous versions but, when I export a page made with a template, it ends up with merge problems - headers end up at the foot and invisible text regarding merge showing. When saved, a error box opens saying that merge fields are not save or similar, and I end up with a non friendly .doc file.

    morayshire wrote:
    This may be a new problem with Pages as I have not seen this happen with previous versions but, when I export a page made with a template, it ends up with merge problems - headers end up at the foot and invisible text regarding merge showing. When saved, a error box opens saying that merge fields are not save or similar, and I end up with a non friendly .doc file.
    Here are alert messages related to 'Word Exporter'
    /* Word Exporter */
    "Cells with unsupported number formatting were exported as text." = "Les cellules comportant un format numérique non pris en charge ont été exportées sous forme de texte.";
    /* Word Exporter */
    "Change tracking isn\\U2019t supported for cell image fills. Original cell image fills were removed." = "Le suivi des modifications n’est pas pris en charge dans les remplissages de cellule par image. Les remplissages de cellule par image d’origine ont été supprimés.";
    /* Word Exporter */
    "Change tracking isn\\U2019t supported for cell image fills. Tracked changes for cell image fills were accepted." = "Le suivi des modifications n’est pas pris en charge pour les remplissages de cellules par image. Les modifications effectuées pour ces remplissages ont été acceptées.";
    /* Word Exporter */
    "Change tracking on floating objects isn\\U2019t supported. Tracked changes were accepted." = "Le suivi des modifications sur les objets flottants n’est pas pris en charge. Les modifications ont été acceptées.";
    /* Word Exporter */
    "Comments on anything other than body text and inline objects aren\\U2019t supported and were removed." = "Les commentaires sur un autre élément que le corps de texte et les objets incorporés ne sont pas pris en charge et ont été supprimés.";
    /* Word Exporter */
    "Durations formatting isn\\U2019t supported and was exported as text." = "Le formatage des durées n’est pas pris en charge et a été exporté sous forme de texte.";
    /* Word Exporter */
    "Footer rows aren\\U2019t supported and were converted to regular rows." = "Les rangs de bas de tableau ne sont pas pris en charge et ont été convertis en rangs standard.";
    /* Word Exporter */
    "Formulas referencing cells with custom number formats aren\\U2019t supported and were replaced by the last calculated value." = "Les formules faisant référence à des cellules comportant des formats numériques personnalisés ne sont pas prises en charge et ont été remplacées par la dernière valeur calculée.";
    /* Word Exporter */
    "Formulas referencing durations aren\\U2019t supported and were replaced by the last calculated value." = "Les formules faisant référence à des durées ne sont pas prises en charge et ont été remplacées par la dernière valeur calculée.";
    /* Word Exporter */
    "Hidden footer content was removed." = "Le contenu du pied de page masqué a été supprimé.";
    /* Word Exporter */
    "Hidden header content was removed." = "Le contenu de l’en-tête masqué a été supprimé.";
    /* Word Exporter */
    "Hidden rows and columns were removed." = "Les colonnes ou rangs masqués ont été supprimés.";
    /* Word Exporter */
    "Japanese footnote or endnote numbering isn\\U2019t an exact match." = "La numérotation japonaise de note de bas de page ou de fin ne concorde pas exactement.";
    /* Word Exporter */
    "Links to external Pages documents aren\\U2019t supported and were removed." = "Les liens vers les documents Pages externes ne sont pas pris en charge et ont été supprimés.";
    _/* Word Exorter */_
    _"Merge fields were exported as regular text, not as merge fields." = "Les champs de fusion ont été exportés comme texte standard et non comme champs de fusion.";_
    /* Word Exporter */
    "One or more formulas aren\\U2019t supported in the chosen file format and were removed. The last calculated value was retained." = "Une ou plusieurs formules ne sont pas prises en charge dans le format de fichier sélectionné et ont été supprimées. La dernière valeur calculée a été retenue.";
    /* Word Exporter */
    "Some paragraph border rules couldn\\U2019t be exported." = "Certaines règles de bordures de paragraphe n’ont pas pu être exportées.";
    /* Word Exporter */
    "Table cell comments can\\U2019t be exported if there are any comments attached to the entire table. The table comments were exported, but cell comments were removed." = "Les commentaires de cellules de tableau ne peuvent pas être exportés si des commentaires sont associés au tableau entier. Les commentaires de tableaux ont été exportés mais ceux de cellules ont été supprimés.";
    /* Word Exporter */
    "Table cell fills other than solid colors aren\\U2019t supported and were removed." = "Les remplissages de cellules de tableau autres que par des couleurs unies ne sont pas pris en charge et ont été supprimés.";
    /* Word Exporter */
    "Table image fills aren\\U2019t supported and were removed." = "Les remplissages de tableau par image ne sont pas pris en charge et ont été supprimés.";
    /* Word Exporter */
    "Tables with more than 63 columns aren\\U2019t supported. Columns 64 and highger were removed." = "Les tableaux comportant plus de 63 colonnes ne sont pas pris en charge. Les colonnes 64 et au-delà ont été supprimées.";
    /* Word Exporter */
    "The page layout document was exported as a word processing document." = "Le document de mise en page a été exporté comme document de traitement de texte.";
    *_This gives us a simple way to convert a Page Layout document into a Word Processor one. Export it to Word, import the .doc file._*
    /* Word Exporter */
    "WECannotMapNumberFormat" = "Le format numérique non pris en charge a été remplacé par le format numérique par défaut (1, 2, 3…).";
    Yvan KOENIG (Vallauris, FRANCE vendredi 7 août 2009 21:18:06)

  • Problem with page preview : transodification of  ':' and '/'

    Hello
    we got a problem with page and iview preview on production system (7.01).
    The preview fail with a simple message "Erreur d'exécution portail / Exception lors du traitement de la requête, envoyez l'ID de l'exception à votre administrateur du portail" ("Portal execution error / exception during request treatment, send exception Id to your portal administrator").
    The user possess full admin role, as weel as autorisations onto the page. He can use the page when it's in the menu, but visualizing the page via preview fail.
    after comparing the preview URL from production system against the preview URL from development, we spotted a difference :
    on the dev portal, the URL is
    http://portal:port/irj/servlet/prt/portal/prtmode/preview/prtroot/pcd!3aportal_content!2fcom.company.directory.SpecificApp!2fcom.company.directory.LeaveRequest!2fcom.company.directory.Employee!2fcom.company.page.MyRequests?sap-config-mode=true
    on the production portal, the preview URL is
    https://portal/irj/servlet/prt/portal/prtmode/preview/prtroot/pcd!253aportal_content!252fcom.company.directory.SpecificApp$!252fcom.company.directory.LeaveRequest!252fcom.company.directory.Employee!252fcom.company.page.MyRequests?sap-config-mode=true
    As you can see, the ":" are transcoded into !3a on dev, and !253a on prod (and the "/" are respectively transcoded into !2f and !252f)
    the other difference is the use of an alias (http://portalprod/irj against http://portal:port/irj), and the use of a secured connexion (https).
    does someone know where this problem could come from ?
    regards,
    Guillaume

    Hi Guillaume,
    Could it be possible that there would be a SAP Web Dispatcher on the Production Portal and not on the dev portal.
    You should use a tool like HTTPWATCH to see if you get HTTP redirects.
    Regards,
    Olivier

  • Help me, I have a problem with font when export report to PDF?

    Hi everyone! Help me
    I have a problem with font when export report to PDF
    My report uses template .rtf with font Times New Roman (Unicode), language is VietNamese.
    when desige template no problem, error only happen when view report by PDF.
    Edited by: user10236405 on Oct 15, 2008 11:23 PM

    give it time to boot. the time depends on yr memory size n data. soon a process bar will appear indicating the boot process. if still this doesnt work. try formating the phone. but this ways u lose all data on the phone (unless u backed it). relax! the data on the memory card is safe.

  • Problems with pages loading

    We are having a lot of problems with pages loading slowly or not at all. We get this message all the time...server not found...even on pages that have just recently been visited. We have this problem with Safari, Firefox, and Camino. I don't have Internet Explorer installed, but why should I just keep adding new browsers. My ISP assures me that the connection is fine. I have emptied caches, cookies, whatever I can find to empty. Did I empty too much? We use a Netgear router and a company called Digitron. Any suggestions?
    Message was edited by: cynder13

    Hi
    Perhaps the easiest way to sort this out is to set up a separate Network Location for your connection:
    -Location - set up a personal location by clicking on the drop down menu and selecting "add a location". Use a name familiar to you. Once established, select "apply".
    -Next, click on the "Show" drop down menu and select Network Port Configurations. Only Airport ought to be checked. Move it to the top of the list (you can drag it). Select "apply".
    -Back to the "Show" menu, select "Airport". Click on the TCP panel. There, enter 4.2.2.2 and 4.2.2.1 (separate lines) in the DNS servers box and select "apply". Also, you can always call your Internet Provider to find out if they have specific codes.
    Creating a personal location, plus adding the DNS codes seems to speed things up. Otherwise, the "automatic" function has a tendency to "search" for available locations, hence creating the lag you are seeing.
    Lastly, in the Finder, go to your Applications>Utilities folder and select "Terminal". Once the screen is open copy/paste lookupd -flushcache and press return. This clears out the DNS cache. Once done, quit Terminal.
    If the above doesn't help, I suspect the Router is the problem. Perhaps you need to upgrade its firmware. Check at the Netgear site>Support.
    Post back

  • Satellite L30: Vista problems with pages minimising

    Hi,
    i have just bought the toshiba Satellite L30 laptop and i am am having problems with pages minimising whenever i click on the page. Most of the time this happens when i click on the scroll bar, but it also happens when i click on any part of the page and when im typing.
    It's getting very annoying. I have only had this laptop for about 2 weeks and the problem has been there since day one. Im runing Windows vista home basic.
    Does anyone know the cause and/or how to sort it out?

    Hi there,
    be more precisely with your error description, because its hard for anyone whos reading this to find out some problems without knowing which "pages" do you mean. What a kind of program do you use?? Word, Internet Explorer or what???
    Please, do us and yourself a favor and tell the problem with more details, that we can maybe help you. Or at least make some thoughts about your problem. :)
    Greetings ;)

  • Pdf problem with Preview - how to report to Apple?

    Hi,
    I have been having problems with certain PDFs and Preview. The PDFs in question are scientific papers obtained via JSTOR (they manage the supply of papers from a range of Journals). In Preview many JSTOR papers display very slowly - so slowly that scrolling through the document is not practical. In Acrobat they are displayed normally, so this seems to be a Preview problem. There seem to be no settings in Preview that seem relevant to the problem, so how can I report this problem to Apple?
    all the best,
    Jeremy Harbinson

    Hi,
    So far as I can tell, I cannot attach a file to a posting to one of these discussion groups. A file which causes the problem can be found at
    http://www.jstor.org/stable/3066865
    Baroli, I and Niyogi, KK (2000). Molecular genetics of xanthophyll-dependent photoprotection in green algae and plants. Philosophical Transactions: Biological Sciences, 355;1385-94
    Note that the problem only seems to occur with JSTOR files: the same pdf - this time in an easily readable form, and minus the JSTOR header page - can be downloaded from the Royal Society website:
    http://journals.royalsociety.org/content/qpjabmqk0kxar5vb/
    all the best,
    Jeremy

  • Problem with Unix version of Reports

    When I run the report(filenam.rep) off of
    my P.C., it works fine. Then when I transfer
    it over to Unix and run the report, I get
    some of the values in my report copied into
    places they don't belong. For instance,
    I have a value for the last row and last column in my report that gets copied to the
    first value in the last column of every page
    except for the first page. The proper value
    doesn't appear and it gets replaced by this
    value instead. I am running Reports 2.5 on
    both my P.C. as well as Unix. My P.C. is
    an NT 4.0 workstation. My command line on Unix looks like this:
    r25runm report=${report} userid=reitprod/namrem batch=YES paramform=NO \
    buffers=1000 destype=file desname=${TEMP}.lis \
    ${PARAMETER_STRING}
    I also have Designer 6.0 installed on my P.C.
    I recently installed a patch to fix a problem
    with formatting in Reports 6.0. I am wondering whether the patch might have something to do with incompatibility between
    Reports 2.5 on my P.C. and Reports 2.5 on
    the Unix system.
    null

    Hello,
    We need more information in order to help. How are you requesting the report (command line, URL, ?). What file is it asking for?
    Regards,
    The Oracle Reports Team --skw
    null

  • Synching problems with pages and numbers

    After an initial problem with synching which was resolved with Yosemite Pages and Numbers have been synching across all my devices for a couple of weeks and now all of a sudden they have stopped again!! They synch across my phones and iPad but not to my macbook pro!! Very very annoying! How do I resolve it?

    Found a solution, but it is odd:
    On the 2008 Mac Pro, I UNCHECK the boxes beside Pages and Numbers in System Preferences > iCloud > iCloud Drive > Options. Now Pages and Numbers will properly save edited documents to the appropriate folders on iCloud Drive.
    Go figure ...
    Hope that this helps someone else.
    Jon

Maybe you are looking for