Group Header/Footer Sum Issue

Hey all,
I have an issue which I thought I had covered, but I need a more solid solution.
SO, I am making a query to do with AR Invoices by the row level, but I want to be able to sum at the header level to use the PaidToDate field so I know how much is left to pay on the document.
So it is just DocTotal - PaidToDate.
Problem is, I need to be able to see the items from the document.  So I have it right down to the row level using INV1.
So now when I group by the DocNum field everything looks fine, but when I go to see what is left I calculate using DocTotal - PaidToDate.
Problem is, because I'm at the row level it gives me the owing amount for each line like below.
DocNum    CardName  DocTotal   PaidToDate   LineNum     Qty    Price   Description   
1234          SAP             $100          $50                0              3       $25      Stick
1234          SAP             $100          $50                1              1       $25      Puck
So in this example you can see that SAP has an invoice # 1234 for $100 and they have paid $50 but because of the way it is organized the $50 is paid only on the OINV header level, but is linked to the rows, so it will SUM to $100 paid when it's only $50 paid on the document.
This isn't such a huge issue because I did an IF statement: IF {INV1.LineNum} = 0 THEN ({OINV.DocTotal} - {OINV.PaidToDate}) ELSE 0.
BUT, in this case it is a bit more complicated because I am using Enprise and I am pulling lines by project so the lines pulled from an invoice might be taken from the middle of a document.  I would be fine if the first line was always LineNum = 0, but some of the times it is not.
Is there a better programmatic way to handle this?  Rather than a clunky IF statement?
Thanks!
Mike

Hi Yogesh,<br /><br />
Thanks for your comments. You've raised several valid points, which I'll address below.<br /><br />
In the past 18 months, Enprise Job Costing has undergone fairly significant improvement and feature enhancement. It's fair to say that forward development and product improvement is where we've placed greatest resource emphasis. We're continuing to improve the product set and plan to introduce significant new features over the next 9 - 12 months. If you'd like to see a copy of our planned development road map, I'll be happy to share that with you.<br /><br />
The documentation for Enprise Job Costing, while currently somewhat out of date, is currently being rewritten. We will be releasing new chapters for the documentation as they become complete and expect to have the entire documentation suite completed within the next 2-3 months. <br /><br />
In the short term, your SAP implementation partner will be able to provide access to each new chapter as it becomes available, as we'll post them to our partner support website. <br /><br />
Longer term, we will be opening portions of our support site up for end user access, so that people with technical skill, like yourself, can self-help to a degree. We already have a plan to introduce a community/forum where interested people can ask questions and share ideas. Such a forum existed a few years back, through SAP's P2P network, but we found that it wasn't well utilised and I don't believe it is a current feature of the revised network.<br /><br />
Our new forum will be delivered through a new iteration of our partner support website. We've designed the new site map for this tool, which includes such new functionality. Actual development will begin shortly. We will also be introducing a customer (end-user) focused newsletter to supplement the one we distribute through the partner community. The customer focused version will have more in the way of 'tips n tricks' type content and will likely be very product/road map focused.<br /><br />
In the meantime, I encourage you to follow our various social media activities. We provide regular product update snippets through our LinkedIn profiles, through our Twitter accounts and through our Facebook page. In fact, I'd love it if you would begin using our Facebook page as a precursor to a customer oriented forum and encourage any and all communication.<br /><br />
Our various social media profiles can be found here:<br />
- Facebook: [http://www.facebook.com/pages/Enprise-Software/129716737045362]<br />
- Twitter: [http://www.twitter.com/enprise], [http://www.twitter.com/enprisesoftware], [http://www.twitter.com/enprisesupport], [http://www.twitter.com/enpriseproducts]<br />
- LinkedIn: [http://www.linkedin.com/companies/enprise-software].<br /><br />
Please also feel free to follow me personally on LinkedIn. I make regular posts, which many of our partners find useful. You can find my profile here: [http://nz.linkedin.com/in/jasondlangley]<br /><br />
I'll call you shortly to discuss this topic in more detail.<br /><br />
Best regards,<br /><br />
Jason Langley<br />
General Manager<br />
Enprise Software<br /><br />

Similar Messages

  • Group Footer Sum Problem

    Hi Oracles!
    I am using Crystal 8.5 and I am having a problem getting a SUM in a group footer. In the column I wish to add up and place in the footer has a formula field with the following:
    Sum ({TicketDetail.packetsSold}, {Product.description})*{Product.costPrice}
    This give me a total per line of the cost but I would like to add the lines together.
    I am a novice...
    Many thanks
    David

    Hi David,
    OK got it!
    Here's what you need to do:
    1) Modify the formula to:
    whileprintingrecords;
    numbervar fin_sum;
    fin_sum := fin_sum + (Sum ({TicketDetail.packetsSold}, {Product.description})*{Product.costPrice});
    Sum ({TicketDetail.packetsSold}, {Product.description})*{Product.costPrice};
    2) Create another formula with this code and place it in the Group footer 3 section:
    whileprintingrecords;
    numbervar fin_sum;
    3) You then need a reset formula so that this sum adds up values only to the respective groups:
    whileprintingrecords;
    numbervar fin_sum := 0;
    This reset formula needs to be placed on the Group Header section. I guess in this case it will be the Group header 3.
    Let me know how this goes!
    -Abhilash

  • How to store running sum of group header fields

    HI All,
            I am bit confused how to do this so writing the post here. I have a group header which gets the amount spent by cost centre by account number
    the group contains the following fields
    [Account Number] [SDESCR] [sum of coscentre1] [sum of costcentre2] and so on.
    The end result i get as follows
    Account number  Description     Coscentrenumber1  CostCentrenumber2 and so on
    100                       cash at bank     6000                        7000
    200                           
    and so on
    now i want
                                          Total    Sumof(Costcentrenumber1)   Sumof(Concentrenumber2)
    how can I achieve this ? am confused how to store the value of [sum of costcentre1] into a shared variable and use this shared variable in page footer to display the total ?

    Let me be more clear I need the out out something like
    Account number Description   Costcentrenumber1  Costcentrenumber2  Costcentrenumber3
    100                                                 6000                       7000                            800
    200                                                 4000                        5000                         300
             Toal                                    10000                           12000                     1100
    the account numbers are placed in Group header so that we group all the transactions by account number. Say for example when i said account number 100 above in the backend
    it is as follows
    Account number     Costcentrenumber1
    100                          2000
    100                         2000
    100                         2000
    In the crystal the above logic is placed in Group header by creating Group Name fields
    so that end result in the report it is shown as
    Account number  Coscentrenumber1
    100                        6000
    Now in the report at the end i want the sum by Costcentrenumber.
    as 10000 shown above.
    Hope am clear.

  • How to show the total in group footer in group header?

    Hello,
    I am having difficulties while showing the total of a group footer in the group header. The total in the group footer is correct, but when i am placing the formula in the header it is giving me 0.
    I am having 2 formulas to get the total which i placed in the footer:
    1.
    whileprintingrecords;
    numbervar sumpctx := sumpctx + {@Sum OB};
    2.
    whileprintingrecords;
    global numbervar sumpctx;
    numbervar DispSales;
    DispSales := sumpctx;
    sumpctx := 0;
    DispSales;
    now, I want to add the 2 formula in the header, but it is giving me 0 value, But in the group footer it is showing the correct value.
    I tried to do:
    Sum ({@Sum OB}) and it is giving that the field can not be summarized.
    The group Name is @Entity which is grouped by.
    @Entity :
    if {Customer.NAME}="NONE" THEN
    " OB"
    ELSE {Customer.NAME}
    Thanks in advance for yopur help.
    Regards

    Hi,
    What i was trying to say there is a hierarchy in report design and records are processed in that way.
    Report header/footer - only once
    Page header/footer -once in a page
    detail -n no of times ,n-no of rows of data
    First report header will be processed,then page header n detail,after that report and page footer.
    If u insert a group,then the order will be-
    report header,page header,group header,detail,group footer,detail,report and page footer.
    When u r in group header,all the records are not processed,that results the sum as zero.
    But when u create a formula,it calculates the sum first and then u put it there.
    I hope this time it will be helpful for u.
    Regards,
    Misra P.

  • Grouping results in Header/Footer.

    I am working on the template below, and I want the pages to break based on the Header/Footer, not on the page breaks that I have put in. I compromised and put the Group By VP before the report header, but I really want the E.NAME and Date to be in the footer, and to break to a new page when the VP changes. It seems that there should be a way to do this, but Word tells me that I can not put fields in the Header/Footer. Any help would be greatly appreciated.
    Group by VPCurrent Learners and Competency Development Focus
    E.NAME - June 26, 2009
    Name GroupingB.FIRST_NAME B.LAST_NAME
    Competency GroupEXPR5_5 End Competency Group
    End Name Group
    End VP Group

    Mikael,
    Remember, FM searches for the match on the current page first and only
    then backwards when fulfilling a request for a variable. So even if
    you have a section that is in Level 1 of 2 and a Level 2 of 24 at the
    top of your page, and there is another Level 1 (value of 3) introduced
    on that page, FM will use the newer Level 1 (value of 3) from the page
    first. If it's the only one on the page, the "+" doesn't make any
    difference.
    Nothing that you can do about it. It's simply looking at tag content,
    not context.
    You could consider using the <$marker1> and <$marker2> variables for
    the running h/f variables and manually inserting and clearing the
    counter values at the start and end of each Level 1 entry, e.g.
    {<$marker1 content>}Level 1 content{<$marker2 content>}, where the
    marker1 content is the old Level 1 value and the marker2 content is
    the new Level1 content. But this is totally manual and a maintenance
    nightmare.
    An alternative solution is to have a Framescript that determines the
    values and manually inserts the correct content in a "pseudo" header
    text frame (i.e. another flow on the body page that mimics the header
    content).

  • Repeat group header on every page before group footer as group spans across

    I have a group which spans across multiple pages.In group there are two subreports in Group footer.I have set all the required parameters to repeat group header on every page in group expert,but not getting desired results,please help....

    I have following structure in my report.
    I have two group headers at the top,first one contains name of the site & site number,second header contains Site-Admin as heading,below which i have kept details section of report which displays name of administrator which repeats details section in case there are more than one adminstrators.
    Below this i have two group footers which individually contain each of the two sub-reports.
    As per data,these individual subreport may or may not begin at the beginning of the new page every
    time,therefore fake group header put at the beginning of these sub-reports may come in middle of the page sometime,so thet cant be done.
    Thank you,please reply if you have another solution....

  • Persona Issues- will only change header /footer color- no design..??

    I can not get personas to work correctly- I have searched and searched, found many with this issue, but couldn't find a solution that works for me.
    On https://www.getpersonas.com/en-US/ mouse over just changes color of the header / footer. When "wear" persona it just changes the color-I can switch through downloaded personas and it just changes the header / footer color
    I have went through troubleshooting, Have white-listed getpersonas.com, Disabled all security, restarted in safe mode, reinstalled firefox, disabled plug-ins, updated everything, tried adding (then deleting) persona plus, etc - all to no avail.
    any help is appreciated-

    Figured it out...if you click the cell, go under "Layout" and then expand the menu for "Borders & Rulers," the color option comes up.

  • Data Concatenation - Looking to have result in the Group header

    Dear all,
    Few months ago, I try to concatenate cells under a Group,
    I succeed using the formula gave by Raghavendra 
    Initialize:
    whileprintingrecords;
    stringvar i:="";
    Place the above formula in group header and suppress group header section.
    evaluate:
    whileprintingrecords;
    stringvar i;
    i:=i", "name field;
    Place the above formula in detail section and suppress the details section.
    display:
    whileprintingrecords;
    stringvar i;
    country field" - "i;
    Place the above formula in group footer and right click go to format field and check the option "can grow" in common tab.
    My today issues is that I'm still looking for concatenation but I need it in the Header of the Group, not in the footer
    As far as I understood
      - Crystal Report is reading line by Line, so I can't retrieve the value in the Header before the value are calculate.
      - Moreover I've issue on initialize the value
    I thougth an GlobalVar Array can work, but I can't find the way to do it
    My request is, I've have this DataSet
    Paris | Louvre
    Paris | Eiffel
    Sydney | Opéra
    I'm looking Group on City to have in the Header, the value concatened
    Paris | Louvre, Eiffel
    Sydney | Opéra
    Thanks in advance
    Edited by: Alexandre VANNIER on Dec 2, 2008 2:09 PM

    if i have manual running totals that need to display in the header i do the following
    i create the group - ie- jobid
    i either insert a sub group below or create a 2nd group with the same field
    then i create a 3rd group with the same field
    i place my reset in the 1st group
    calc in 2nd
    display in 3rd

  • Group heading on each page..

    I am trying to get BI Publisher to output a group heading on each page of my report.. At this time, I am using the Word/RTF version to build my layout.
    I have information in the word document header and footer, and tried adding the group by column in the header, but that only returned my first group value, always!.
    is there a safe solution? I have looked through the forum and seen many questions on this and not any simple answers..
    Thank you,
    Tony Miller
    UTMB/EHN

    Just checking to see if you received the e-mail and the file that was attached... I am still looking for solutions to the issue..
    Thank you,
    Tony Miller
    UTMB/EHN

  • Repeating Group header on each page

    Hello Everybody,
    I have two groups in my report. For my first group value, i have given report - group expert - options and checked "Repeat group header on each page" assuming that my first group values will appear on each page. But it is not doing so. In one of the page the group footer values are appearing without my first group values.
    I belive my problem is my second group values are ending in one page and first group values are  extended to next page . Can any one please hep me.

    if that is the case Narukonda 1, there are several sap notes dealing with this issue...please see this sap note [here |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313333333133373339%7D.do]which deals with both orphaned group footers and group headers.

  • Repeat Group Header On Each Page with Underlay Following Sections

    How to overcome the following problem?
    1. I am using Crystal report 13.0.5.891
    2. I have designed the report with Group Header as [Underlay following section]
    3. I have checked the group to repeat on each page
    4. Number of lines in the group header may vary
    5. Number of lines in details may also vary
    My objective is to print the separator line placed in group footer, after the
    header lines or after the detail lines which one is taking the maximum lines.
    This is not happening, and I am getting the following output, which is not meeting my requirement
    Where the "LINE IN GROUP FOOTER" should appear after "Group 1 Header Line 6" in the second page
    as the report ends there, but in the output, the line is coming just after the end of detail record.
    like following
    As a result of this, the next record of the group is overlapping with the first record and creating a mesh
    ------------------------------------------------------------------------------------------------------------------------------------ PAGE 1 OF 2
    Column Heading 1                       Column Heading 2                      Column Heading 3
    Group 1 Header Line 1                 Detail Record 1 Line 1
    Group 1 Header Line 2                 Detail Record 1 Line 2
    Group 1 Header Line 3                 ----------------------------------------------------------------------------------
    Group 1 Header Line 4                 Detail Record 2 Line 1
    Group 1 Header Line 5                 Detail Record 2 Line 2
    Group 1 Header Line 6                 Detail Record 2 Line 3
                                                      Detail Record 2 Line 4
                                                      Detail Record 2 Line 5
    ======================LINE IN GROUP FOOTER========================
    PAGE BREAK
    ------------------------------------------------------------------------------------------------------------------------------------ PAGE 2 OF 2
    Column Heading 1                       Column Heading 2                      Column Heading 3
    Group 1 Header Line 1                    Detail Record 3 Line 1
    Group 1 Header Line 2                    Detail Record 3 Line 2
    Group 1 Header Line 3                    Detail Record 3 Line 3
    Group 1 Header Line 4                    Detail Record 3 Line 4
    ======================LINE IN GROUP FOOTER========================
    Group 1 Header Line 5
    Group 1 Header Line 6
    Thanks in advance.

    Thanks for you response.
    I have updated the crystal report to 13.0.13.1597.
    Still I am getting the same issue. I am generating the report in PortableDocFormat and exporting the byte array to download from the web browser. The application is developed in ASP.NET 2012 .net version 4.5.
    I am also uploading 2 images of the final pdf that I am getting, for your opinion.
    The report appeared in the first image is ok, where the first group has 2 child records and the second group has 1 child, but whenever I am changing the mapping in the database, where the first group has 1 child and second group has 2 child, my report is not working. as it is clear from the second image
    Also after installing the new version of CR, my existing codes are not working, and giving the following exception in the line where ExportToStream is written.
    Unable to cast object of type 'FileStreamDeleteOnClose' to type 'System.IO.MemoryStream'.
    I have modified the existing code to overcome this exception.

  • XMLPub 5.6.3: Data fields missing in Header/Footer

    Hello,
    I am having a problem with an RTF template, where the data fields in the
    template Header or Footer that should display data do not appear at all, while
    the fixed text that is in the Header/Footer is shown.
    This template is built with the start:body/end body syntax to separate
    the fields that belong to the Header/Footer from the body of the report. The
    body has a for-each@section that works fine and a split-by-page-break at the
    end, after the Footer fields.
    I played a little bit with the template and I found out, that:
    - if I change my template not to use the start:body/end body syntax, but I use
    the Header/Footer Word functionality with the explicit field names specified in
    the header or footer, the data fields will not be displayed;
    - if I remove the for-each@section, the data fields in the Header (before the
    start:body) and in the Footer (after the end body) are displayed correctly;
    - if I duplicate in my XML file one of the elements that are in the Header and I put it
    in the child group that is displayed in the repeating section and I add another data
    field in that section, it will display both in the Header and in the repeating section;
    This very template works fine on an E-Biz instance at another customer site, but
    only here it's showing this issue.
    It also looks like a different problem than the one caused by the Microsoft
    security update. In fact, I cannot not find any "/headerr" or "/ footerr"
    strings in the template RTF. (Anyway, is there a patch for version 5.6.3?)
    Can anybody shed some light on this strange issue? Any advice?
    I am using XMLPub Desktop 5.6.3 and MS Word 2000 9.0.6926 SP-3.
    If someone wants to have a look, I've prepared a small test example to show this weird behavior.
    Thanks,
    Paolo

    ashee1,
    Please refer XMLP User Guide Chapter 9. You need to define data definitions and upload the data template to DataTemplate filed.
    Create the Template Definition and upload your RTF Template.
    Create a Report Definition in Concurrent Program/Manager and set the executable as XDODTEXE. make sure the program short name is the same as Data Definition.
    Set the output type as XML and the OPP will pick your RTF Template.
    -Ashish

  • DISPLAY RUNNING TOTAL IN GROUP HEADER

    Post Author: sharonmtowler
    CA Forum: Formula
    I know there is a way to do this, just forgot how. i am in version 8.5.  i have a manual running total which calculates order qty for the entire sales order.i (dont like using the rt wizard-buggy)
    the knowledge base says to use a cross tab, but there hit or miss also.
    does anyone know how to show the display formula for a manual runnning total in the group header instead of group footer?

    Post Author: pandabear
    CA Forum: Formula
    Hi Sharon,
    I wanted to try this before I sent it to you, but my Crystal is down because (blah, blah, long story here....yawn....).
    I think I understand.  You want to show the "Total" for each group, in the group header instead of the group footer?
    My experience is that Crystal works from the top down (read: limiting), so I need a work around to do this.
    1 - Do the calculation in the query...sum by group, filter with a "Case" statement, etc.  If there's a reason you can't do that then
    2 - (and this is what I wanted to try first) see if you can group on the same field twice. 
    Group 1 - Test.field
    Group 2 - Test.field (same field)
    If you can,
    then just carry the total from the group footer of the previous group (same field) above you, and bring it down
    (shared var ?) to the group below.
    My 2 cents is up.
    Hope this helps,
    The Panda

  • Crystal Reports 11 - How to use group in footer

    hello
    i have a recordset of multiple branches and that is grouped by customer already. a customer  can buy goods from multiple branches so it is summery of customers with their goods. and i need the summery of branches with detail like i have attached an image
    in this image it is the record of one customer with 4 goods which are from 2 branches and in footer it is summery of both branches. i'm having issue here while m showing summery of both branches.so how can i show this summary and it is not sure always that there is only 2 branches. it can be 1 or many.
    i'm using Crystal Report 11

    Hi Amit,
    Use a subreport to show the branch wise summary. Here's a bird's eye view of what you might have to do:
    1) Insert a Subreport pointing to the same table on the Group Header
    2) Right-click the Subreport > Change subreport links > Move the CustomerID or any field that uniquely identifies each customer to the Pane on the right > From the dropdown at the bottom right that reads 'Select data in Subreport based on field', choose the same field. This will link the customer fields from both the datasources.
    3) Inside the Subreport, create a group on the Branch Field and place all the required summary fields etc
    4) Suppress unwanted sections in the Subreport > Right-click the Subreport > Format Subreport > Uncheck 'Keep Object Together'.
    -Abhilash

  • How to display the last value of a field in a group in the group header

    I need to display the last quiz score from a group of quiz scores as part of the header of a group of units (the quiz score values are in the detail record).  I can not use the group footer, which would be the natural place to find the last value.  It must be in the group header because there will be a subsequent group within the unit group.  In other words, the grouping is as follows:
    Unit Group Header (Display last quiz score in unit)
    SubUnit Group Header (Display other detail summaries)
    Detail Record (including quiz score)
    SubUnit Group Footer
    Unit Group Footer
    While there is a minimum/maximum summary function, there is not a first/last function.
    Fuskie
    Who is constantly amazed at the ability of users to request report features that are not easily implented through Crystal Reports...

    Hi Fuskie,
    One suggestion to display the last quiz score in the Group Header, other than what had already been suggested, will be to use a linked subreport in the Group Header. It is not an efficient way to display the information, but it could do the trick.
    Another suggestion will be to insert a subreport in the report header, then store the last quiz score in an array for each group, then share it with the main report and display the  values in the appropriate group. In this way it will only connect twice to the data source, one for the main report and once for the subreport, instead of multiple connection for each group.
    Finally, the most efficient way will be to have this value calculated on the database side using a command object or a stored procedure.
    Patrick

Maybe you are looking for

  • Calling Stored Procedure with OraClob as parameter IN

    I am using Visual C++ and using oo4o the ole way I am try to call stored procedure that have Clob as parameter in it seems the the OraParameters Add method don't have the ability since it can only receive variantt. How do I do it Thanks Yoav

  • Hi there, Fn + F1 to F12 special features are not working properly in bootcamp Windows

    Hi there, I m just wondering recently my keyboard special features keys are not working properly(fn   F1 to F12). Is there any solutions for this?? For example I cant switch the brightness with fn   F1.. THis is so troublesome.... Please help! thanks

  • Navigational attribute and FOX in IP

    Hi, I have experienced a strange behavior of a FOX. This is a copy from ACTUAL InfoCube to PLAN InfoCube, keyfigures are different. In the ACTUAL one, we have only cost center and profit center as navigational attribute. In plan, we have both. Here i

  • I would like to know how to bring the value of total HC effort value into other report

    Hi Experts, I hope you are doing good...! I need your great help in order to fix my issue, I have created HC planning input schedule first then the user enters inputs of each employee on each month by using time dimension at column axis. Once the inp

  • Mac os x 10.7 not recognizing ipod classic

    i plug in my 80gb ipod classic,  it says it's connected on the ipod.  but the computer has no idea that it is there.  It worked completely fine until i updated from Snow Leopard to Lion.  i don't understand what's going on.  i don't think i've done a