XML Publisher - Page Wise Total

We are facing problem in incorporating ‘Page Wise Total’ in Invoice Report - Invoices print at format CAP_ETA for Germany. It an XML Report and its output appear in PDF format. As per the new requirement sent by L1 team, we are required to make changes in RTF, to show ‘Page Wise Total’.
We have worked on this enhancement but unable to display ‘Page Wise Total’. We are able to display Sum Total of all the records appeared in three different blocks of records for that particular page at the end of the footer of Page, but not yet able to SUM UP total of these three Sum Total of three different blocks on that particular page.
For e.g. First page of my XML Report display three different Block of data as shown below with Subtotal of 38,600.00, 4,453.47 for 1st and 2nd Block respectively, but 3rd block records appeared partially on the first page and remaining appeared on the next page. So My Report should display ‘Page Wise Total’ or ‘Amount Forward’ as 52853.47, which sholud be carried forward to next page as ‘Amount Forward’ - 52853.47. The next page/second page will dispaly the remaing line records of the 3rd block and Subtotal( Please see attachment New_Layout_Invoice_TUM_English.doc)
Name Description Unit Quantity Price Amount in Euro
Rösner Fees Day 17.00 1,400.00 23,800.00
Schreiber, Clemens Fees Day 2.00 1,400.00 2,800.00
Slegers, Arnd Fees Day 4.00 1,400.00 5,500.00
Weiler, Andreas Fees Day 4.00 1,400.00 6,400.00
Subtotal: 27.00 38,600.00
Römer, Michael Expenses 2,253.79
Schreiber, Clemens Expenses 157.69
Slegers, Arnd Expenses 519.78
Weiler, Andreas Expenses 1,522.21
Subtotal: 4,453.47
Rösner, Michael Travel expenses 2,400.00
Schreiber, Clemens Travel expenses 2,000.00
Siegers, Arndt Travel expenses 1,800.00
Weiler, Andreas Travel expenses 2,000.00
Marek, Gruchala Travel expenses 1,600.00
Amount forward 52853.47
As mentioned above we are able to show independently three different Page Wise Total of each of these blocks by using syntax:
<?add-page-total:block1amount;’L_AMOUNT’?>, this syntax is used to sum up all the line records appeared in a block for a particular page and
<?show-page-total: block1amount;’#####.##0,000’;’ ###.##0,000)’?> is used to display the Sum Total calculated by above syntax.
But we are not able to further sum up all these Page Wise Total of different blocks.
Please find attached copy of RTF file from Production (V18_CAR253E1), copy of RTF (V18_CAR253E1_TEST Where we are testing these new changes) and .out XML output file.
I need help on this issue
Thanks & Regards,
Praveen S Negi
[email protected]
91-09930799325

Hi Praveen,
You got the solution for page total in Invoice Report in XML publisher report.
Can you pls help regarding the same, i want to display total amount in the invoice report.
Thanks in advance,
Sunny

Similar Messages

  • Page wise total for multiple pages in xml template

    Hi all,
    I need to display page wise total for multiple pages in xml layout.I have tried with add-page-total and show-page-total tags but it is not working in my case.Anyone please provide me a solution to this. Thanks in Advance..It is urgent issue..
    Thanks
    Swapna

    This issue has been resolved.
    We had a call to the method "makeOutputFlat(true)" before the call to "FormProcessor.process()" that was corrupting the PDF template file.Once we took that off , the PDF is now printing multiple pages.

  • Urgent:page wise total in smartforms

    hi,all
    How to do page wise total in smartforms   ?
    use table in smartforms for summary in pagebreak
    ex. page1
    10 (line 1)
    20 (line 2)
    30 (line 3)
    total 100
    page 2
    40 (line 1)
    50 (line 2)
    total 50
    Total in page 1 incorrect = line1(page1) + line2(page1) + line3(page1) + line1 (in page2)
    Total in page 2 inccorrect = line2 (in page2) .
    please help me guys to solve this problem..

    r u printing the internal table data using the TABLE node then--> in the Calculation tab u can do this.
    first create a variable in Global difinations-->global data tab.(ex v_tot)
    then in the TABLE>calculations TAB> 1select ->sum then 2nd colun>give the field name which u want to calculate (ex-wa_itab-netwr) in the Target Filedname tab> give the varialbe u have declared for the total(ex v_tot). in TIME colums select AFTER theLOOP...
    then in theTABLE>footer>inset a line display the variable(total u r using).here
    after the the printing the total..->create a program lines> cleat the v_tot... why u need to clear this is.... u want to display only the total value which are displaying in the current page... after printing this v_tot... clear this... so that in the next page it start totaling the freshly...
    lem me know if u have any clarifications.
    u can calculate as the above way for all the 6 fields.
    please Avoid postin duplicate threads

  • JSF datatable pagination - showing page wise total.

    Hi All,
    i am ok with normal pagiation. but i have a requirement to show total count of a column page wise in the footer and also total count of th column at the datatable bottom.i can able to get total count but how can we show page wise total count in the footer of datatable. please help me in this
    Regards,
    A.

    So you want something likedouble subTotalPrice = 0.0d;
    for (int i = dataTable.getFirst(); i < dataTable.getFirst() + dataTable.getRows() && i < dataList.size(); i++) {
        DataItem dataItem = dataList.get(i);
        double dataItemPrice = dataItem.getPrice();
        subTotalPrice += dataItemPrice;
    return subTotalPrice;?

  • XML publisher - page number not displaying

    Hi,
    I am creating a report using xml publisher rtf template ,The result is being displayed in a table if the no of rows are more the table may extend to several pages, I want to display page numbers like 1 of 5 on First page,2 of 5 on 2nd page and so on, also is it possible that the table headers are repeated on next page?
    Thanks in advance....

    Hi,
    Use <?start:body?> for defining your header and it will repeat on every page.
    Also add <?end body?> as closing, for footer logic.
    BR
    Magnus

  • XML Publisher - Page Hangs on clicking export button

    Hi,
    I have a requirement to open a pdf file from xml publisher report on click of a button. I captured the event of the submitButton and wrote the code as follows:
    if("Event.Submit".equals(s1)){
    OAApplicationModule am = (OAApplicationModule)pageContext.getRootApplicationModule().findApplicationModule("XXAM");
    XMLNode xmlNode = (XMLNode)am.invokeMethod("getQuoteDataXML");
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
    try{
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=ABC.pdf";
    response.setHeader("Content-Disposition",contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    //Generate the PDF Report.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    "ASO",
    templateCode,
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF,
    null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    }catch(Exception e){
    response.setContentType("text/html");
    throw new OAException(e.getMessage(), OAException.ERROR);
    pageContext.setDocumentRendered(false); // I'm not sure why, but found something similar online
    The download window opens properly. But, the mouse icon is changed to hourglass and I cannot click on anything. I have to move to any other window in my system and comeback to this page to click on the save button. Also, once the file is downloaded I cannot click on anything on that page. I have to use browser back button to go back to previous page.
    Really appreciate any help to solve this issue.
    Thanks,
    Bharath

    Reetesh,
    No, this is not completely custom development. I have to invoke a custom report from a seeded page. And there happens to be button bean on it.
    If u look at the code above, I'm already trying to capture a fireAction event (Event.Submit) and trying to launch the report. But it doesnt work.
    Please let me know of any other suggestions you have to make this work.
    Thanks,
    Bharath

  • Page wise total

    Dear All
    i develop a tabular report in oracle reports 6i with grand total at last page,,
    after that i want total of every page show at the end of every page , and at the end of report show grand total of the report as it shown
    how can i break the total of every page wise ,, i change from the "Reset at" Page , but it show only last page with last page total , not every page total on every page
    please help as soon as possible

    Hi,
    I think you have to create one moe summary column for this purpose provide the source of same column of Grand Total in place of reset at report end choose reset at page .
    And place this summary column at page layout, will solve your problem.
    Shishu Paul

  • How to display the total of a particular xml element page wise

    Hello friends,
    My requirement is like I need to display an xml element Margin along with the other elements..Now I want the sum of margin element for each page... how do I do it in the rtf template.. and the end user views it in pdf form...
    thanks in advance

    Can you check the example in http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm#4535379
    You can also check an example in your local machine in C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\samples\RTF templates\Advanced\Page Total

  • How to display page wise totals in Smartforms

    hi,
    I created Tax Invoice for SD my quetion is i have 10 items 5 items are displaying in first page and rest of 5 items are displaying next page.
    in first page 5 items i have to display the total amount in first page and same like second page also please help me.
    regards

    Hi,
    Create two global data variables called pag_total & currentpage and initialize currentpage as 1.
    if currentpage <> sfsy-page.
       pag_total = 0.
       pag_total = pag_total + column value(which values u want to add).
       currentpage = sfsy-page.
    else.
       pag_total = pag_total + column value(which values u want to add).
    endif.
    Write these lines in main area table row of that particular column cell and store the SFSY-page value also in a global variable(currentpage).
    Then write the pag_total variable in the footer.
    Thanks,
    Venkat

  • Regarding smartform page wise total.

    hi
    guru's
    i  am having doubt on smartform
    i want to   caluclate  sum of qunatities in pagewise
    Regards
    Anand

    Hello Anand ,
           Really good Question.
    As per my knowledge and understanding it is possible only a only when , when the you know the no of row you can print in Main window  like......
         In my Main Window I can print 5 Row . Then in the Footer you can Code like this. That's i don't thing big issue. But majar thing on the basic of your data in internal table (you can say how many row can be printed in first and so on page).
    I haven't done this yet , quite sure it will help you.
    Regards
    Swati namdeo

  • Page Total in xml publisher layout

    Hi all,
    I have a requirement to calculate page wise total and grand total of an amount column in xml publisher layout. I tried with <add-page-total> and <show-page-total> tags, but grand total is displaying in all the pages. I need to display page wise total in all pages and grand total(sum of page wise total) only in last page. Anyone please provide me a solution to this. Thanks in Advance.
    Thanks & Regards,
    Subha Vagheesan

    to which column do u wnat to calculate goto that column
    <?add-page-total:variable_name;Column_name?>
    ex: <?add-page-total:inv;INVOICE_AMOUNT?>
    finally goto footer write
    <?show-page-total:inv;"999G990D00"?>

  • To find total number of pages in XML publisher

    1. Is there any method to find the total number of pages in BI or XML publisher.
    2. Is there any method to to repeat the column(Not rows) on every page.For eg you have table with two columns say "A" and "B" .I want to repeat this B in every page . And A should print only in first page.
    3. Is there any method to print a text say "ABC" only on first page footer based on condition.
    Thanks
    Wazid

    Exactly what my requirement is- In my template i have set header and footer page setup as "different first page'" and also printing the user text at the bottom of the last page using <?start@last-page-first:body?> <?end body?>.When i run the template, for multiple pages output user text is displaying at the bottom of the last page that is working fine but for single page output user text is not displaying at the bottom of the page because of the ""different first page'" header and footer.If you have any idea please suggest.

  • XML Publisher pdf output need each page wise start and end number

    Hi ,
    I have xml publisher out put in PDF. Now i need on each page header and detail part.
    In header for each page it should repeat and should be print the min and maximam number of the columns.
    I mean in the header start and end number of the column value for that particular page.
    I did many ways but there is no luck.
    Can you please suggest me how to do.
    Thanks
    Sampath

    pls give me reply on this if any body have the answer

  • How to print total amount in last page of purchase orde using xml publisher

    Hi
    I customizing purchase order report using xml publisher.
    i have to print total amount at last every purchse order.
    how to compare carry forward amount in xml publisher

    I think the guys overhere :
    BI Publisher
    can help you a lot better

  • Defining page size in XML Publisher

    Can we define page size using XML Publisher APIs.
    We have a problem where a single RTF template will be used for different countries and depending upon the country, the report needs to be printed on Letter or A4 or anything.
    I could find a parameter for Orientation but none for page size.
    Is there something we can do for defining page size or we need to rely on the printer setup.
    Regards,
    Satrajit

    to which column do u wnat to calculate goto that column
    <?add-page-total:variable_name;Column_name?>
    ex: <?add-page-total:inv;INVOICE_AMOUNT?>
    finally goto footer write
    <?show-page-total:inv;"999G990D00"?>

Maybe you are looking for

  • Using a Table as a Default Value in a Custom List

    Hi, I am trying to create a list for users to fill out that utilizes multiple tables for data entry. I would like to set the table to be the default value for the field in order to have consistency across submissions and for ease of use. I have tried

  • HT201415 How to unlock my iphone 5s

    How can I unlock my iphone 5s from sprint

  • Add subscript in Dreamweaver code screen

    In Dreamweaver - How do you add HTML elements to the favorites insert menu that are not on the list? For example, I want to add <sub> and <sup> so I can highlight and code math equations> Thanks

  • CS4 ACR: How do you save crops?

    My crops are moved around once a folder is reopened after cropping dozens of images to that folder. Should I crop each individual image, then "Save Image" or click "Done" after cropping each individual image? Should I crop all images, individually, "

  • HT204053 How to make a apple id

    U creat your acct. for the apple ID