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

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

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

  • Problem with Page totals

    Hi,
    I have a problem while displaying page totals using <?show-page-total:dt?>. It doesnot display any values. The requirement is to display the page total before a page break and a page can have a max of 20 lines. So, after 20 lines, there should be a total of the numerical value and there should be a page break.
    I have restricted the number of lines per page using the <?if:position() mod 20 =0?> <xsl:attribute name="break-before">page</xsl:attribute> <?end if?> in a form field called FIXED_LINES before the end of the group as follows:
    Contact : C1 ----- group by contract
    Order Amount
    For-each Order1 1000 FIXED_LINES End-for
    Sum:1000
    The sum has to be displayed beneath the table. To achieve this, i used the <?add-page-total:mt;'Amount'?> in the Amount field and <?show-page-total:mt?> in the place where sum has to be displayed beneath the table. This does not work. The <?add-page-total:mt;'Amount'?> seems to work but only <?show-page-total:mt?> does not work. I verified this by inserting the <?show-page-total:mt?> within the table before the (End for each) and it seems to work.
    What am i missing here. How can i get rid of this issue. Kindly help.
    Thanks,
    Vidhya

    Sunil,
    Going to assume you are using a Table Node. Try using inserting a Program Lines Node into your Table Node. Within this Program Lines Node, accumulate a running total into a Global Variable. Display this Global Variable via a Text Node in the Table FOOTER event.
    Hope this helps.
    Cheers,
    Pat.

  • Hi guru's in SMART FORMS how i  can get subtotals , and page totals

    hi guru's in SMART FORMS how i  can get subtotals , and page totals plz help me

    Hi
    check this
    Subtotals - Check the link...
    <b>Re: Subtotal with Table Node in smartforms can use the PROGRAM LINES node to calculate the page totals in Table node.
    Table Node has three sections:
    Header: (Triggered once in the beginning of a page)
    Create a Program lines node to reset the value of TOTAL to 0.
    Main Area (For each row of internal table)
    Create a Program lines node to add the Value to TOTAL
    Footer (Triggered once in the End of a page)
    Display the TOTAL
    Note: 1) You can declare the TOTAL variable in the GLOBAL Definitions under GLOBAL DATA.
    2) In the PROGRAM lines always pass the TOTAL in both INPUT and OUTPUT parameters
    Regards
    Anji

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

  • 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

Maybe you are looking for

  • Creating Query to show items from open sales orders with a/p invoice

    Hi experts, I am trying to create a query that will show what items/quantities are still in open sales orders that can now be filled by an incoming shipment of goods, processed through the a/p invoice. This needs to be done using subqueries, which I

  • CAN NOT OPEN ANY FILE

    CAN NOT OPEN ANY FILE. USE W8 & ADOBE PHOTOSHOP CC 64B

  • Fonts not appearing under all users

    I have recently performed a clean install on one of our G5s. When I installed the our corporate fonts, the only appear in Font Book under the admin account and not the other user account. Whenever I try to add them to Font Book in the other user acco

  • Cant edit photos from PC

    Oops, there it is. 

  • LCM migration error in Planing application

    Hi, I am trying to migrate 11.1.1.3 planning app from DEV to PROD env. Exported all the artifacts from DEV in the file. When I tried migrating only Dimensions (under Plan Type) in PROD. It came back with the following error. Artifact_name = Account E