Page Numbers in XML Report

Dear Members,
I'm using Oracle Applications V 11.5.10.2, Microsoft Office 2010 and XML Publisher.
I've developed a XML Report.
In this report I want to display the below fields:
1/ Page Numbers
2/ Report Date
Can any one please let me know how to achieve this.
Many thanks in advance.
Best Regards,
Arun Reddy D.
Edited by: A4S on Jun 8, 2010 7:31 AM

Hi,
Thanks for your response.
When we run the report if it has 5 pages, then on first page it should print 1/5, on second it should print 2/5.....on last page it should print 5/5.
Similarly if it has 10 pages then on first page it should print 1/10, on second it should print 2/10.....on last page it should print 10/10
Numbers should be generated automatically.
Coming to the report date on the first page, I want to display the date on which this report has been generated.
As usual many thanks for your help.
Best Regards,
Arun Reddy D.

Similar Messages

  • Page numbers from XML output file

    Scenario:
    We have a situation here where we would need to create an XML document and a pdf file produced by an Oracle 11i EBS report. The XML document will need to have the number of pages the report (in pdf) has produced.
    For example, if I have two sales orders in the pdf report. And, the first order has three pages and the second order has five pages, we would need to create an the XML document with:
    <order>1
    <page>3</page>
    </order>
    <order>2
    <page>5</page>
    </order>
    Question:
    Is there a way for us somehow to capture the number of pages for the order (using my example) in the XML template? We want to capture it and use it to populate our XML document.
    Thanks
    Kamalakar.G

    Hello,
    If you know at which xml (data) branch you should break for each page, and your format template is setup to do so, you should be able to predetermine your page numbers using node counting.
    I have used node counting only one or two times myself and (at the moment) can not even find the report(s) I used it with (sorry, just way, way too many reports around here... :-( )
    Anyway, it is pretty straitforward and is documented at:
    http://www.ibm.com/developerworks/library/x-tipnodst.html#1
    A google search on XSL and node revealed many other sites with examples as well.
    (ex. http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/XML/Q_21875961.html )
    Good luck and if I ever find one of the reports I actually used it in...I will post my code.
    Scott

  • Horizontal page numbering - Crosstabs -Crystal reports 2008

    Hi All,
    We have Crosstab tab  in which columns grows horizontally and rows too grow vertically. It automatically page breaks when it reached the page layout width.
    My requirement is to number the all the pages in Page N of M format.
    But if we use the special field "PAGE N of M" it doesnot number the horizontal pages  (it can be only be repeated)
    If we use the special field "Horizontal page number"- it number horizontal page number alones.
    Is there any workaround to number the horizontal (virtual)pages also along with the normal pages.
    We tried on various formulas by making use of no.of columns but nothing worked out.
    It would be of great help if someone helps me out in a workaround for numbering all the pages(including the horizontal pages)
    Thanks in advance.

    Jamie,
    I did try to implement your example to my existing report.
    My current report will always have expanded horizontal pages for two different crosstabs from two different group footers.
    When I attempted to add the {@ Page Header} field/formula to my crosstab Column, it automatically changed to a different database field from my database.
    Have you experienced this before?
    Other then that, the pages seem to be getting counted correctly by the {@Page Number} formula.
    Here is a screen shot of my current report.
    I need my page numbering to be at the bottom center for all of my pages.
    https://www.dropbox.com/sh/89ub6l2rfx2el80/9W27lbMBnP
    Thank you.
    Stephen

  • How to get the print the page numbers in a report  based on another report

    Hi
    I have a requirement in which i need to print the page number based on another report
    example my request set has 3 reports
    1 report prints 1- 100 pages
    2 report page number should start from 101 - 110
    3 report 111-
    Can anyone please let me how to achieve this?
    Thx in advance
    Kumar

    Hi,
    You can create all the three report queries in one report creating separate query in the data model and then create the layout in proper sequence as required.
    If you want to use separate reports only you might try the following:
    In the first report use the after-report trigger and save the total no of pages in a table as a record.
    In the second report fetch the value stored in the table and add it to the Page No. to obtain the Page No for second report.
    Also in the second report use the after-report trigger and update the record created in first record to total no of pages + total no of pages of the first report.
    In the third report fetch the value stored in the table and add it to the Page No. to obtain the Page No for third report.
    Do remember to delete the record created in the table after-report trigger of the third report.
    Hope this helps.
    Best Regards
    Arif Khadas

  • How to specify page encoding for XML reports.

    Hi,
    Environment: Apps:11.5.10, Oracle Reports: 10g
    I'm trying to generate XML tags by using a "rdf" report (10g).
    Initially I generated the XML tags before moving the report to server. In the output file I got
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    Then I moved the report to server and made the concurrent program output to XML.
    In the concurrent program output the tag is
    <?xml version="1.0" encoding="&Encoding"?>
    The output shows error
    ===============
    XML Parsing Error: XML declaration not well-formed
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    <?xml version="1.0" encoding="&Encoding"?>
    Its clear that there is something wrong with page encoding format which has to get assigned while run time. But its not happening so.
    How to specify the page encoding format?
    Any help would be appreciated.
    Thank you
    BKR.
    Edited by: BalaKrishna Reddy Avuthu on Aug 14, 2009 2:00 PM

    Remove the encoding so it says:
    <?xml version="1.0"?>
    Also, you will get a similar error if your xml tags for fields contain any special characters like & or #.

  • How to Display Page Numbers in ALV Report HTML End of page Event

    hai Gurus
    Greetings
    Please tell me how to get current page noumber and total number of pages in ALV Report (in HTML End of Page Event)
    i tried with sy-pagno system field but it is not working
    so please guide me
    Thanks
    Ramesh

    check below code....
    *Work area for Layout
         gf_layout       type  slis_layout_alv,
    *Work area for HEADER FOOTER    
         gf_header type slis_listheader,
    *Work area for Field catalogue    
         gf_fieldcat     type  slis_fieldcat_alv.
         it_top_page type slis_t_listheader,
    *Internal table for Field catalogue    
         it_fcat      type slis_t_fieldcat_alv.
    perform:fill_layout,
                  prepare_header,
                  field_catlog,
                  display_report.
         Form  fill_layout
    form fill_layout .
      gf_layout-colwidth_optimize = 'X'.
    endform.                    " fill_layout
         Form  field_catlog
    form field_catlog .
      data : lf_fcat type line of slis_t_fieldcat_alv,
             l_cnt type i.
      clear : lf_fcat, l_cnt.
    Employee Number
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'EMPLID'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 8.
      lf_fcat-seltext_l   = text-003.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Last Name
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'USERNAME'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 20.
      lf_fcat-seltext_l   = text-004.
      append lf_fcat to it_fcat.
    *First Name
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'EMPMAIL'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 40.
      lf_fcat-seltext_l   = text-005.
      append lf_fcat to it_fcat.
    *Known As
      clear  lf_fcat.
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'EMPSTATUS'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 10.
      lf_fcat-seltext_l   = text-006.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *System UserID
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'COSTCENTER'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 10.
      lf_fcat-seltext_l   = text-007.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *EMail ID
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'DEPTDESC'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 8.
      lf_fcat-seltext_l   = text-008.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Employment Status
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'LOC'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 20.
      lf_fcat-seltext_l   = text-009.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Personnel Area
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'TITLE'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 40.
      lf_fcat-seltext_l   = text-010.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Personnel Area Text
      clear  lf_fcat.
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'HDATE'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 10.
      lf_fcat-seltext_l   = text-011.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Country Grouping text
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'MGRID'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 10.
      lf_fcat-seltext_l   = text-012.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Cost Center
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'MGRNAME'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 20.
      lf_fcat-seltext_l   = text-013.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Employee Group
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'MGMAIL'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 40.
      lf_fcat-seltext_l   = text-014.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Organizational Unit
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'DIV'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 25.
      lf_fcat-seltext_l   = text-015.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Supervisor
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'BUSUNIT'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 25.
      lf_fcat-seltext_l   = text-016.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    endform.                    " field_catlog
         Form  display_report
    form display_report .
      data : l_repid type sy-repid.
      clear l_repid.
      l_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program          = l_repid
          is_layout                   = gf_layout
          it_fieldcat                 = it_fcat
          i_callback_top_of_page      = 'TOP-OF-PAGE'
        tables
          t_outtab           = it_employee
        exceptions
          program_error      = 1
          others             = 2.
    endform.                    " display_report
         Form  PREPARE_HEADER
    form prepare_header.
      data:l_header1(20),
           l_header2(60).
      data:l_header3(20),
         l_header4(60).
      l_header1       = 'Met Life Census Data'.
      l_header2+40(8) = 'Run Date'.
      write sy-datum to l_header2+50(10).
    header
      gf_header-typ  = 'S'.
      gf_header-key  = l_header1.
      gf_header-info = l_header2.
      append gf_header to it_top_page.
      clear gf_header.
    endform.                    " PREPARE_HEADER
    form top-of-page.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        exporting
          it_list_commentary = it_top_page.
    endform.                    "TOP-OF-PAGE
    *& Form end_of_list_html
    output at the end of the list - not in printed output *
    FORM END_OF_LIST_HTML USING END TYPE REF TO CL_DD_DOCUMENT.
    DATA: LS_TEXT TYPE SDYDO_TEXT_ELEMENT,
    L_GRID TYPE REF TO CL_GUI_ALV_GRID,
    F(14) TYPE C VALUE 'SET_ROW_HEIGHT'.
    LS_TEXT+0(20) = 'Total Employees'.
    LS_TEXT+40(10) = g_count.
    CALL METHOD END->ADD_TEXT
    EXPORTING
    TEXT = LS_TEXT
    SAP_EMPHASIS = 'STRONG'.
    *adds new line (start new line)
    CALL METHOD END->NEW_LINE.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    e_grid = l_grid.
    CALL METHOD l_grid->parent->parent->(f)
    EXPORTING
    id = 3
    height = 10.
    ENDFORM.

  • How to Get the Total Page Count in XML Reports?

    Hi All,
    we have a requirement where we have to print Page X of Y(Total Page Count of the document).
    But whenever my header group resets the total count is also reseting.
    for e.g.
    I m getting the page 1 of 4, page 2 of 4, page 3 of 4, page 4 of 4 for my first record.
    same way i am getting page 1 of 3 ,page 2 of 3, page 3 of 3 for my second record.
    But the requirement is to display page 1 of 7, page 2 of 7, page 3 of 7, page 4 of 7 for the first header record.
    And page 5 of 7, page 6 of 7 and page 7of 7 for the second record.
    Is there any way to achieve this?
    Thanks,
    Sachin

    You might have better luck getting an answer here:
    BI Publisher

  • Customer Statement - Page Numbers

    Has anyone been able to solve the page numbering problem on the statement report?
    For example: If you have page numbers visible, the report runs each page 1,2,3,4 etc, where we need to have 1st customer page 1, 2nd customer page 1 and page 2, 3rd customer page 1 etc.

    Hi,
    In version 2005 there is no solution for this and unfortunately there is no workaround either as I know.
    Regards,
    Nat

  • Printing page numbers in ALV Hierarchical

    Hi All,
    I have a requirement to display page numbers in the report and also when in printing the page numbers will be displayed like this 'Page xx of yy'. I placed this one in the top_of_page event of the function module REUSE_ALV_HIERSEQ_LIST_DISPLAY. The only display is the Page xx while yy is not. For xx i used the sy-pagno but for the yy as total numbers i try all system fields but still not display. Please help its urgent guys.

    Hi,
      Check thease therds
    https://forums.sdn.sap.com/click.jspa?searchID=12193297&messageID=269935
    https://forums.sdn.sap.com/click.jspa?searchID=12193297&messageID=2461055
    Regards
    Kiran Sure

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

  • Report Generation Toolkit: Page Numbering

    When creating a Word Report using the Report Generation Toolkit, I am using the Word Set Page Numbering.vi to display the page numbers in the footer of each page of the report. This works fine when the include page x of n switch is turned OFF. However, when the switch is turned ON the numbers only show up in the left footer regardless of the position setting.
    Is this a known bug?
    If not where do I report it?
    I guess I just did...

    Hi Drugar,
    I have filed a CAR (43K9NBF2) regarding this issue.  I will look into fixing it for the next version of the Report Generation Toolkit.  If you want to workaround the problem for now, go into vi.lib\addons\_office\word.llb\Word_auto_text_entry (for page number).vi.  You can get a reference to the "Selection" property of the Application class.  Then under Selection, get a reference to "ParagraphFormat".  Then, you can set the "Alignment" property of the ParagraphFormat class.
    Thanks for reporting this issue, and let me know if you have any other questions.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How do I use page numbering and a text block in a footer in Word with the Report Generation Toolkit?

    I am creating a Word document with the Report Generation Toolkit, and LabVIEW 8.2.1. In the report I am using a template that has page numbering enabled in the center. When I try to add a text block to the left side footer, it eliminates the page numbering and adds my text on the left side. I found "Set Report Footer Text" and "Word Set Page Numbering" vi's that may be the clue to this. When I use these two vi's I either get Page 1 of 456789-001 on the left side, or if I reverse the order I get only 456789-001(text) in the left side with nothing in the center. What I would like to achieve is 456789-001(text) on the left footer, and Page 1 of 2 in the center. Is this possible and if it is, then how can I do it?

    Hi SciManStev,
    I have attached a vi where you can see how they can be made to work together. You have to design it such that one follows the other. If you don't design it that way, it results in a race condition and only one of them get executed.
    Good Luck!
    Warm regards,
    Karunya R
    National Instruments
    Applications Engineer
    Attachments:
    SciMan1.vi ‏14 KB

  • 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

  • Arabic numbers issue in XML Report

    Dear Experts,
    I have one arabic xml report, when i ran the report it showing english numbers, instead of arabic numbers.But in the output i should get arabic numbers.
    Please find the attachment of xml template and output.
    could any one help me on this, its urgent.
    Thanks in advance.
    Best Regards
    Amar

    Dear Experts,
    I have one arabic xml report, when i ran the report it showing english numbers, instead of arabic numbers.But in the output i should get arabic numbers.
    Please find the attachment of xml template and output.
    could any one help me on this, its urgent.
    Thanks in advance.
    Best Regards
    Amar

  • Creating an XML Report from OAF page

    Hi All,
    I have a requirement to create a PDF report from an OAF page. From the below code , I was able to print the XML with the values.
    I know i should map this XML to RTF by creating the Data defiition through XML publisher responsibility.
    My understanding :
    1. Generate the XML from Conttroller
    2. Load the XML to RTF and map the fields
    3. Register as Data Definition and RTF
    4. Output seen
    MY QUESTION IS : If i load the values from the below XML to the RTF and register in the data definition , i will get the same values every time it is right . From my understanding, if the data has to change in the report, ,there should be a way which will directly send the generated xml from the controller to the RTF (Without step2)
    I DEFINITELY BELIEVE, THAT I AM MISSING SOME THING HERE . PLEASE HELP ME
    public void processRequest(OAPageContext pageContext,
    OAWebBean webBean) {
    super.processRequest(pageContext, webBean);
    OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("colorVO1");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    //(XMLNode)vo.writeXML(4,"")
    try {
    ((XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS)).print(outputStream);
    } catch (IOException e) {
    // TODO
    throw new OAException("The value of VO is " + vo,
    OAException.CONFIRMATION);
    System.out.println(outputStream.toString());
    Generated XML :
    <colorVOEx3Row>
    <UserName>abc</UserName>
    <UserId>33102</UserId>
    <CreatedBy>27241</CreatedBy>
    <Clr1>0</Clr1>
    </colorVOEx3Row>
    <colorVOEx3Row>
    <UserName>deg</UserName>
    <UserId>33604</UserId>
    <CreatedBy>1135</CreatedBy>
    <Clr1>0</Clr1>
    </colorVOEx3Row>
    <colorVOEx3Row>
    <UserName>****mno</UserName>
    <UserId>33643</UserId>
    <CreatedBy>24587</CreatedBy>
    <Clr1>2</Clr1>
    </colorVOEx3Row>
    </colorVOEx3
    Please let me know what should me my next steps to generate the report. if i load the XML above to the RTF , irresepscive of my data from teh page, i will always get the 3 rows.i..e..(abc,def,*** mno).
    Hope i am clear.

    Hi Anand,
    Thanks for your reply. I have gone through the link you provided . It gave me excellent information. But just one clarification , when we create the data definition, dont we have to add any of the files like 'XML Schema','Data Template','Preview Data','Bursting Control File'.
    The reason, i am asking this question is, when i proviously worked with XML reports in 11.10.2, we used to attach a .xml file to the Data Template of the data definition ,which would populate the RTF.
    Now here, if i dont attach that file in the data definition, will the XML data direclty mapped from contrlloer ?. I assume ,The only thing i need to do is to MAP the XML tags to RTF before registering ..
    Please let me know if i am missing some thing
    Thanks
    Sunny

Maybe you are looking for