Crystal Report Grouping Formula

Experts,
In Crystal repot how can we have Grouping formula basis, i.e
there are two coulmns
1. GRPO Doc No
2. GRPO Doc No (Has GRNA)
now if column 2 has value it should do grouping with this or
if column 1 has value then grouping should be done on col1.
Now i have put one field on other in one single Column, so if GRPO Doc No is present it shows value or vice versa

Hi,
Insert Group in crystal reports for
1.  GRPO Doc No
2. GRPO Doc No (Has GRNA)
Then supress the groups1 when GRPO Doc No is blank and silarly for other.
it will resolve the issue.
Thanks,
Neetu

Similar Messages

  • How to assign a variable value to crystal report viewer formula with CR2008

    Hi ,
    I am using crystal reports 2008 and i am not able to find how to assign  variable value  to crystal report viewer formula.
    In CR 8.5 , i used to have crystalreport1.Formulas(0) = variable1
                                             crystalreport1.Formulas(1) = variable2
    but, i don't find similar kind  in crystal reports 2008.
    How can i achieve the same functionality using crystal reports 2008.
    Thanks in Advance
    Regards,
    Ramnath

    Hi,
    Can i anyone help me out with this.
    I am generating crystal reports in vb6 using CR 8.5 and vb6 and below is the code snippet for the same
    CrystalReport1.Formulas(0) = "PrintTitle= '" & strMyTitle & "'"
    CrystalReport1.Formulas(1) = "FromDate= '" & MskFromDate.Text & "'"
    CrystalReport1.Formulas(2) = "ToDate= '" & MskToDate.Text & "'"
    Please let me know how the same functionality can be achieved in VB.Net using Crsytal reports 2008
    Any code snippet would be of great Help.
    Thanks in Adnvance.
    Ramnath

  • Crystal Reports grouping limits different then tree or tab menu limits...

    <p>Hi,</p><p>This may not be the forum for this, but I figured that if I am trying to make a treemenu function as a replacement for the group tree in CR that it is somewhat relevant...</p><p>I got a production system to run a test and it seems that the Crystal reports group tree control can easily display 3000+ items, no errors, warnings or any other abnormal behaviours. Why would it be possible for this to work, and not have that many elements in a treemenu or tabmenu without the page size limits? I&#39;ve already discovered that in my case I need to break up the levels into smaller strings, but the page size becomes an issue. There are no ways that i have found to duplicate the group tree functionality with that many levels. Even the largest page size cannot display 3000+ items that I have been able to find.</p><p>Thanks for any help you can give. </p><p>&#160;</p><p>&#160;</p>

    <p>this will work for viewing only in boe or in the crystal reports designer...</p><li>In Enterprise (CMC), navigate to the report you&#39;ve just uploaded </li><li>From the process tab, select &#39;Print Setup&#39; </li><li>In the &#39;Set the report&#39;s page layout&#39; section, select the &#39;Custom Settings&#39; option. </li><li>Choose a Height and Width for the report (for example - 40inches width, 10 inches high). </li><li>Click Update. </li><li>Go to the History tab and Click Run Now (assuming the report you&#39;ve built doesn&#39;t have a massive quantity of data) </li><li>You should now be viewing your report with the screenspace chosen (40 inchs wide) - <em>From the viewer</em>, export the report to RPT and save it to your desktop. </li><li>Open the report in Crystal Reports and you will have the report with custom page settings to work with. </li>

  • Crystal Reports Group-by-Summarized Data on SAP-BW

    Hi experts
    I am facing some strange problem while building report aginst SAP-BW
    I have two groups of data set in crystal Reports
    Ist group is on Business Area
    2nd Group is on Cost Element(under business Area)
    and (YTD- Amount) Across  Business Area and Cost Element.
    Problem: I am unable to get correct summarized amount for business area.(which should be sum of all cost elements under specific business area)
    PS: I have done hireachial grouping as mentioned for SAP-BW practise.
    And also tried to apply all summarized formulas with no result.
    But iam unable to trace why it is happening.
    Advance thanks
    Krishna

    did you try inserting the summary in a specific group footer?
    regards,
    Raghavendra

  • Crystal Report Group section in new page

    Hi all,
    I have a program written in VB.Net 2005 which display a report. In this report, I have a group by Item type ascending.
    When I run the program and load the report, it display the data correctly.
    When I move my mouse cursor on Group Section Hearder on the report, it will change to Magnify icon.
    When I double click on that Group title which is "Item Type" in my report, it will load a new page beside "Main Report" in Crystal tool bar.
    Problem is it didn't contain Report Header/Footer or Page Header/Footer.
    I like this feature but it only display the group section is not enough for me.
    Why I like it is because my report will have different Item Type. Each type can list up to more than 1 page.
    I want to print the report by Item Type. That means Item A may be total 2 pages, Item B may be total 6 pages.
    All I need to do is load the page like I mention above, it will only contain that Item Type and click on Print to print out particular Item type.
    Another issue is If i supress this Group Section in crystal report during design, when I run the program I can't double click to open up new page beside Main report.
    Any idea and solution for my case????
    Thanks.
    Edited by: scsfdev on Mar 4, 2010 9:34 AM

    Your report will need re-designing. What you are seeing is an expected behavior. Consider redesigning your report - possibly using subreports.
    If i supress this Group Section in crystal report during design, when I run the program I can't double click
    - again, an expected behavior. You suppressed the GroupSection. E.g.; you made it invisible / non functional / not needed by suppressing it...
    Ludek

  • Crystal Report XI Formula Workshop Window disappeared

    I'm been trying to write a report using Crystal Reports XI.  Which I am having problems with, but at this time my main concern is... whenever I click on the Formula Workshop the application totally hangs and the box never comes up.  You can here it beep like the window should be hiding but I have been unable to find.  I usually run 2 screens and it is not on the other screen.  I am a PC person more than a Crystal Report person and can't find it anywhere.  I tried to run a repair and that didn't work either.  I can kit esc to unlock everything but i need this to build some formulas.  Suggestions?

    Hi,
    That's usually because the Formula Editor is 'lost in space'. Here's are two ways to get around this:
    Resolution 1:
    1) Open Crystal Reports on any machine with dual monitor setup
    2) Click on the Conditional Formatting button (x+2) of any field
    3) Now, with Crystal Reports open and in focus use Alt + Space, then M, then Arrow key, and then move your mouse around
    4) The Formula Editor window which was earlier off-screen should appear from one of the sides of the screen
    5) Re-open the report and the Formula Editor should show up on the Primary Display hereafter
    Resolution 2:
    1) Open the Registry Editor (Start > Run > regedit)
    2) Browse to HKEY_CURRENT_USER\SOFTWARE\BUSINESS OBJECTS\SUITE 11.0\Crystal Reports\Formula Workshop
    3) Change the value data for Editor Position as 10,10,10,10
    Let me know how this goes!
    -Abhilash

  • Crystal report group by intervals on date field

    I have a table which contains euipment related defects arranged on Date_Raised field. I have to grouped the records based on date_raised field and certain intervals like if date_riased field is < certifciate_complication_date, if date_raised falles between certficate_complication_date and final_certificate_date.
    certificate_completion_date and final_completion_date field are parameters which are fetch from another table & pass onto report.
    my problem is , crystal report in VS 2003 doesn't allows to enter parameters in specified group when you select this option. you have to enter fixed values.
    Does anybody knows how to get around this, any quick help will be highly appreciable.
    I have to do this in VS 2003 only.
    Thanks,
    Sunil

    That version of CR is version 9 which does not have Dynamic Cascading Parameters. One option is to upgrade or possibly post your question to the Report Design forum and indicate you are using CR 9 functionality.
    Other option is to use 2 Parameters with a start/end date prompt.

  • Crystal Reports 2008 Formula in Cross-Tab Error Not Supported

    I have a crosstab that was created in Crystal XI and when I opened the report in Crystal 2008 I receive an Error "Not Supported" when I removed the fromula that was in the Crosstab the report displayed. The following is the formula that is within the crosstab:
    If {VWR_PPS_VISIT_SCHEDULE.COHORT_NAME} = '(No Cohort)'  THEN
        If DistinctCount({VWR_PPS_VISIT_SCHEDULE.COHORT_NAME},{VWR_PPS_VISIT_SCHEDULE.PROPOSAL_VERSION_ID}) >1 then
             {VWR_PPS_VISIT_SCHEDULE.COHORT_NAME}&" "&{VWR_PPS_VISIT_SCHEDULE.VISIT_NAME}
        else
            ""&" "&{VWR_PPS_VISIT_SCHEDULE.VISIT_NAME}
    else
        {VWR_PPS_VISIT_SCHEDULE.COHORT_NAME}&" "&{VWR_PPS_VISIT_SCHEDULE.VISIT_NAME}
    As I mentioned the formula works perfectly in Crystal XI but not Crystal 2008 which no sese at all.  We are preparing to migrate from Crystal XI to Crystal 2008 and if this is an issue we may need to but upgrading off.
    Any help with this would be gratly appreciated.
    Thanks
    Edited by: jackie2009 on Oct 9, 2009 3:41 PM

    Try adding brackets around the If statements.e.g.
    If {VWR_PPS_VISIT_SCHEDULE.COHORT_NAME} = '(No Cohort)' THEN
    If DistinctCount({VWR_PPS_VISIT_SCHEDULE.COHORT_NAME},{VWR_PPS_VISIT_SCHEDULE.PROPOSAL_VERSION_ID}) >1
    then {VWR_PPS_VISIT_SCHEDULE.COHORT_NAME}&" "&{VWR_PPS_VISIT_SCHEDULE.VISIT_NAME}
    else ""&" "&{VWR_PPS_VISIT_SCHEDULE.VISIT_NAME}
    else {VWR_PPS_VISIT_SCHEDULE.COHORT_NAME}&" "&{VWR_PPS_VISIT_SCHEDULE.VISIT_NAME}

  • Crystal reports group total

    Hi,
    I have sql query which gives output of accounts and balance.
    I have designed report to show chart of accounts and their balances.
    How can I take group total fields to show sum of each level of accounts.
    Level
    Account
    Header 3
    Header 4
    Header 5
    Header 6
    Header 7
    1
    Revenue
    2300
    2
            Direct Income
    300
    3
                    Sales
    300
    4
                            Sales
    300
    5
                                    In Store Sales
    100
    5
                                    Online Sales
    200
    2
             Indirect Income
    2000
    3
                     Interest
    1100
    4
                             Bank Interest
    1100
    5
                                     Bank Interest A
    400
    5
                                     Bank Interest B
    700
    3
                     Other Income
    900
    4
                              Other Income
    900
    5
                                     Other Income
    900
    In my reports I have taken all the accounts and balances in five detail sections.
    I want to create formula to show level wise addition of account balances.
    Please reply.Thanks.

    Hi,
    Try this code
    {Level}=1 then {Header 3}
    else if {Level}=2 then {Header 4}
    else if {Level}=3 then {Header 5}
    else if {Level}=4 then {Header 6}
    else if {Level}=5 then {Header 7}

  • Crystal Report grouping issue

    I have a report with 2 groups.  I first group by Profile then Location with there being 1 Profile and 2 Locations that exist within that profile.  I have a subreport in the Location Group header that reports correctly with Location 1 on page 1 and Location 2 on page 2.  I then want to summarize the data by profile.  I currently have another subreport in the Profile footer that I hoped would accomplish this, but instead I only get the totals from the first location and not the second.  Can someone tell me what I am doing wrong?  Any suggestions would be helpful.
    DSmith

    Do you want the sum from each locations? you can use shared variables to pass the values from subreport to main report. Also you mentioned that you placed the subreport in profile footer. Does this subreport consist of all the fields that you have in subreports placed in location1 and location2?
    regards,
    Raghavendra

  • Crystal Reports Group Summaries

    I've been away from CR for a while and need some help with a report.  The database I'm reporting from has many tables and the ones I'm using are:
    Workorders
    Activity Detail
    Activity Master
    Labor Details
    Parts
    The report is based on a given Workorder with all the activity listed in ascending order (group #1) reporting subsequent activity information all of which is reporting correctly.  I now need to pull from the Labor table listing the activity's total hours and amount, total parts cost, total contract labor hours and amount, total of all costs per activity (group subtotals).  Then at the end of the entire report a totals of all hours, amount, part costs, contract hours, contract amount, grand total of all costs.
    I was thinking I'd need to do a group subreport, but can't get it to work.  Thank you in advance for your help.

    did you try inserting the summary in a specific group footer?
    regards,
    Raghavendra

  • Crystal Reports Grouping Problem

    Hello, I am using CRXIR2
    I have a report of invoices that is grouped by PO Number. When I run the report, if there are more than one Invoice per PO. I can not see the second or third invoice. I can see the invoice numbers listed in the preview pane but when I click on the invoice number it will not show me the invoice in the report window.
    Any ideas?
    Thanks
    Jeff

    Hey Jeff,
        Maybe you could show some data.  Seems like my head is needing more data, and asking:
        Check the relationship between the PO and Invoice numbers.
        Group on PO, and then invoice numbers.  If you can't do that, you might need to start over with the query.
        Try to "right join" the PO table to the invoice table.  (If they are in the same table, that could be your problem).  This will bring in all the PO's, and only the corresponing invoices.
        Check that the data returned is truely incorrect.  Sometimes it IS correct for the way the query is written. (...well, always actually....:)
    The Panda

  • How to handle division by zero error in sap crystal report custom formula function

    Hi,
    I have one report in that there is one custom function created called percentage when i run the report it give me error like division by zero. here is that function
    Function (stringvar amount11,stringvar amount22)
    stringvar amount1 := replace(replace(amount11,'.',''),',','');
    stringvar amount2 := replace(replace(amount22,'.',''),',','');
    if length(amount2) < 16 then
    tonumber(amount1)*100/tonumber(amount2)
    else
    numbervar c:= length(amount2) - 15;
    if length(amount1) > c then
    stringvar amount3 := left(amount1,length(amount1)-c) + '.' + replace(replace(right(amount1,c),'.',''),',','');
    tonumber(amount3)*100 /tonumber(left(amount2,15))
    else
    0
    in RED highlighted area here i got that error. how i can resolve this one.
    Kind Regards,
    Ganesh

    Hi Ganesh,
    Change the formula in which the function is being called to:
    stringvar amount22;
    if amount22 = 0 then 0 else
    Function (stringvar amount11,stringvar amount22);
    -Abhilash

  • Crystal Report with text(csv) data file, can we set it as input param? C#

    Hi,
    I am new to the forums and posted a question which belonged to the .net - SAP Crystal reports group.
    Can someone help me with my problem? following is the thread that I have started.
    Crystal Report with text(csv) data file, can we set it as input parameter?
    Thank you in advance.

    Looking at the original thread, you are connecting to the text file via the DAO database engine:
    "I added the text file as follow, new connection -> Access/Excell (DAO) -> select the file and the database type as text"
    Thus I would use the same code for changing the text file as for changing an Access database. See Kbase [1218178 - Error: "Logon failed" when connecting to Access database in .NET application|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333133373338%7D.do] for more information. If that does not work, you may want to consider connecting via ODBC or feeding the data from the text file to and ADO .NET dataset and pointing the report at the dataset.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Cannot Open Crystal Report

    Dear All,
    We set crystal report group and assign all crystal report for each group.  When they try to run the report, there's an error message: "you're not authorize to view or print this report".
    How do we solve this problem?
    Thanks and Regards,
    Lailus

    Dear Gordon,
    I've been through those process, create user group, assign users to the group and assign CR report to the group.
    Btw, user type is normal user not super user.
    Regards,
    Lailus

Maybe you are looking for

  • Can I install windows 7 on a potable Hard Drive using boot camp? or any other way to do so?? need help for college please

    I need to use windows in order to use Visual C++ for college but I don't have enough space in my internal Hard Drive so I want to install windows 7using boot camp or any other method on a portable hard drive and boot from it. Please help I need it as

  • GR/IR Clearing F.19 - No document generated

    Hi I am trying to regouping the GR/IR account at period end but not getting any batch session while executing F.19. I have done following settings at OBYP:- Key BNG (Invoiced but not yet delivered) Reconcliliatin account as our GR/IR account Adjustme

  • Unable to install elements 11 on windows 7 64

    Support token 40-21234-025421082013 I do not know where to place it. I'm very dissapointed. Help referes to productos I've not installed in my brand new PC (CS5) Adobe Support Advisor says: licensing program --> cpsid_83578r3: Error, "Validate licens

  • Oracle 10g on Windows - How to connect?

    May be this is a small one, I dont know how to connect to sql in windows. I installed oracle 10g on Windows XP SP3, choosing basic Installation. Successfully Installed. In Linux we use sqlplus '/as sysdba' to connect and we get sql> prompt. In window

  • Problem of orphan child records

    Hi I am working on Oracle 8i DB. The production database contians around 100 tables.About 60% tables are interrelated by referential integrity . However , there are some records found which are not such that child records are present without parent r