Page Totals

I need the report in the following format,
Page - 1/3
..... 5
..... 5
--C/F 10
Page - 2/3
--B/F 10
..... 15
..... 15
--C/F 40
Page - 3/3
--B/F 40
..... 25
..... 25
Report Total 90
When I used the default facility of page totals the results were as below,
Page - 1/3
..... 5
..... 5
--C/F 10
Page - 2/3
..... 15
..... 15
--C/F 30
Page - 3/3
..... 25
..... 25
--C/F 50
Report Total 90
Then I used formula column to assign the values to variable and the results were
not satisfactory.
:Variable := :Variable + :Current_Page_Total;
With this I was able to get C/F but I don't need it on the last page as there
will be report totals there and it displays at the end of page so after report
total. I don't need B/F on first page and C/F on last page.
I hope the problem is not clear and if still any query the please.
Thanks for your time.
C/F = Carried Forward
B/F = Braught Forward

It sounds like you want to be able to determine if you are on the last page. If you are, you want to prevent an object being displayed.
A common way of doing this is to have a total count summary column (cs_total) and a running count summary column (cs_running). When :cs_Total = :cs_running then you know you've finished the report and can use a format trigger to hide the last "C/F" value.
The problem with this approach in your case, is that it will only work for objects in the body area. Since all margin objects are printed before the body objects, you can't base printing of margin objects on what happens in the body of the page.
The following isn't trivial to do but may give you a workaround for this constraint...
One way around the issue may be to place the "CF" object in the margin but move it so that it overlaps the body area. (Margin objects may exist under any point of the page. They don't need to exist outside of the thick black line). You can then place an opaque boilerplate object in the body on top of the "CF" field. This opaque object can be turned off except for the last page. This effectively blanks out the "CF" field on the last page.
The trick to make this work is to create a fixed sized frame for your body values (except the opaque frame). This fixed size frame should be the size that you want your body page to be - which will not be the complete body area so re-size the margin if required. You can then place the opaque boilerplate after this fixed size frame so it covers the "CF" field.

Similar Messages

  • Displaying page total on a page with fixed number of lines

    Hi ,
    My requirement is to have a fixed number of rows per page (say 20) and to have a page total beneath the table containing the data.I am using a RTF template.The columns in the table are
    Order
    Amount
    Page Total : 3000
    For including a page-break after 20 lines, i have added the following code.
    For - each ______________
    <?if:position() mod 20 =0?> <xsl:attribute name="break-before">page</xsl:attribute> <?end if?>
    end - for_______________
    This limits the no of rows per page to 20.
    I have tried 2 ways to display the page total but both don't seem to work Can someone please point what i am missing here?
    1) Using add and show-page-total
    I added the code (<?add-page-total:at;'Amount'?> to the Amount data column in the template and then used the <?show-page-total:at?> in the page total data column to display the total. But this doesnt work.It doesnt display any value.
    2) Using Variables:
    I declared a variable (<?xdoxslt:set_variable($_XDOCTX, 'RTotalVar', 0)?>) before the table. Then, i used the (<?xdoxslt:set_variable($_XDOCTX, 'RTotalVar', xdoxslt:get_variable($_XDOCTX,'RTotalVar') +Amount)?>) in the Amount data column to calculate the sum. I then used <?if:position() mod 20 =0?> <?xdoxslt:get_variable($_XDOCTX, 'RTotalVar')?><?end if?> in the data column of the page total. But this doesnt work.  The variable loses its value when it is displayed outside the table. Why is it so? How can i declare a global variable? I am not sure why the variable loses it value when taken out of the table. I would want it hold the value through out the document. Is my understanding correct?
    Kindly help me with this issue.
    Thanks,
    Vidhya

    Hi
    I have the same issue. could anyone provide the link or template. I searched in the forums but couldnt find related to this post.
    please help
    Thanks

  • Printing Grand Totals in Footer along with page total

    Hi
    I have a report which prints PO Header and PO Lines. For each page while iterating thru PO Lines I print page total in the footer.
    Once all PO Lines are printed with page totals in the footer of each page, I want to print Grand total in the last page in the footer along with last page total. Currently my XML data has pre-computed grand total in the PO Header block.
    The problem
    I have wrapped header and lines inside <?start:body?> and <?end:body?> which allows me to print page totals outside the <?end:body?> tag.
    I print page totals and "Continue" next to it in the footer. But
    Finally when grand total comes into picture in the outer loop I want to replace "Continue" text with grand total value in the last page and print it as footer.
    I tried to use xdoxlt:set_variable() function to flag a variable value to 1 when iteration happens in HEADER block and set it to 2 in inner loop of lines block. But the scope of the variable is confined between <?start:body?> and < ?end:body? and is not visible outside the <?end:body?> tag.
    The logic I want to accomplish is
    if var = 1 then
    print page total and "Continue"
    elsif var = 2 then
    print page total and Grand Total.
    end if
    This logic doest work as the value of var is not visible outside the body tag.
    I want to use this variable value to print footer which lies outside <?end:body?> tag with grand totalor page total
    Please suggest if there is any other way I can accomplish this functionality. Can we use parameter and update it. Syntax for update parameter value is not clear in user guide.
    Any help would be appreciated.
    thanks
    sukarna

    thanks for the info, i was trying to avoid this but had already reached the same conclusion.
    everything else seems to be very time consuming and may not work correctly in the end.
    we're on Oracle Applications : 11.5.10.2 which has just been converted to utf-8 and is an Oracle On-Demand installation.
    do you know if 5.6.3 of the publisher is supported and any ideas on how difficult it is to get it installed?
    cheers
    ellen

  • How to show a Page Total in a Main Report that is calculated in a SubReport

    Hi,
    I have a Main Report and a SubReport with the detail.
    The Report has several pages. I want to show a Page Total in each Page, retrieving data that is in the subreport (Detail).
    I tried to use a shared variable, but the problem is that the formula fields are assigned at the end of the subreport, so I can't pass the value back (to the main report) until the last record of the subreport is printed.
    I also can't show the Page Total at the subreport, because I have a particular format that I need to respect and only can be printed from the Main Report.
    Is any way to do this ? At this moment, with the shared variables I'm getting 0 until the last record is printed.
    Also, I can calculate the Page Total from outside Crystal Reports, do to there some fields that can grow, so I can't figure out how many record are going to be printed.
    Thanks in advance!
    Ariel

    hello, this may depend on how the main report was actually paging...
    1) do you have one group per page for example?
    2) is the sub on a group footer level?
    3) does the subreport use a different data set than the main report?
    some suggested workarounds would be to
    a) use a report header cross-tab (identical to the existing crosstab) that creates an array of values that you can access anywhere on the main report
    b) place an identical cross-tab above the existing one, and suppress all of the subreport sections (not the section where the subreport sits) and then bring the value back to the main report
    cheers,
    jamie

  • How to get page totals at the end of the report in BI Publisher

    I am using BI Publisher 10.3 and using Ms-Word template builder to design the report
    and I want to implement totals for some columns (like page totals) ... can anyone let me know how to go about this
    Thanks

    Take a look this blog: http://blogs.oracle.com/xmlpublisher/entry/anatomy_of_a_template_iii_page
    You can download the template for that page.
    Also take a look at the Samples folder within your BI publisher desktop folder and you can find a folder "Page Total" that has the RTF template, xml and output..
    Assign points if helpful.
    Thanks,
    Bipuser
    Edited by: BIPuser on Aug 18, 2011 8:24 AM

  • 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"?>

  • Page Totals in Pivot View

    How to generate page totals in pivot view?
    Can you please help me ASAP?
    Regards,
    Sanx

    I want to achieve this http://gerardnico.com/wiki/dat/obiee/answer_xml but with the version 11.1.1.6.6 .

  • Page-total in script

    hi,
    i am working on a script.
    in my output i  have 3 pages in form
    for each page i have to display page total
    and on last page i have display the grand total.
    Can any one tell me how shud i do it.
    Rgds,
    Fattesingh

    Just have a separated element for your total. You are probably looping a table in the print program and writing some detail lines. After that loop just write the Totals element. Doing this will put the totals on the last page of the sapscript.
    Loop at itab.
          call function 'WRITE_FORM'
             EXPORTING
                  element = 'ITEMS'
                  window  = 'MAIN'
             EXCEPTIONS
                  others  = 1.
    Now write the SUB totals.
        call function 'WRITE_FORM'
             EXPORTING
                  element = 'SUBTOTALS'
                  window  = 'MAIN'
             EXCEPTIONS
                  others  = 1.
    endloop.
    Now write the totals.
        call function 'WRITE_FORM'
             EXPORTING
                  element = 'TOTALS'
                  window  = 'MAIN'
             EXCEPTIONS
                  others  = 1.

  • Page totals not printing on any pages except the last

    How do you get page totals to display one each page and "float" with the output? I created a summary object for the column with reset at page and put it in a frame that is displayed on all pages. There is, of course, a repeating group above it. But the repeating group clobbers the page totals on all except the last page. Shouldn't there be an implicit anchor that prevents this? that's what the Oracle documentation says anyway. This is probably real simple, but I find nothing in any documentation, white papers, or anything.
    Will somebody please, please help me?

    Hi,
    Step 1: Select the parent frame of the summary column.
    Step 2: Open properties of that frame
    Step 3: Set the property "Print Object On" to "All Pages" value.
    (Default value for this property is "Last Page"
    Regards,
    Sailaja

  • How to calculate the Page total in Excel format

    Hai all,
    How can we calculate the page total in Excel format, directly in RTF without using the summary column in the RDF.
    Regards

    <?add-page-total:TotalFieldName;’element’?>
    where
    TotalFieldName is the name you assign to your total (to reference later) and
    ’element’ is the XML element field to be totaled.
    You can add this syntax to as many fields as you want to total.
    Then when you want to display the total field, enter the following syntax:
    <?show-page-total:TotalFieldName;’Oracle-number-format’?>
    Pls refer XML Publisher user guide for more info on this.
    Kiran

  • Problem in printing page totals in c/f and broughtforward manner

    please can any body help me in print report in such a way that page totals in each and everypage and total of first page must me carrieforwarded and shoule be printed on as b/f in second page and second page total must be cumulative of amount carrieforwarded from first page and second page records.
    that is in brought forwarfaded and carriefarwarded manner.
    please suggest me any p&l sql code which help in this regard or oracle reports 6i feature.
    thanks in advance
    prasanth a.s.

    Create a parameter say P1 with initial value 0
    Create a Summary column CS1 at report level for the column EXPENDITURE, reset at PAGE
    Create a Formula Column CF1, put the code
    :P1 := :P1 + :CS1;
    Return :P1;
    Use the formula column CF1 to print Running Total and CS1 for page total.
    Create another formula column say CF2 and put the code Return :CF1 in it. Use this column if you want to print the Carry Forward Total in every page.

  • Calculate the page totals

    Hi To All,
        In scripts i need to calculate the page totals.that means for a customer i have lot of invoices for example my line items has been displayed in three pages, then in 1st and 2nd page i need to calculate the page total.and then for 3rd page i need to calculate the total.(but i don't that for a customer how many invoices are there).very urgent........
    U can check the standard form : f140_acc_stat_01
    correspondence type is:sap06
    For the above form i made modifications as well here i need to get the valuse for due now, due later and past due.can any one provide me the logic or field mappings.
    <REMOVED BY MODERATOR>
    Thanx and regards,
    loki
    Edited by: Alvaro Tejada Galindo on Feb 19, 2008 11:37 AM

    hmmm ok, i dont aks why you need that
    ok in your SAP-SCRIPT form there is a text element called "ITEM_LINE".
    this is beeing called once for every ITEM you print.
    in this text element make a external perform.
    like:
    /E ITEM_LINE
    /:  DEFINE &ITEM_COUNT& = ' '
    /:  perform calculate_item_count in program YOUR_PROGRAM
    /:  changing &ITEM_COUNT&
    /:  endperform
    your external perform shoulöd then look like:
    form calculate_item_count tables in_tab  STRUCTURE itcsy
                                                     out_tab STRUCTURE itcsy.
      statics:  lv_count       type i.
      lv_count = lv_count +1.
      read table out_tab
      with key name = 'ITEM_COUNT'.
      if sy-subrc = 0.
        out_tab-value = lv_count.
        modify out_tab index sy-tabix.
      endif.
    endform.
    well the variable ITEM_COUNT you defined in your form is now accesible throughout the whole form, and can be printed, like other variables.
    i hope i got you right this time
    Edited by: Florian Kemmer on Feb 19, 2008 4:59 PM

  • Help limiting page totals in pagination code

    HI ,
    I have been trying to limit the output of page totals in my pagination code so I can use it at the top of the page. I grabbed the existing code from a tutorial and it works fine. I tried simply settting a page total variable and outputting , but I do realize it's a little ore compicated than that. Any help will be greatly appreciated.
    <div style="padding-top:10px;">
    <p> </p>
    </div>
    <p align="center" class="breadcrumb">
    Top of page setting some vars :
    <!--- set up pagination --->
    <cfset perpage=12>
    <cfparam name="url.start" default="1">
      <cfif not isNumeric(url.start) or url.start lt 1 or url.start gt qry_prod.recordCount or round(url.start) neq url.start>
        <cfset url.start = 1>
      </cfif>
    <!--- outputting  query reslults table rows of product stuff with maxrows set to perpage var--->
          <table>
              <tr>
                   <td> ect ...........................
    <!--- Here I employ the pageination code , displays at bottom of page --- >
      <cfif url.start gt 1>
          <cfset link = cgi.script_name & "?fuseaction=products&action=cat&id=#url.id#&start=" & (url.start - perpage)>
          <cfoutput><a href="#link#">Previous Page</a></cfoutput>
      <cfelse>
          Previous Page
      </cfif>
      |
          <!--- Start Page Number --->
        <cfset pageCount = 1>
        <cfset pageLink = 1>    
        <cfset totalPages = Ceiling(qry_prod.recordCount / perpage)>
        <cfloop index="c" from="1" to="#totalPages#">
          <cfoutput>
          <a href="?fuseaction=products&action=cat&id=#url.id#&start=#pageLink#">#pageCount#</a>
         </cfoutput>
         <cfset pageCount = pageCount + 1>
        <cfset pageLink = pageLink + perpage>
        </cfloop>
        |
        <!--- End Page Number --->
      <cfif (url.start + perpage - 1) lt qry_prod.recordCount>
          <cfset link = cgi.script_name & "?fuseaction=products&action=cat&id=#url.id#&start=" & (url.start + perpage)>
          <cfoutput><a href="#link#">Next Page</a></cfoutput>
      <cfelse>
          Next Page
      </cfif>
      </p>
    Thanks ,
    Steve

    As of now it renders :
    [ Previous Page | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | Next Page ]
    I would like to limit the output of page numbers ,say to 5 ,  while still being able to click though all of them. Tks.

  • Page Total in a variable

    Hi
    How to compare Page Total value to another value like Total Amount in the RTF
    I can display the Page total but cannot compare it to other.
    <?:if show-page-total:PAmt = Total_Amount ?>
    <?end if?>
    Thanks

    Hi,
    See http://download.oracle.com/docs/cd/E12096_01/books/PubUser/T421739T481157.htm#4535379
    Regards,
    Colectionaru

  • Page Total for a Column in JSF HtmlDataTable

    Hi All,
    I need an example to calculate page total for price column in HtmlDataTable.
    Each page displays 10 rows and there are 50 rows hence 5 pages in datatable.How to calculate page total after displaying the rows on page.
    Thanks in advance.

    Just get the desired sublist of the datalist and sum the price? You can get the starting index and the rowcount from the HtmlDataTable by its getFirst() and getRows() methods respectively and use it in List#subList(). Then iterate over the list and add the price value of every item in a loop to the total value. You can display it in the footer of the datatable. You can define a footer with <f:facet name="footer">.

  • Sub page total in the smart forms

    Hi Experts
    I am facing page total problem in smartform. In my first page sub total adding only first line item amount of second page and it keeps going on every page further i.e. always next page first line item amount is getting added and therefore in every page, page total comes wrong. I am not able to find out the error.
    plse help me .. many thanks in advance.
    with regards
    aaryaa

    hi
    input parameters             output parameter s
    W_NET_PRICE             W_CAARY_FWD
      IS_BIL_INVOICE          GS_IT_PRICE
      V_NETAMOUNT           GS_IT_GEN_W
                                          W_NET_PRICE
    w_net_price =  w_net_price + v_netamount.

Maybe you are looking for

  • How do I Credit Note negative amount line item in Invoice

    Hi Experts, I have an AP Invoices that have a negative line item total. Now that I realize there is something wrong with this AP Invoice, I will like to CN it. But I was stopped by SAP, because I cannot CN a negative amount line item. Can anyone advi

  • Table of Contents In Hyperion Reports

    <BR>Hi,<BR><BR>I setup a Hyperion Report with location used for pages. When I print report, I get the expected result of each page being a location I specified, and in the order I specified. I'd like to distribute same report as pdf, but incorporate

  • Perform Search without first logging into OCS?

    Is it possible to configure Ultrasearch to allow users to perform a Web search without having to first login? I'm using Ultrasearch as part of OCS and each time I try to send a query string as POST data to the search page, I am asked to login. Same i

  • Iweb 1.1.2--everything is gray

    Hi, I'm trying to use iweb for the first time. I am unable to use the "+" to make a new page and everything under "file" is grayed out. I searched through the forum for "grayed out" but found only posts from 2006 saying that downloading versions 1.1.

  • Auto restart failed fpr oracle VM guest

    Hello, I have created a guest using below command and was able to get xm list: # xm create testrac1.cfg # xm list Name ID Mem VCPUs State Time(s) Domain-0 0 543 8 r----- 7226.7 testrac1 1 8192 4 -b---- 11.9 I have used below cfg file to create testra