CR XI Crosstab report: group suppressed -- Debug strategy?

Hello,
I have a Picking List report that uses a crosstab with a SQL Server stored procedure.
The columns group the partcode by component.  The rows group by 2 dimensions (height and width), and the summary fields show the partcode and total quantity.
Component 1        |         Component 2  |         Component 3   | etc...
QTY | CODE          |  QTY  | CODE          |  QTY | CODE
21    |  289x398     |           |                    |  etc...
7      |  432x398     |           |                    |  etc...
20    |  210x447     |  30     | 210x447
        |                     |  2       | 243x598
The rows are grouped by height and width only for the purpose of sorting.
The code is already determined by its dimension, but grouping by height and width allows sorting.
The rows are sorted by height ascending, width ascending. (You can see this in my above example).
(Note:  Not all components have all parts -- that's why there are blanks)
There is nothing especially complex.  This is a pretty run-of-the-mill crosstab.
And it works....about 99% of the times it is executed.
About 1% of the times it is executed, one of the Component columns groups by height only.
Instead of the above, it would show:
Component 1        |         Component 2  |         Component 3   | etc...
QTY | CODE          |  QTY  | CODE          |  QTY | CODE
28    |  289x398     |           |                    |  etc...
                              |           |                    |  etc...
20    |  210x447     |  30     | 210x447
        |                     |  2        | 243x598
So instead of having two parts listed for Component 1 with a height of 398, there is only one part,
and the total quantity is 28 instead of 21.  The rows have been grouped by height and NOT width, and all but the first
part with a given height are suppressed.
If I execute this same report from the designer or the hosting application, the problem is not reproduced.
The only reason I know the frequency of error is because these reports are programmatically exported to PDF,
and I can look through the history of executions.  I have looked through about 250 pdfs and found 3 erroneous reports.
So given how rarely this occurs, I have two options.  On the one hand, I could let the cross-tabular work get done at the stored procedure level where there results can be validated, traced and monitored for anomalies.  In this case, I would simply be choosing a different technology, and if Crystal is the source of the bug, I'll never really know.
On the other hand, if there is a way a Crystal Report could be programmed to validate the results it presents as well as the data source itself, then I could implement this validation and wait for the error to occur again. 
Is there a debug strategy that could help me in this situation?
Thanks for any help.
Sean

Once you find an erroneous report, can the report be re-run over the same data (same parameters, same underlying data records after record selection) and the error duplicated?
Can you dump the data read by Crystal in the Detail section of the report?  (Verify the data is as expected...)
Can you post the stored procedure?  (Please wrap it in  markup to keep it readable.  A sample of both crosstabs wrapped in the markup would be helpful, too.)
Carl

Similar Messages

  • Adding a dummy column for text in crosstab report

    I created a report using crosstab to show trended months per column & details per row.  Now I'm trying to add additional columns to the crosstab report to display other pertinent info (not calculations, just text pulling from the database).  I read from various threads in the forum that I can create dummy columns to accomodate this, but I don't know how to do so.  Can someone please guide me in doing so?  If creating dummy columns is not a solution, please advice on what's the best way to add text columns to a crosstab report.  Any help is truly appreciated.  Thank you.
    Original report:
    Emp Name     Jan     Feb     Mar     Apr     May     Total
    Doe, John     20     17      30       28     33       128
    Wish to accomplish:
    Emp Name     Emp#     Dept#     Yrs Employed     Jan     Feb     Mar     Apr     May     Total
    Doe, John   12345     6010          8             20     17      30       28     33       128

    Hi Fione,
    I don't have access to CR at the moment but this is how I can think of doing this:
    1) Create a Subreport that points to the same table as the Main Report
    2) The Subreport should return the same number of Employees and in the same order as the Main Report - you can do this by creating a group on the Emp field just like the 'Row' in the Crosstab
    3) Create separate array variables - one each for Emp#, Dep# etc that accumulates values for each employee and inserts it against an index of the array
    4) Suppress all sections inside this subreport and place this Subreport on the Report Header of the Main Report
    5) Reduce the size of this subreport so that it isn't bigger than a dot and DO NOT suppress the section that holds this subreport
    6) Insert Calculated Members in the Crosstab for each column you need
    7) Use the array variable meant for the respective column. You just need to print the value at each index of the array based on the 'currentrowindex+1' function.
    -Abhilash

  • Sub report group tree in main report Using crystal report 12

    Hi experts,
        I have a strange requirement like, same data needs to be grouped two different ways in a same report.  Like
    Store1:
        Summary of sales on each item chart
    Store2:
        Summary of sales on each item chart
    .....it goes like this
    Department1(multiple stores)
          summary of sale on each item chart - store1
          summary of sale on each item chart - store2
         --........ it goes
    Department2
          summary of sale on each item chart - store3
    --........ it goes
       Its in single report, the first part is grouped only with store and in second part the store is under department. How to do this in same report?
        I achieved  this by creating a sub report to display the first part of data and in the main report sup report data plus the second part of data will be displayed. And its working well but now the problem is the group tree, I'm not able to see the sub report group tree in the main report.
       How to get the sub report group tree in the main report, Or is there any other better way is there so i can get both the data as well the group tree. Please help me to solve this. CryCryCry
    I'm using crystal report 2008(installed separately) with Visual Studio2008 (.Net3.5)
    Thanks in advance.

    Hi
    Thanks for the reply.
        Yea both data source are same(Datasource is SQL Stored Procedure). I cant use like that, because my client needs the group tree also. In case if there is no group tree, we can create one more group and supress it conditionaly. But here the problem is there is no way to suppress any of the group item in group tree as we can do it in the detail section.
        So please me with some different ways and also , please clarrify the following doubts
    1. Can we supress one or more items in the group tree.
    2. Can we get the sub report group tree in main report(Everything is working when i used the sub reports except the group tree). So I'm trying for different ways to do, but none is helping me
    Please help me

  • How to make crosstab report in crystal report

    Hi all ,
    I want to make a crosstab report in crystal report
    my query is like this
    select YearDate.year ,
    (currentasset.currentaset / currentliability.currentliability  ) as CurrentRatio
    ,(currentasset.currentaset - Inventory.Inventoryaset / currentliability.currentliability ) as QuickRatio
    from
    select distinct YEAR(JDT1.RefDate) as year from JDT1
    )YearDate left join
    select YEAR(JDT1.RefDate) as year,sum(JDT1.Debit - JDT1.Credit ) as currentaset from JDT1,OACT
    where JDT1.Account = OACT.AcctCode
    and OACT.AcctCode = '11'
    group by YEAR(JDT1.RefDate)
    )currentasset on YearDate.year = currentasset.year left join
    select YEAR(JDT1.RefDate) as year,sum(JDT1.Debit - JDT1.Credit ) as Inventoryaset from JDT1,OACT
    where JDT1.Account = OACT.AcctCode
    and OACT.AcctCode = '11.05'
    group by YEAR(JDT1.RefDate)
    )Inventory on YearDate.year = Inventory.year left join
    select YEAR(JDT1.RefDate) as year,sum(JDT1.Debit - JDT1.Credit ) as currentliability from JDT1,OACT
    where JDT1.Account = OACT.AcctCode
    and OACT.AcctCode = '21'
    group by YEAR(JDT1.RefDate)
    )currentliability on YearDate.year = currentliability.year  left join
    order by YearDate.year
    So if i view the data in sql server it should be like this
    Year   CurrentRatio   quickRatio
    2006               501                 100
    2007              600                  200
    2008             700                   300
    2009             900                   400
    I want to make a crosstab with the column is year . the Year is dynamic according to the selection
    So if i select the year from  2007 to 2009
    It should be like this in report
    2007                2008              2009
    CurrentRatio                 600                  700                  900
    QuickRatio                    200                   300                 400
    How can i make it in Crystal report ?
    I have use the template in crosstab crystal report, but there is not suitable.
    Can i make manually. ?
    Thanks in advance
    Regards
    KK

    Hi kevin,
    thanks for your respond . Actually, it's work.
    But i have some issue again.
    How can i make a grouping
    So the grouping per Item
    For example                                                                               
                                                          2006                 2007                 2008
    Group 1               Item A                5                        6                       7
                                Item B                7                        8                       9
    Group 2              Item C                  9                       0                      0
                               Item D                 8                        8                      9
    And another question, Is there always have row summary ? It seems that after the 2008 column, there is a total column, Can I remove this ?
    Thanks in advance
    regards
    KK
    Edited by: kah kian on Jun 2, 2011 4:17 PM

  • Crstal Reports XI - Crosstab Report -  Displaying Dates (Cashflow)

    Hello
    I was wondering if any one would be able to help me with an issue I'm having.  I need to create a cashflow report at the moment I'm trying with a crosstab report (this may be the problem)!!
    I need it to display in the following way. (you may not be able to see the layout), but basically months across the top ( as columns), opportunity description as rows, values then appear under dates.
                                                             Oct-11   Nov-11   Dec-11   Jan-12   ...............Sept-12
    Opportunity Description                                 100.00                                              
    Opportunity Description 1                                                           100.00
    I have several formulas I have included the simpilest below, the problem I'm having is the year is not being taking into consideration and some of the values are display in the incorrect months.
    eg.   The report will run for a year, If my estimated date is Aug 2012 and I add 3 months to it, it should not display on my report (Nov-2012) but it wraps and appears in Nov-2011...
    Case "One Off":
    If (Month ({Sheet1_.Monthstart})=Month (DateAdd("m",3,{OPPORTUNITY.ESTIMATEDCLOSE}))) Then {@First_Year_Fees}
    I think its because I'm not defining the date correctly and taking into account the year. 
    If anyone can solve this I would be very grateful or is there an alternative method other than using a crosstab...
    Thannk you very much
    Sarah

    Try a date range parameter to select your data rather than a date in the middle of the year. If you are concerned that they not enter in exactly one year, you could test the date range with
    not({?enddate}-{?startdate} = 365)
      and give them a warning, you could even suppress everything except the warning that the date range must be one year.
    Or use just a starting date parameter and use it as
    date({field}) >= {?date} and date({field}) < {?date}+366  // adds 1 year
    or just an end date.

  • Is there a way to improve the performance of a report group?

    Hi gurus,
    Is there a way to improve the performance of a report group? 
    Points will be given later....
    Thanks!

    Hi there,
    Thank you for your response. I thought there's no answer for this issue and planning to change it to ALV.
    I looked at the codes and debugged it. After the select statement from ZZUWT table (customized), there's a loop that takes much time (10-12mins) for 1000 records. and several nested perform routines. It's a standard program so I'm hesitant to edit it.
    I'll be checking on the primary keys. If it's ok, may I ask for your assistance in this part? Though I'm not that familiar and haven't tried creating a report painter before.
    Thanks anyway...:D

  • Drill down in crosstab report

    I'm working with a crosstab report displaying summary accounts on each row & current and prior year on each column. I'd like to create a drill down function for each of the summary accounts rows so that when I click on a summary account, the dept# that made up this summary total will be displayed either on a separate report or below the summary account that I click.
    Any help would be greatly appreciated.  Thank you.
    This is what I want to create:
    SUMMARY ACCOUNT               FY2014     FY2013
    600001 - SALARIES               500        380    (i.e. able to drill down to dept below when 600001 is clicked)
        701000 - ER DEPT            200        175
        757000 - CATH LAB           150        210
        848000 - INFO SYSTEM        100         65
        851000 - ACCOUNTING          50         50
    710002 - BENEFITS               150        140
        881000 - HUMAN RES          135        130
        900000 - OTHERS              15         10
    711003 - SUPPLIES               XXX        XXX

    Thank you for the referenced thread.  I've copied your answer on the thread to this reply below.
    However, I do have a few question in following thru your instructions:
    1.  How do you procede with the 1st 3 bullets below?
    2.  What or where is the Business Object Platform?
    3.  What or where is the "Repository"
    Please advice.  Thank you.
    Here are a few ways you can drill-down into a cross-tab (all of them are workarounds by the way).
    The first method is using Report Parts or ‘Another Report Object’ and the second method is using an ‘OpenDoc’ URL
    Both the methods need the target report (report that is opened when drilled into) to have the same groups as the Crosstab
    The ‘Another Report Object’ can be setup in the following way:
    The target report needs to saved to the BusinessObjects Platform first
    Open the target report in the Crystal Report designer from the ‘Repository’
    Assuming the groups have been setup properly, click on any field in the details section and ‘Copy’ (Ctrl+C)
    Open the Report with the Crosstab
    Right-click the Summary Field on the Crosstab and go to ‘Format Field’ > Hyperlink
    Then Check ‘Another Report Object’ and click on ‘Paste’
    All the required information should be populated automatically
    This is how the Data Context should look like:
    “/”+GridRowColumnValue(“Customer.Country”)+”/”+ GridRowColumnValue(“Customer.Region”)+”/”+ GridRowColumnValue(“Customer.Customer Name”)
    Where “Country” and “Region” are rows in the Crosstab, “Customer Name” is a column in the crosstab.
    Similarly, “Country”, “Region” and “Customer Name” are groups on the target report
    So, the above formula would make sure the report drills-down to the last group
    The next method using ‘OpenDoc’ makes use of the opendocument URL and passes values from the Crosstab to the target report’s parameters
    Here’s how we can set this up:
    The basic design of the Main report and the target report would be the same as in above, however we would need to create parameters that correspond to the groups on the target report
    In this case, we would create three parameters – Country, Region and Customer Name
    We would use these parameters as filters on the target report and our record selection formula would look like this:
    {Country} = {?Country} and {Region} = {?Region} and {Customer Name} = {?Customer Name}
    We would then link the Main reports ‘Country’, ‘Region’ and ‘Customer Name’ with these parameters
    Now on the Main report Right-click the Summary Field on the Crosstab and go to ‘Format Field’ > Hyperlink
    Check the option ‘A Website on the Internet’ and click on the formula button in ‘Hyperlink information:”; the formula should be as follows:
    “/OpenDocument/opendoc/openDocument.jsp?iDocID=6472&lsSCountry=”&GridRowColumnValue(“Customer.Country”)&” &lsSRegion=”&GridRowColumnValue(“Customer.Region”)&” &lsSCustomer+Name=”&GridRowColumnValue(“Customer.Customer Name”)
    When any summary value is clicked in the Cross-tab, the corresponding Country, Region and Customer Name are passed as values to the parameters of the target report
    Hope this helps!
    -Abhilash

  • Conditional Format in crosstab report

    Hello All,
    Is it possible to do a condditional format in cross tab report.It works for a table but not crosstab report.
    Basically my report is like this
    Day1 Day2 Day3 ......Day 31
    Jan 10 20 -1 60
    Feb -1 45 78 -1
    Mar 23 -1 12 12
    Dec -1 23 67 78
    I want to put in red all those negative values or put some text.If insert conditional format,it applies only for the first month,it does not apply for other months.
    Is conditional format not possible in crosstab report?
    Thanks

    Hope the following helps...
    I tested using sample xml
    <ROWSET>
    <ROW>
    <DAY>Day 1</DAY>
    <MONTH>Jan</MONTH>
    <VAL>8</VAL>
    </ROW>
    <ROW>
    <DAY>Day 2</DAY>
    <MONTH>Jan</MONTH>
    <VAL>128</VAL>
    </ROW>
    <ROW>
    <DAY>Day 3</DAY>
    <MONTH>Jan</MONTH>
    <VAL>88</VAL>
    </ROW>
    <ROW>
    <DAY>Day 4</DAY>
    <MONTH>Jan</MONTH>
    <VAL>-8</VAL>
    </ROW>
    <ROW>
    <DAY>Day 1</DAY>
    <MONTH>Feb</MONTH>
    <VAL>12</VAL>
    </ROW>
    <ROW>
    <DAY>Day 2</DAY>
    <MONTH>Feb</MONTH>
    <VAL>0</VAL>
    </ROW>
    <ROW>
    <DAY>Day 3</DAY>
    <MONTH>Feb</MONTH>
    <VAL>-88</VAL>
    </ROW>
    <ROW>
    <DAY>Day 4</DAY>
    <MONTH>Feb</MONTH>
    <VAL>-11</VAL>
    </ROW>
    <ROW>
    <DAY>Day 1</DAY>
    <MONTH>Mar</MONTH>
    <VAL>-20</VAL>
    </ROW>
    <ROW>
    <DAY>Day 2</DAY>
    <MONTH>Mar</MONTH>
    <VAL>12</VAL>
    </ROW>
    <ROW>
    <DAY>Day 3</DAY>
    <MONTH>Mar</MONTH>
    <VAL>99</VAL>
    </ROW>
    <ROW>
    <DAY>Day 4</DAY>
    <MONTH>Mar</MONTH>
    <VAL>32</VAL>
    </ROW>
    </ROWSET>Crosstab structure...
    (1,1)<?horizontal-break-table:1?>
    (1,2)<?for-each-group@column:ROW;./DAY?><?DAY?><?end for-each-group?>
    (2,1)<?for-each-group:ROW;./MONTH?><?variable@incontext:G1;current-group()?><?MONTH?>
    (2,2)<?for-each-group@cell://ROW;./DAY?><?if:($G1[(./DAY=current()/DAY)]/VAL)<0?><?attribute@incontext:background-color;'Red'?><?end if?><?($G1[(./DAY=current()/DAY)]/VAL)?><?end for-each-group?><?end for-each-group?>In the IF statement either you can format the color or put some text..

  • Report Groups and Libraries

    Hi,
    I have a query related to report groups download. We had a requirement of moving reports from 4.6 systems to 4.5 systems. So we downloaded the report groups from 4.6 system into our local hard drives (and thought of uploading in 4.5 systmes thereafter). But while downloading we got several warnings. One of those warninigs is as:
    W-R3OB REWR RGVD\CCSS\ZC-PLN-TOTAL-YTD-V2 >>> group 0101PMCO100EXEC not transported
    W-R3OB REWR RGVD\CCSS\ZC-PLN-TOTAL-YTD-V2 >>> Transport groups separately if necessary.                                                                         
    We ignored this warning and tried uploading the report group in 4.5 systmes. There while uploading we got many errors for the report groups. One of which is like:
    E-R3OB SETS STSO\0000ZFNCOSTCTRGP.CCSS >>> Unknown subset in set 0000ZFNCOSTCTRGP.CCSS                                             
    E-R3OB SETS STSO\0000ZFNCOSTCTRGP.CCSS >>> Import of object unsuccessful, object not imported
    Being unware of this sets theory in report groups, i am looking out for some expert advise if somebody has dealt with this kind of problem anytime.
    Thanks and Regards,
    Kishore.

    Hi,
    I don't know if its possible to suppress/hide libraries/reports.
    Create T-codes for the reports the users really need and add the reports to the corresponding area menu in SAP. Thus users don't have a need to use GRR3 anymore, remove the T-code from the authorization concept.
    best regards, Christian

  • Average no value in crosstab report (Discoverer Desktop)

    Hello experts,
    I have a crosstab report, and i want to use avg to a calculation field, but in crosstab i have no values and when i make drill down i have values under my group.
    how can i solve this?
    Edited by: user13062021 on 18-Feb-2011 07:44

    I make this change to my values "nvl(<item>,0) but nothing happened. In discoverer plus the values are correct but in discoverer desktop the values are null.
    Instead of this in analytical sheet i do not have null values to this column.
    For your information,
    in analytical sheet i have a calculation field with round and nvl functions, and i calaculate this field from the analytical sheet to crosstab sheet with an AVG() function, and cannot claculate.
    When I first make this sheet the values in discoverer desktop are all correct, but on the other day when I make refresh to my sheet the values are null.

  • Error in generating a report group in Report Painter

    Hi,
    I created a report in SAP report painter using transaction code GRR2. I attached the report to an existing group ( 15 reports already in the group), when I generate the group in transaction code GR55 thereu2019s an error message u201CSyntax error in GP40V42F6QG4OQVI4Q93F6FE3QK500, row 97,644 (-> long text)u201D. Please help me on this error.
    Thanks,
    Louie

    There's no error when I generate the same report in a new created  group as well as when I generate the existting report group without the new created report.
    Information on where terminated
        The termination occurred in the ABAP program "GP40V42F6QG4OQVI4Q93F6FE3QK500"
         in "FILL_RANGES_FROM_SET".
        The main program was "GP40V42ERDE7HBU91TXFAHVA6B0500 ".
        The termination occurred in line 92457 of the source code of the (Include)
         program "GP40V42F6QG4OQVI4Q93F6FE3QK500"
        of the source code of program "GP40V42F6QG4OQVI4Q93F6FE3QK500" (when calling
         the editor 924570).
    Louie

  • Report Group in  Report Painter

    In my <b>report group</b> there are many reports .
    Now i need to give a transaction code to my <b>report group</b>.
    Then which report will execute by the transaction code

    Hi
    To create a Transaction Code for a Report Painter/report writer report
    Tcode for Report Painter
    To create a TCode, follow the steps below.
    1) Go to Transaction code SE93, Enter TCode Name and Press Create.
    2) Give short Description and select Parameter Transaction, Press Enter
    3) Select Transation Radio Button and write START_REPORT in the next text
    box Also Check the box Skip Initial Screen.
    4) On the bottom of Screen (default Values), Enter Parameters
    i) Name = D_SREPOVARI-REPORTTYPE. Value = RW
    ii) Name = D_SREPOVARI-REPORT Value = Your Report Group Name (Say 1SIP)
    5) Save and Execute.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Main Reports' Group Tree doesn't retain last record selected

    In Crystal 2008 Viewer, when you click one of the last tree nodes on a long Group Tree, the program jumps to that part of the report for that group.  But when you return to the Main report tab the Group Tree pane returns to the top.
    According to my users, previous Crystal versions used to outline the previously selected tree node and keep that section in the left pane, so the user could see where they just were.
    This partially works in the Crystal 2008 Developer version.  If I preview the report and drill down with the group tree, the Preview tab's group tree pane stays in place.  I do not, however, have any outline or indication of what group was just selected.
    I found this in the help text: "For longer reports or reports in which you wish to jump back and forth between different groups, the smart navigation features of the Group Tree make your work extremely efficient."  For the users to jump back and forth efficiently they need the Main Reports' group tree to remember the general location from which they came (at a minimum) AND/OR the previously drilled record also be highlighted/outlined (at best).

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Crosstab report with null or wrong totals

    I have a crosstab report that when I put a field in an item report area and setting <all> for values I get null values and with other fields I get wrong results (less than I wait). If there's no report item, it's return the correct results.
    I have checked the SQL and it not return any null value.
    I believe that the crosstab try to aggragate and sum the null values of the empty cells in my crosstab.
    Anyone knows how to fix it?
    I'm using Discoverer 10g Desktop.

    can you send your xml data and template to [email protected]

  • Short dump while executing report group.

    Hi,
    We are upgrading to ECC6.0 from 4.6C
    Now while testing the report group i got short dump.
    This is due to to the 'Exception condition "LOAD_PROBLEMS" raised.'
    Error analysis
        A RAISE statement in the program "SAPLSLDB" raised the exception
        condition "LOAD_PROBLEMS".
        Since the exception was not intercepted by a superior
        program, processing was terminated.
        Short description of exception condition:
        For detailed documentation of the exception condition, use
        Transaction SE37 (Function Library). You can take the called
        function module from the display of active calls.
    Function module 'SELOPTS_AND_PARAMS' in this that statement was there.
    Can some one help me out. what i have to do further.
    Thanks in advance.
    Regards,
    Deepak.

    Hi Hemanth,
    Actually what I analysed is what ever the exception raised due to this sy-subrc that exception i think the superior program is not receiving. I think due to this it is going for short dump.
    Let me know if you have any idea further.
    Thanks,
    Deepak.
    Message was edited by:
            Deepak Kudaravalli

Maybe you are looking for