Page number problem in ALV background

Hi all,
I am displaying a report in ALV format.
In the header , i have to display the detail like current page no/ total page numbers .
I am able to achieve this , but I am facing 2 problems
1. In foreground , it is always dispayed as ONE SINGLE PAGE , there by showing 1/10 no matter how much pages are present.
2. When i schedule this program in background, it takes 1 page extra .. i.e 1/10 , 2/10 .... 11/10 .
The number of records obtained in background are proper , but probably the page lenghts are different,
Can any one please provide some inputs on the same ?
Thanks ,
Supriya Murudkar .

Hi Twinkal,
Thanks for your suggestion .
Is there any solution for the same ?
The program has a normal output as well as ALV o/p.
I just compared the 2 outputs now.
Some records which are on page 1 on normal output are on page 2 of ALV output. the total number of records being the same.
Do we have any other sol for this .
Thanks ,
Supriya Murudkar

Similar Messages

  • Page Number - Total Page number in Blocked ALV

    Hi Gurus,
      I need to print the page numbers like 1 of 5 in the ALV footer. Am able to print the current page number but am unable to print the total page number in the footer of the Blocked ALV. Can any one guide me how to display the total number of pages.
    Points will be awarded
    Thanks
    Ravi

    Hi,
    Please refer to the link below :
    http://www.sapdev.co.uk/reporting/alv/alvgrid_events.htm
    Thanks,
    Sri.

  • Page number problem with document imported from MS Word.

    I am a new Mac/Pages user and imported a Word document to use as a template to help me learn the Pages formatting nuances. This has worked well except for one problem. I have page numbers in the footer, but only the first digit of the page number shows up, i.e. 7,8,9,1,1...etc. I can't find a way to edit or delete the page number imported from Word. I can easily insert the page numbers through Pages but can't get rid of the imported pages numbers. Also, how do I prevent page 1 from receiving a page number?

    Hi,
    Others have reported difficulty removing page numbers from imported Word docs. I think it can be done, but it may not be worth the effort to repair the imported document when you can easily Select All and Copy the entire document and Paste it into a fresh Pages blank document without the improperly formatted, persistent Word page numbering.
    Jerry

  • Page number problem in Binder

    How can I get the page number to stay at the true bottom of a page (.5 margin) when pages have different numbers of lines? The document looks perfect in the saved PDF, but when it prints the page number is underneath the last line of text, sometimes in the middle of the page. I'm combining org charts created in Visio and saved as a PDF with pages of data from an Excel spreadsheet; the Excel pages are fine, but the org charts (some of which will print in landscape, others in portrait in the book that will be created from this binder) look awful.  Thanks in advance for help!  I'm pulling my hair out over this...

    Hi
    i am not getting your points, what you have done, for printing page no. create a secondary window and put its properties accordingly (in output options), see the screenshot below
    and then use the code i have written in my previous post, (in the above screenshot i am using this to print page no in footer area, you must change it accordingly)
    If you get hided please delete it and create a secondary window as shown in %WINDOW1
    and then create a text within it, and use the code i have written .
    I hope your problem will get sort out.

  • Workaround solution for page number problem in books to PDF

    I needed to create a spiral-bound book from Aperture, and decided to print to PDF to create a master rather than going through the online ordering option. Discovered the page numbers were always missing or jumbled whether I used the Automatic or Always On page number settings, even through they were displayed in Aperture correctly. In the final preview before printing to PDF, they become corrupted and no longer display correctly.
    To workaround this problem:
    1. Turn the Page Numbers option to Off in Aperture. (This option is located in the pull-down menu of the Gear icon under the pages thumbnails.)
    2. Print to PDF without any page numbers.
    3. Open your PDF in Adobe Acrobat Professional (to have write priveledges.)
    4. From the Document option in the top bar, Add Headers and Footers.
    5. Click the Footer tab, to add page numbers.
    NOTE: If you want to change the format of your page numbers on odd and even pages for a two page spread, you have to add them in two different passes. For example, insert page number in left column, then repeat action to insert page number in right column only while enabling replacement of existing page numbers. You can choose to start page numbering on any page.
    7. Save your PDF, and you can have it printed wherever you want.
    G5 dual quad   Mac OS X (10.4.7)  
    G5 dual quad   Mac OS X (10.4.7)  

    Hi,
      Use the window type as FINAL WINDOW, then your problem will be solved.
      Double click on the window and change the window type to FINAL.
    Reward if it is helpful.

  • Page number problem  in xml report

    hi all,
    I have created one xml report  for purchase order
    I want to print the page number and po number for each page ,
    to achieve this i have inserted at header section the page number as "1"
    but it is displaying for only 1 and 3rd and 5th pages and so on
    kindly help me on this 
    thanks for all in advance.

    >
    i have inserted at header section the page number as "1"
    >
    why?
    >
    but it is displaying for only 1 and 3rd and 5th pages and so on
    >
    of course
    use
    >
    Page numbering
    Insert page numbers into your final report by using the page numbering methods of your word processing application. For example, if you are using Microsoft Word:
    1. From the Insert menu, select Page Numbers...
    2. Select the Position, Alignment, and Format as desired.

  • Page Number problem

    Using ID 5.0.4, WinXP SP2, I still can't get page numbering to work properly. I've added three chapter files to a book.indb file. The book tab shows:
    1-20 for Chapter 1
    1-18 for Chapter 2
    1-20 for Chapter 3
    The page counts are correct, but the book tab thinks each chapter begins on page 1. But despite that, here's what each chapter file shows:
    Chapter 1 file shows pages 1-20,
    Chapter 2 file shows pages 21-38,
    Chapter 3 file shows pages 19-38.
    Since chapter 2 is indeed 18 pages, Chapter 3 seems to think it should begin on page 19, when it should in fact begin on page 39. I've tried every option I can think of to resolve this, but nothing has any effect.
    Book Page Numbering Options are set to "Continue from previous document" and "Doc Numbering Options" are set for "Automatic Page Numbering." "Doc Chapter Numbering" is also set for "Continue from Previous Doc." The "Start Section" box at the top is checked, but the box is greyed out, so I can't uncheck it (in case that would help).
    Is there a fix for this, or do I have to do it the brute-force way by turning off automatic page numbering and specifying a beginning page number for each chapter?
    Thanks, John

    Ta-da!! After more than a dozen tries, I finally got Shift-Ctrl-Alt to give me the Delete preferences pop-up. I did so, then opened the book again. All three chapter files began on page 1, but the "Update page & Section Numbers" option fixed it!!
    Another quirk (I think) is that my "Open a recent item" list shows the recently-opened chapter (.indd) files, but *never* shows the book.indb file. If I open the "Open" folder at the bottom of the list and double-click on the book.indb file, nothing apparently happens. That's because the book file opens *under* the InDesign list box. I need to move the box out of the way to find the book.indb file. No big deal, because I'll eventually kill this opening list window anyway. But sure is confusing.
    Peter and ManiSankar, thanks very much for all the help on this.

  • Page number problem while printing

    We are unable to get the page number while printing from SAP, we are trying to print a word document from SAP and when it prints the page numbers do not appear properly. if we save the document to the desktop and print, it prints properly.
    We print to a Xerox 7345 printer...we have loaded the exact driver, but still does not print. Can anything be done from UNIX side for this.
    the page number appear as 0/9 0/9...where it should appear as 1/9, 2/9..etc..
    Any help is highly appreciated, Hope there are some good Basis guys out here.

    Hi Aakash,
    Is it from report or SAP Script?
    Regards,
    Atish

  • Page Number Problem in Converted Word Document

    I opened a .docx file in Pages '09 and all seemed well. When I printed out a draft, I noticed that the second digit of my page numbers had but cut off. The page numbers appear just to the right of the edge of the header, yet are not part of the normal text. This is to say that I can't select them within the header or in the text field in order to change or delete them. Has anyone encountered a similar problem?

    Kashchei wrote:
    Thank you so much for your help--you saved me from hours of hair-pulling!
    This question was asked and answered many times.
    Searching in existing threads would have spare hours of hair-pulling!
    Yvan KOENIG (VALLAURIS, France) dimanche 27 mars 2011 22:11:40

  • Page number problem in smartforms

    Hi experts,
    I have this problel:
    1. I have 2 documents, the first have 3 pages and the second with 2.
    2. I would to print this page numbering: 1/3, 2/3, 3/3 for the first document, and 1/2 and 2/2 for the other one. I would print each documents in the same session, without multiple calling of the same form.
    Is it possible?
    Thanks.

    Hi,
    You have to create your own page counters and a new page window (type Final Window).
    This window is executed at the end of the smartforms, once for page, and you can add the logic for your counters in this window (depending on page name, ...)
    Regards,
    Pepe

  • Displaying page number in ALV grid display

    Hi,
    Is it possible to display page number in an ALV grid display?
    If yes, how?
    I tried it in top of page event, but it didnt work.
    Harmeet.

    hi,
    check out the sample code....
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program          = sy-repid
            i_callback_user_command     = 'F00007_USER_COMMAND'
            i_callback_html_top_of_page = 'HTML_TOP_OF_PAGE'
            it_fieldcat                 = g_t_fieldcat[]
            it_events                   = gt_events[]
            i_save                      = 'A'
          TABLES
            t_outtab                    = g_t_final_report[]
          EXCEPTIONS
            program_error               = 1
            OTHERS                      = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
          FORM TOP_OF_PAGE                                              *
    FORM top_of_page.
    write : sy-pagno.
    ENDFORM.                    "top_of_page
    Reward Appropriate points.
    Regards,
    Mansi.

  • Error with master page "insert current page number" when exporting book

    Using InDesign CS 5.5 for Windows
    Recently upgraded from InDesign CS (the really old one from 2003). I did save a copy of all my old version files and kept the old ID installed just in case (after reading all the horror stories on here).
    In my old version of ID, I created a book made up of about 70 documents. Some of these documents are one page, others have multiple pages. In the multiple page documents, I used the "insert ... current page number" character (or whatever the command was in the old version) on a master page, and formatted it to read, for example: Page 1 of 17, Page 2 of 17, Page 3 of 17, etc. When I exported my book to a pdf, it worked fine. (I do not want/have consecutive page numbers throughout the book, only in individual documents. By this I mean my entire book is about 280 pages, but not all of these 280 pages are numbered, just the groups of pages from these multi-page documents. It doesn't read page 1 through 280.)
    Got my upgrade to 5.5 a few months ago, added some documents to the book, and (if i remember right) when I saved the book it asked to convert every old version document to the new version, which I said okay. When I exported the book to a pdf, some documents that are longer than 2 pages are now numbered wrong; the numbers are now going like this: Page 1 of 17, Page 2 of 17, Page 2 of 17 (supposed to be page 3), Page 2 of 17 (supposed to be page 4), etc. Every page but page 1 is now page 2 of whatever.
    If I open the individual document and export it to pdf, the page numbers work fine. It's only when the document is exported with the book that the page numbers mess up. And it's not all the documents in my book; this error starts at a particular document and continues from that point throughout the rest of the book, affecting any document longer than 2 pages. Multi-page documents before this point in the book export with the correct page numbers.
    I create new documents by doing a "save as" with a previously created document and cut and paste as needed, so I'm not having to reformat or set up page numbers on each new document. I don't use layers or styles (I'm sure there's a better way to do what I need, but I've only had time learn the basics, just enough to be functional.)
    My attempts to fix this so far (using version 5.5), testing with the first document where the error appears: (1) I've removed the document from the book, deleted the insert current page number character, re-entered the insert current page number character, saved, exported the individual document to pdf and it worked fine. Put it back in the book, save, export, and it's wrong. (2) I took the document out of the book again, exported the document to .idml, saved as new .indd with new name, exported to pdf and it worked fine. Put it back in the book, save, export, and it's wrong. (3) I started up my old ID version, opened the old version of this document, exported to .inx, closed, opened .inx in ID 5.5, saved as new .indd with new name, exported to pdf and it worked fine. Put it back in the book, save, export, and it's wrong. (4) I moved the document up in the book order, putting it above a document that has correctly numbered pages, saved, exported to pdf, and this document was still wrong, but the one that has been numbered correctly all along is still correct. (5) I've compared settings for this document to others that number correctly and cannot find any difference.
    It's like the page numbers get hung on "2" when I export the book, but only in the last two-thirds of the book. Sorry it's so lengthy, but I hope this description of my problem is understandable. Any advice, other than going back to my old version documents and starting over?
    Thanks for your time and for all the awesome information this forum provides!
    alice

    Mr. Spier
    Right after I posted my question, I saw a post from last year where somebody had similar problems. (I cringed because I spent almost 3 days researching this problem and never ran across that post; thanks for not scolding me for posting a semi re-run.) I decided to try one of the easier solutions: I opened the problem document from the book panel, went to the master page and deleted the text box containing the page number, copied the page number box from a document that worked correctly, and pasted it into the problem document. Saved that doc, closed, saved book, exported to pdf, and it worked!! The page number problem was fixed. I went back and did the same thing for the other problem documents and they all number correctly now. 
    Probably not the best way, but for now this will fix it; I may have to do it again next time I add to the book. Although I didn't follow your instructions, I'll mark this as answered since it's working now. If it keeps giving me problems, I'll try the .inx export/new book route.
    thanks for your time
    alice

  • Page number in ALV report

    Hi all,
    I use top of page to print page number for ALV report. When i run my report in backgrond and see the spool, the page is always started from page 2.
    These does not happen when I use non-ALV report, report prints the header starting from page 1 normally. It is weird.
    does anyone of you ever face such of that problem ?
    thanks alots
    Alia

    Hi Alia,
    Page number is usually not set in an ALV display, as compared to  List processing.
    r u sure this is a requirement?
    chk this:
    ALV Print page numbers
    Regards,
    Anjali

  • Background task problem with alv grid display

    Hello !
    I have a problem when executing my program in background.
    In foreground I have no problem, my ALV appears. In the background I have a dump.
    The current ABAP program "SAPLKKBL" had to be terminated because one of the statements could not be executed.
    I use the function module 'REUSE_ALV_GRID_DISPLAY'
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
            i_callback_program      = gd_repid
            i_callback_user_command = 'F533_USER_COMMAND'
            is_layout               = gd_layout
            it_fieldcat             = fieldcatalog[]
            it_special_groups       = i_fgroup[]
            i_save                  = 'X'
            it_sort                 = gd_sort
            i_buffer_active         = ' '
            i_callback_pf_status_set = 'F534_SET_PF_STATUS'
         TABLES
            t_outtab                = mytab
         EXCEPTIONS
            program_error           = 1
            OTHERS                  = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    I don't understand where the problem is. Please help me.
    Thank you.

    I love replying to old threads:
    Try this link
    http://scn.sap.com/people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job

  • Page number obscured by background

    I have page numbers set on layer 3 on my master page, but on one page of my document I have a light blue background (on layer 1) and it is hiding the page number. The background object has no text wrap. I have searched the forums, but none of the possible solutions to this problem help me. I tried selecting the object and clicked Object > Arrange > Send to back, but that doesn't help. I would appreciate some assistance!

    That was it! I assumed higher-numbered layers are always at the top, but my layer 3 was actually below layer 1. I moved it, and all is well. THANK YOU SO MUCH!!   

Maybe you are looking for