How to display page number based on group.

Hi All,
I have a report and it consists two groups. First group is displaying 20 pages and the second group is displaying 30 pages. My requirement is to display the page numbers based on the group. That is, the second group output page numbers should start with 1 after displaying first group output. So, the page numbers should be as followed in the report output:
First group page numbers:
Page 1 of 20
Page 2 of 20
Page 20 of 20
Second group page numbers:
Page 1 of 30
Page 2 of 30
Page 30 of 30
How do I achieve the above requirement.
Thanks in advance.

Post your report related question in the [url http://forums.oracle.com/forums/forum.jspa?forumID=84]Reports Forum, this is the Forms Forum.
Tony
Message was edited by:
Tony Garabedian

Similar Messages

  • How to display page numbers based on group

    Hi All,
    I have a report and it consists two groups. First group is displaying 20 pages and the second group is displaying 30 pages. My requirement is to display the page numbers based on the group. That is, the second group output page numbers should start with 1 after displaying first group output. So, the page numbers should be as followed in the report output:
    First group page numbers:
    Page 1 of 20
    Page 2 of 20
    Page 20 of 20
    Second group page numbers:
    Page 1 of 30
    Page 2 of 30
    Page 30 of 30
    How do I achieve the above requirement.
    Thanks in advance.

    When you set the source to "Page Number" for a displayed field, an extra attribute appears on the property palette of "Page Numbering". If you click on this you'll see that you can cause it to reset on a group.

  • How to display page-no in alv list

    Hi All,
    I am trying to display pag number using events 'top-of-page'.
    when i write sy-pagno in top-of-page form its printing only 1, if i press page down i need to change the page number. it should display current pag number. How to achieve this. thanks.
    regards
    vishal

    we can print the pageno .I was also trying for the same finally succeded
    It can be done in the following manner
    DATA SORTING AND SUBTOTAL
    DATA: GS_SORT TYPE SLIS_SORTINFO_ALV.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'FIELD1'.
    GS_SORT-SPOS      = 1.
    GS_SORT-UP        = 'X'.
    GS_SORT-SUBTOT    = 'X'.
    <b>gs_sort-group     = '* '.            "<<<new page</b>
    APPEND GS_SORT TO GT_SORT.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'FIELD2'.
    GS_SORT-SPOS      = 2.
    GS_SORT-UP        = 'X'.
    gs_sort-group     = ' '.            "<<<new page
    *GS_SORT-SUBTOT    = 'X'.
    APPEND GS_SORT TO GT_SORT.
    ABAP List Viewer
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = G_REPID
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
    I_STRUCTURE_NAME = 'ITAB1'
    IS_LAYOUT =  GS_LAYOUT
    IT_FIELDCAT = GT_FIELDCAT[]
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
      IT_SORT = GT_SORT[]
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
      IT_EVENTS = GT_EVENTS[]
    IT_EVENT_EXIT =
      IS_PRINT = GS_PRINT
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    T_OUTTAB = ITAB1
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2.

  • How to user page-number in If Condition of XML PUBLISHER

    Hi,
    Can any body help me regarding my issue...
    I have to control footer to display in first-page only...but not in other pages.
    for this i am going in this way..
    my thought is to use IF condition by checking Page-number =1
    but in practice i am unable to put the same in Syntax
    by using <?fo:page-number?> i could able to display page-number , but how could use the same in IF condition....
    Please help me asap.
    Thanks in advance
    srinivas poda.

    Hi srinivas,
    Different First Page and Different Odd and Even Page Support
    If your report requires a different header and footer on the first page of your report; or, if
    your report requires different headers and footers for odd and even pages, you can
    define this behavior using Microsoft Word’s Page Setup dialog.
    1. Select Page Setup from the File menu.
    2. In the Page Setup dialog, select the Layout tab.
    3. In the Headers and footers region of the dialog, select the appropriate check box:
    Different odd and even
    Different first page
    4. Insert your headers and footers into your template as desired.
    At runtime your generated report will exhibit the defined header and footer behavior.
    search in this forum, for this first page display only, you can find quite number of solutions.
    and you cant chekc like page-number == 1 ,
    as the pages are rendered at time runtime, at that time only the numbers will be available.
    if you cnat find in this forum, please open this thread again.

  • How to set page number & current date in sqlplus result

    how to set page number & current date in sqlplus result

    Hi,
    Use the TTITLE command. For example:
    SET     PAGESIZE     15
    TTITLE     LEFT  &_date     RIGHT  "Page:" FORMAT 999 sql.pno     SKIP 2
    SELECT     ROWNUM
    ,     ename
    FROM     scott.emp
    ;Output:
    12-Jan-2011                    Page:   1
        ROWNUM ENAME
             1 SMITH
             2 ALLEN
             3 WARD
             4 JONES
             5 MARTIN
             6 BLAKE
             7 CLARK
             8 SCOTT
             9 KING
            10 TURNER
    12-Jan-2011                    Page:   2
        ROWNUM ENAME
            11 ADAMS
            12 JAMES
            13 FORD
            14 MILLER 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data. If your question is based on commonly available tables, like those in the scott schema, then you don't have to post any sample data: just post the output.
    Explain how you get those results from that data.
    Always say what version of Oracle (and other relevant softward, SQL*Plus in this case) you're using.

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

  • How to insert page number on each page for Cross-Tab report?

    Hi,
    I have created a Cross-Tab in the section Report Header via Crystal Reports 11.
    Now, I want to created more Cross-Tabs, and each page has one Cross-Tab.
    So, I insert Report Headers to contain Cross-Tabs. But, the report only shows the page number at the last page.
    How to insert page number on each page?
    Thanks in advance.

    Hi,
    Well, the easiest solution is to place the Cross-tab in the Report Footer, Of course, ONLY if the report contains this single object which I'm assuming is not the case.
    If you do not wish to place the cros-tab in the Report Footer, here's what you need to do:
    1) Create a formula;
    whilereadingrecords;
    2) Create a group on this formula. If the report already contains groups, move this formula to the top of the grouping list. It won't affect the other groups or records in any way.
    3) Move the Cross-tab from the Report Header to the Group Header1 and suppress Group Footer1
    4) Add the Page Number field to the Page Footer
    Let me know how this goes!
    -Abhilash

  • Get PDF Display Page Number Acrobat Reader

    Hi,
    I am working on some automation in that I used Acrobat Reader XI to view PDF.
    I want to get display page number of opened PDF.
    I used app.doc.pageNum();
    It is giveing me the page number when I used this code in Acrobat Debuger manually.
    But I am using VB.net. so please give me the solution how to run this code on opened PDF from vb.net and get the page number or can we create plugin which I can call from VB.Net code and get the page number
    because I am not getting app object in VB.net.

    sorry I typed it wron its app.doc.pageNum;

  • How to display page numbers in report

    hi all,
    i would like to know how to display page numbers in this format " 1 of 5" in the report.
    Any help would be much appreciated.
    thanks
    seema

    Hi,
    Check this too...
    Page No. in ALV output
    If you query is solved, kindly close the thread.
    Regards,
    Anjali
    Message was edited by: Anjali Devi Vishwanathan

  • Help needed- Reg: Display page number in SQL Reports

    Hi,
    I need to display page number in " page no: X of Y " format where X is current page & Y is total number of pages. Now I am able to display only the current page using ' sql.pno '. but not able to display in ' X of Y ' format.
    Any inputs in this regard will be helpful.
    Thanks & Regards,
    Anilkumar.

    Hello Anil,
    If you have the above requirement for Oracle Reports then follow the steps:
    1.In the Paper Layout view or Paper Design view, choose InsertPage Number.
    2. In the Insert Page Number dialog box, choose from the list the location for the page number.
    3.Click the desired page number format: Page Number Only or Page Number and Total Pages.
    Cheers,
    Suresh

  • How to hide page number in the table of content

    Hi,
    I'd like to know how to hide page number in the ToC. They show automatically, but at least for the headings of third ad fourth order I'd like to suppress/omit them.
    Thanks for any advice!

    You have in the Inpspector > Document tab > TOC > uncheck button for #'s

  • Displaying Page number in all pages of sap script output

    Hi All,
    I have a issues in displaying page number in all pages of sap script output.
    I have created a seperate window just above main window to display page number.
    I have given &PAGE& in the layout editor.
    Now in the sap script output i am getting page number as 1 in all the pages page number is not changing for pages-2,3, etc..
    Can anybody tell me the reason for the same!
    In some other objects same syntax is working fine. For this object it is not working!
    Is there any setting changes!
    Thanks i
    Thanks,
    Deep.

    Hi,
    Just check the Page Counter of the Next or Second Page which you defined.
    First page
    Mode                     START
    Numbering Type           ARABIC
    Second Page
    Mode                     INC
    Numbering Type           ARABIC
    Regards
    Bala Krishna
    Edited by: Bala Krishna on Oct 17, 2008 11:23 AM

  • How to Display the Report Based on The Page Number

    Hi All,
    I just have a requirement like this
    The User wants to see only the odd numbers of Report pages in the Total Report
    For Ex. If the Report consist of 10 Pages the user wanna see Pages 1,3,5,7,9...........
    is it attainable in WebI..............
    Please help on this
    Thanks in advance.............

    I wonder...how do you think user should navigate through document.... ? If I want to see only odd pages - I will either create separate report or I am ok with setting the correct number to actual displayed page.You may also consider using links - it depends how is report structure created...

  • How can i display page number in this format in xml publisher report (1-1)

    in this format
    1-1
    1-2
    1-3
    2-1
    2-2
    2-3
    can i display page nos in this format in xml publisher please help me on this

    Hi,
    Use the SET COUNTRY..
    SET COUNTRY 'US'.
    write: / sy-datum.
    SET COUNTRY 'IN'.
    write: / sy-datum.
    Thanks,
    Naren

  • How to display the results of the grouping horizontally

    Hello,
    I still cannot understand what am I doing wrong when trying to display the results of the grouping horizontally. Here is the original thread: How to group report vertically
    In the Section expert, for Detail section, I check the box Format with Multiple columns. Under the Layout tab, I check Format groups with multiple columns and set the width of the column at 3.3 in. This should give me 3 columns for Landscape orientation.
    Now if I select Printing direction Down then Across, I just have the regular vertical grouping.
    If I check Across then Down, then I do get 3 columns, but all the records in the Detail section are also spread across first instead of staying in the column.
    There should be something else that I should do to get the display like this:
    Header1    Header2    Header3
    record11   record21   record31
    record12   record22   record32
    record13   record23   record33
    etc.            etc.            etc.
    Thank you.

    I'm not at all sure columns are gonna help here, as there is no way that I am aware of to tell Crystal to start a new column.
    The only way that I can think of to achieve what you are trying to accomplish is to do something like this:
    In your group header's Suppress formula, keep track of the first (/ next) three groups that you want to print, using something like (basic syntax):
    global grouplist(3) as string
    global groupcount as number
    groupcount = groupcount + 1
    grouplist(groupcount) = {db.GroupingField}
    ' The NextIsNull below implies End-of-Data...
    if groupcount = 3 or NextIsNull({db.GroupField}) then
      formula = false  ' print the group header
    else
      formula = true  ' suppress the group header
    end if
    Then, create three formula fields to get each value in grouplist().  The group header format will then show the three formula fields.  Underneath these three formula fields, add subreports, which will show the details for one specific group.  The subreports should have a parameter for which group's details to show.  Use the three formula fields as the link to the three subreports.
    In the group footer, clear out the grouplist() array, and set groupcount to zero.
    This report will take a while to run, because having three subreports next to each other makes it difficult for Crystal to determine page formatting.
    HTH,
    Carl

Maybe you are looking for