UDO Total in footer

Hello Experts
How do You manage counting and filling Total fields for UDO. I would like to sum row's total as total in footer.
I'm trying this  code in SBO_Application_ItemEvent:
                    if ((pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE)  && (pVal.ItemUID == "matrix") && (pVal.Before_Action== false))
                        SAPbouiCOM.EditText total_doc = null;
                        total_doc = (SAPbouiCOM.EditText)oForm.Items.Item("total_doc").Specific;
                        total_doc.Value = "1,2344";//example
The last line cause never-ending loop.
Best regards.

(pVal.InnerEvent == false) should help.

Similar Messages

  • Grand total (Report footer) issue in a Report with Group selection.

    Hi,
    The case is simple, i have to summrise the NetValue field of a  report at the Group level and at the Report level(Grand Total).
    I also use a Group selection filter (I have grouped my records by MaterialDesc) to keep the desired groups.
    As you already guessed, my group totals are fine but the grand totals(report footer) contain both filtered and non filtered group records. Is there any way to avoid this problem and get a Grand Total from the filtered group records?
    Thank you.

    You can not use standard summaries with Group Suppression you must use either Running Totals or variables.
    In Running Total  evaluate click theformual button and eneter reverse condition to your group suppression.
    If you can not do that then you must use a Var
    In group footer where total is currently correct place a formula like this and suppress it
    @eval
    whileprintingrecords;
    global numbervar RepTot;
    If ..whatever your suppression condition is not true... then reptot:= reptot + sum( valuefield, groupfield);
    In report footer
    @display
    whileprintingrecords;
    global numbervar RepTot;
    Ian

  • 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 create Document total in footer

    Dear all,
         Anyone plz tell me the code for document total which is calculated from matrix line total
    Regards,
    Guru

    Hello Vijay,
    could you specify your question a little bit more.
    Document total are a sum of the ((lineTotals + DocumentsFreight) - Documentdiscount) + VAT
    HTH
    Regards Teun

  • Running total in footer

    I have a table with several In, Out and Bal columns. I would like a footer row that shows the current balance for each Bal column. So it needs to reference the most recent row.
    Any ideas how to do this?

    One solution would be like this for column B:
    =OFFSET(B1,COUNT(B),0)
    This formula assumes there is one header row, there are no gaps in the data, and all the data is numbers. You can drag-fill or copy-paste it to the rest of the column footers

  • Summary Total in footer frame

    If my details for this PO spills over into page two and three I just want the summary total to print on page three but the same total is printint on all three pages. Any advice will be greatly appreciated.

    I have many rows in a purchase order (detail records) that might be two and a half pages long, I want the total amount to print at the bottom of the last page, not every page.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Riaz Shahid ([email protected]):
    Hi !
    I can't understand what u want to say. Would u please cleaqrify your point?
    Riaz<HR></BLOCKQUOTE>
    null

  • How to Show total value in the header 2nd page but based on 1st page footer

    How to show total value in header in report builder but i have the total have related with the total in footer.
    Example
    ===============================================
    Page 1
    Empno Ename Sal
    1 Scott 1000
    2 ALlen 2000
    3 Susi 1000
    Total Sal Page 1: 4000
    ===============================================
    Page 2
    Total Sal Page 1: 4000 --> How to get it?????
    Empno Ename Sal
    4 Budi 1000
    5 Roger 200
    6 George 2000
    Total Sal Page 2: 3200
    Please Help..
    Thanks

    hmm .. what i would do is
    - create a placeholder column
    - create a field in the header and one in the footer
    - have the footer field reference the summary column
    - have the header field reference the placeholder column
    - create a fromat trigger on the footer field to
    store the value of the footer into the placeholder column
    so when the report is executed and the footer field is formatted, the format trigger stores the current value of the summary in the placeholder. then the pagebreak occures and the header field is formatted .. printing the value.
    there might actually be an easier way, just reference the two fields to the same summary column and in theory, since there is nothing happening between the time when the footer is formatted and the header is formatted, the values should be the same .. however this is a theory and i have not actually tested this. since reports does all kinds of fancy optimization this might have unexpected results, but it's worth a try.
    thanks,
    ph.

  • Smart form: how to display two total amount in footer

    hi, In smart form i trying to dispaly carry forward total and page total in footer, the first statment
    of the footer only displaying, next one not displaying. But each page in footer i have to dispaly both carry forward total and page total. how to do this?

    Hi ,
    This is a tricky solution.
    Split the footer into two.
    i.e  create two windows with the property of footer.
    Now use the first window to display a result and second window to display the next result.
    This will surely work .
    Just take care of the formatting.
    Regards,
    K.SIbi

  • How to get the total amount and hide the field

    Hi Experts,
    In Crystal report parameter screen, user has the option to Mutliselect either Donor or Grant or Donor & Grant; based on that in report output user is expected to see list of Donors with Grand Total. Requirement is not to split Amount by Donor rather need to show list of all Donor in header and Grant Total in Footer.
    For example from the above list if user selected Algeria, Austria, Australia and India each country/Donor contribution  is 150 than expected output will be
    Algeria
    Austria
    Australia
    India
    America
    Grand Total = 600
    please let me know if any one get idea about this requirement.
    Best Regard,
    sowjanya.k

    Hi Sowjanya,
    If you're simply trying to place a grand total, use the 'Insert Summary' option.
    Choose the measure field as the 'Field to Summarize' > Choose 'Sum' as the summary operation > Under 'Summary Location' choose 'Grand Total Report Footer'.
    -Abhilash

  • Problems with calculation in table footer

    I’m working on a 'dynamic form’ with an expandable table (i.e. the user presses a button to add a new row), there are cells in each row for beginning month & ending month, plus an autocalc total field containing the formula: “ending – beginning +1” (which accurately calculates total months e.g. Jan-Dec = 12 months). There is also a ‘total months’ field in the footer which sums the row ‘total’ cells. The problem I have is that the user could add a blank row throwing off the total cell in the footer. Any suggestions to accomplish my goal of presenting accurate total in footer while ‘idiot proofing’ the form?

    A link to the your live test page would be much more productive here. 
    It's much easier for us to diagnose problems when we can see your page & images in our browsers.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Report Footer Summary of Grouped values

    Post Author: millerka
    CA Forum: Formula
    This may be a simple answer but i am new to Crystal.  I would like to create my own chart in the report footer with values from the above groups- sort of like a neat summary report formated at the bottom
    any help would be appreciated!

    Post Author: V361
    CA Forum: Formula
    Items you want summed can be put in the details section, if you right click the field, you can select insert, summary, select Grand Total (report footer).  Drag your chart down to the footer, select the summarys and add to the chart.  Once your chart is finished, you can delete the sum fields created in the first step.   Hope that helps. 

  • Sub Total display in Samrtforms

    Hi ,
    I need to display sub totals in my smartform.Infact I have used Calcualtions Tab Under TABLE with Operation "Total"  and Time "After Loop"  which is displaying wrong values when Internal Table values are spanned to multiple pages. Can any body help me.
    Regards,
    Srinivas

    >
    SRINI VASA wrote:
    > I can not create any text node after Main Window and according to my requirement, I need to display my sub total in footer of my table inside Main Window.
    "..............Main window
    ".......................Table with loop
    "...........................main area with flow logic calculate sum here in some temp variable
    "..................................footer, print here your temp with text node
    No need to create text node after main window

  • Totals for Groups not adding

    Hello,
    I created a report for our Scheduling team here and I thought it was working nicely and someone found  that my totals are not adding up.
    In the Group Header Reset I have:
    WhilePrintingRecords;
    Shared NumberVar PastDue :=0;
    Shared NumberVar Day1Value :=0;
    Shared NumberVar Day2Value :=0;
    Shared NumberVar Day3Value :=0;
    Shared NumberVar Day4Value :=0;
    Shared NumberVar Day5Value :=0;
    Shared NumberVar Day6Value :=0;
    Shared NumberVar Day7Value :=0;
    Shared NumberVar Day8Value :=0;
    Shared NumberVar Day9Value :=0;
    Shared NumberVar Day10Value :=0;
    Shared NumberVar SDay1 :=0;
    Shared NumberVar SDay2 :=0;
    Shared NumberVar SDay3 :=0;
    Shared NumberVar SDay4 :=0;
    Shared NumberVar SDay5 :=0;
    Shared NumberVar SDay6 :=0;
    Shared NumberVar SDay7 :=0;
    Shared NumberVar SDay8 :=0;
    Shared NumberVar SDay9 :=0;
    Shared NumberVar SDay10 :=0;
    Day 1 Values  (Day1Value should hold totals, but it's only holding the last value it seen, Detail Section)
    WhilePrintingRecords;
    Shared NumberVar Day1Value;
    if IsNull({V_SHIP_SCHED.DAY_1}) then 0
    else {V_SHIP_SCHED.DAY_1};
    Day1Value := {V_SHIP_SCHED.DAY_1} + Day1Value;
    Day 1 Totals (Group Footer Section)
    WhilePrintingRecords;
    Shared NumberVar Day1Value;
    Day1Value;
    Not sure why it's happening.  Any ideas?

    Okay found out my Totals in the Group Footer are working, it's just in the detail not working.
    When I do this:
    WhilePrintingRecords;
    Shared NumberVar Day1Value;
    if IsNull({V_SHIP_SCHED.DAY_1}) then 0
    else {V_SHIP_SCHED.DAY_1};
    Day1Value := {V_SHIP_SCHED.DAY_1} + Day1Value;
    it printing out the First line amount being correct but the next line it's adding the first line with the second line and giving it total
    ie:  Customer 1 - Day 1 = 100
         Customer 2 - Day 1 = 200
    Then when printing it doing this:
                             Day 1
    Customer 1     100
    Customer 2     300
    Total               300
    What I need to do this:
                             Day 1
    Customer 1     100
    Customer 2     200
    Total               300
    Thanks.

  • Unable to Maintain different Headers and footers in a multiple RTF template

    Hi All,
    I have a very complex requirement to Print Custom Invoice reports. The Report Consists of Three Templates 1) Invoice 2) Custom IMEI 3)Remiitance Slip.
    I have coded XMl such that for a given header level data all the corresponding data will be generated Including for Custom IMEI and Remittance Slip. So for the RTF design, In a word document i have three templates and the for every transaction all this three should be printed. so if there are 10 transactions than we need to print 10 sets (all 3) of invoices. The first Template is Invoice which has a header with all required information. If for the first template the lines data exceeds first page then on the second page the header needs to be printed only as Customer name, Transaction Num and page number. if the line level data goes more than 2 pages than the header needs to be same as that of 2nd page. On the last page of invoice template the totals and footer needs to be printed.
    After completion of invoice template Custom Imei template and remittance template must be printed for given transaction. But they shouldn't have any header or footer associated.
    Is this Functionality achievable by Oracle BI publisher RTF design?? If yes how would i code it in RTF. I have tried almost all possible solutions given in XML publisher User guide. Invoice template header and footer are repeating in other templates too.
    Issues are : 1) All there templates are tied together, so the header in First template, if it's line level data exceeds to second page should be different.
    2) Footer of the First template should only be displayed at the end of first template with Invoice totals.
    3) Header and Footer should not be part of template 2 and 3 which are tied to template one.
    Please, help me out with a solution, if needed i will provide the XML and RTF template too. I hope Someone really knows how to break this puzzle. Thanks for the help in advance

    Hi,
    My Req was for Three different templates tied together. So, if the First template exceeds page 1 then itz header should be a different one. Similarly with second template but they were independent of each other.
    In Your case you may probably try using MS word different First page header functionality to acheive different header from second page.
    Does this help?

  • XSLT mapping - getting node count

    I'm mapping a flat file to an 835, and on the advice of Boatseller I've dove into XSLT in order to finish the map and it has been the best thing I've ever done. However, not being a real pro at XSLT I am stuck on one thing I hope you guys can help me on.
    I'm dealing with transactions whose lines have tags. One transaction can looks like this:
    0001(header)
    0002(EOB)
    0003(service lines)
    0004(Totals)
    0005(comments)
    0007(footer)
    lines 0002-0004 make up one record and there can be multiple records per transaction. I've got that all figured out. What is killing me is that there can be multiple 0003(EOB) lines per record, like this:
    0001
    0002
    0003
    0003
    0003
    0004
    0002
    0003
    0003
    0004
    0005
    0007
    So in the above transaction I've actually got two records. One with three 0003 lines and another with two 0003 lines. As I'm processing each record (0002-0004) I need to be able to loop through the 0003 lines. When I start looking at the 0003 lines my XSLT
    is actually grabbing ALL 0003 lines in the entire transaction. In the case above, it is grabbing five each time instead of three the first time and two the second time. I have a counter variable that tells me which EOB(0002) section I'm on:
    <xsl:variable name="var:ClaimSequence" select="position()" /> 
    When I try the following code it gives me ALL the service lines(0003) instead of just the ones I need:
    <xsl:variable name="SVCcount" select="count(//ServiceLines)" /> 
    When I try the following code it only gives me the first ServiceLine(0003) line:
    <xsl:variable name="SVCcount" select="count(../ServiceLines[number($var:ClaimSequence)])" />
    What I'm trying to do is determine how many Service lines(0003) I have in the current record and I can create a counter in a for loop and access each service line like this:
    EOB(counter)
    I just can't seem to reach, via XSLT, the correct count.
    Any ideas?
    Thanks.

    You don't need to determine the count, you can use a for-each loop to iterate over the Service lines belonging to each 0002 (EOB) record.
    Here is an example.
    Input:
    <Root>
    <Header/>
    <EOB/>
    <ServiceLine>1</ServiceLine>
    <ServiceLine>2</ServiceLine>
    <ServiceLine>3</ServiceLine>
    <Totals/>
    <EOB/>
    <ServiceLine>4</ServiceLine>
    <ServiceLine>5</ServiceLine>
    <Totals/>
    <Comments/>
    <Footer/>
    </Root>
    XSLT:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="Root">
    <Root>
    <xsl:for-each select="EOB">
    <EOB>
    <xsl:for-each select="following-sibling::ServiceLine[count(preceding-sibling::EOB[1] | current()) = 1]">
    <xsl:copy-of select="." />
    </xsl:for-each>
    </EOB>
    </xsl:for-each>
    </Root>
    </xsl:template>
    </xsl:stylesheet>
    Output:
    <Root>
    <EOB>
    <ServiceLine>1</ServiceLine>
    <ServiceLine>2</ServiceLine>
    <ServiceLine>3</ServiceLine>
    </EOB>
    <EOB>
    <ServiceLine>4</ServiceLine>
    <ServiceLine>5</ServiceLine>
    </EOB>
    </Root>

Maybe you are looking for