CRVS2010 Beta - Report with many tables

Hi,
I was developing my application first with a test Database with few tables. Now that I am changing to the actual database (with about 200 tables) I noticed that the ReportDocument takes a really long time to load when I tried to access the DataDefinition for the first time.
Is there one way to avoid this?? The tables are all there because I need to have the option the select the table that I wanna use in the application, but after this I just use the table chosen and the linked tables in the Report.
thanks

OK where to start...
First the act of adding 200 tables, and I assume none of them are linked is the first problem you are going to have. CR is a relational database reporting tool. Not linking tables generates multiple SELECT statements.
If you only need one or two then use RAS to add the tables and then the fields, Bascially you are creating the report designer for your users. All of the user interface needs to be created by you.
There may be one option that could help but what you are doing is likely never going to be fast....
Open regedit32.exe and go to:
HKEY_CURRENT_USER\Software\SAP BusinessObjects\Suite XI 4.0\Crystal Reports Designer Component\DatabaseOptions
In there you'll find a key called - DoAutoSmartLinking
Set the value to No
What that key does is when a report is open CR tries to link all tables and all fields.
Good luck
Don

Similar Messages

  • CRVS2010 Beta - Reports with JDBC or JavaBean datasource

    There is a reason why you can not  find crdb_jdbc.dll C:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86...
    1) No previous versions of CR that bundled with .NET (CR 10.2, CR 10.5) included crdb_jdbc.dll
    2) CRVS2010 is essentially an equivalent to a bundle (more below)
    3) You can not simply copy version 12 dll and hope it will work with another version of CR - this will certainly not work and I am actually surprised that the dll even loads... additionally, I suspect this may be breaking licensing agreements.
    I will ask Program Management what their view is on  the driver with respect to CRVS2010 and post their reply here. But at this time, I suspect the answer will not be particularly positive...
    Ludek

    Hi Ludek,
    Thanks for that. I was fairly sure it was never going to work (especially with the version differences), but just wanted to get the question asked.
    I'll go back to my CR2008 environment and try to get it working on there - hopefully I'll have more luck.
    At some point we will want to upgrade to VS2010 and, if that means we need to convert all the reports to ODBC/ADO .NET datasources, it's likely to be later rather than sooner!
    Any more info you discover on this would be gratefully received.
    Many thanks,
    Darran Smith

  • Problem with SUBMIT report [ WITH SELECTION-TABLE ] or [ IN range ]

    Hello Everybody,
    I am trying to call transaction F.80 for mass reversal of FI documents by using SUBMIT sentence and its parameters like this:
      LOOP AT i_zfi013 INTO wa_zfi013.
        PERFORM llena_params USING 'BR_BELNR' 'S' 'I' 'EQ' wa_zfi013-num_doc ''.
    range_line-sign   = 'I'.
    range_line-option = 'EQ'.
    range_line-low    = wa_zfi013-num_doc.
    APPEND range_line TO range_tab.
    endloop.
    Line: -
          SUBMIT sapf080
            WITH br_bukrs-low = p_bukrs
            WITH SELECTION-TABLE it_params  [ same  problem with -  WITH BR_BELNR IN range_tab]
            WITH br_gjahr-low = p_an1
            WITH stogrd = '05'
            WITH testlauf = ''
            AND RETURN.
    My problem is that  when the report is executed the BR_BELNR only delete one document of the all the inputs in the selection criteria from the loop. if I add the statement [ VIA SELECTION-SCREEN] in the SUBMIT if open the multiple selection criteria in the screen I can check that all the documents are set in it from the ABAP code in the loop from it I just need to push F8 to copy them and run the program processing all the documents normally .
    Can some one help me with this? is there a way to execute the transaction BY the SUBMIT with the multiple selection criteria for the Document Number working well?
    Thank for you time and help.

    This is my code:
      TYPES: BEGIN OF T_ZFI013,
              BUKRS     TYPE BUKRS,
              GJAHR     TYPE GJAHR,
              MONAT     TYPE MONAT,
              ANLN1     TYPE ANLN1,
              ANLN2     TYPE ANLN2,
              NUM_DOC     TYPE BELNR_D,
              DATE     TYPE DATUM,
              TIME  TYPE UZEIT,
              USER     TYPE SYUNAME,
             END OF T_ZFI013.
       DATA: I_ZFI013  TYPE STANDARD TABLE OF T_ZFI013,
             WA_ZFI013 TYPE T_ZFI013,
      DATA: br_belnr       TYPE BELNR_D,
            rspar_tab  TYPE TABLE OF rsparams,
            rspar_line LIKE LINE OF rspar_tab,
            range_tab  LIKE RANGE OF br_belnr,
            range_line LIKE LINE OF range_tab."range_tab.
      LOOP AT i_zfi013 INTO wa_zfi013.
        range_line-sign   = 'I'.
        range_line-option = 'EQ'.
        range_line-low    = wa_zfi013-num_doc.
        APPEND range_line TO range_tab.
      ENDLOOP.
      SUBMIT sapf080
        WITH br_bukrs-low = p_bukrs
        WITH br_belnr IN range_tab
        WITH br_gjahr-low = p_an1
        WITH stogrd = '05'
        WITH testlauf = ''.
    This is the RANGE_TAB table before submit:
    1     I     EQ     1001xxxxxx
    2     I     EQ     1002xxxxxx
    3     I     EQ     1003xxxxxx
    4     I     EQ     1004xxxxxx
    5     I     EQ     1005xxxxxx
    6     I     EQ     1006xxxxxx
    7     I     EQ     1007xxxxxx
    8     I     EQ     1008xxxxxx
    I think this wont work for some reason so I will start to do this by a BDC.
    Many thanks for your help.

  • Need to create form on a table with report with a table has NO primary key

    Hi, I tried to created some insert/update/delete form+report in an application, it works fine only if the table has primary key. Does anyone know how to create the same functionality with a table with no primary key? I saw an application is built on older version of htmldb that is using tables with no primary keys at all.
    Here are the specific issues that I am facing:
    - I am building some Form on a table with Report, it requires the table with primary key for form to update. Is there a workaround that I can use tables that has no primary keys at all?
    - Say if primary key is necessary in the previous report+form, but the maximum number of columns that I can use to composed a primary is only 2 for that Form-Report, I cannot find anything handling > 2 primary key. Do you know if there are some ways to composite a primary key from many columns together?
    Your help is really appreciated.
    Thanks,
    Angela

    Sorry to ask response so late. I had no time to get back to that issue before.
    Regarding the triggers, I can make it work for the update, but not the insert.
    Here is my trigger:
    create or replace trigger STATUS_T1
    instead of insert on STATUS
    begin
    insert into STATUS ("LABEL", "AREA", "OWNER", "TEST_NAME", "STATUS", "REMARKS", "BUGS", "DEV_MGR", "TEST_BY_DATE")
    values(:new.LABEL, :new.AREA, :new.OWNER, :new.TEST_NAME, :new.STATUS, :new.REMARKS, :new.BUGS, :new.DEV_MGR, :new.TEST_BY_DATE);
    end;
    by any chance, you can notify what is wrong?
    I already skip the ROWID when inserting to the view STATUS, but I cannot figure out what is wrong when inserting a new record to that view.
    It gave me the following errors:
    ORA-06550: line 1, column 38: PL/SQL: ORA-00904: "ID": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
    Error Unable to process row of table STATUS
    Then, I turned to debug mode, I am thinking that maybe because I use a HIDDEN item to hold the value of ROW_ID as I use the rowid (called ID in the view) to retrieve the record as a column link from previous page. What do you think?
    Thanks again,
    Angela

  • Right way to preserve all parent table entries in a join with many tables!!

    This problem is quite interesting to me. I have asked this question to others but no body is able to provide me with proper answers.
    The problem is: How do I join a huge parent table with many child tables (more than 5 child tables) preserving all of the parent table entries. Lets say there is the parent table parentTable and three child tables childTable1, childTable2, childTable3. In order to get the data after joining these tables the query that I have been using was:
    select parent.field1, parent.field2, parent.field3, child1.field4, child1.field5, child2.field6, child3.field7 from ParentTable parent, childTable1 child1, childTable1 child2, childTable3 child3 where parent.fielda = child1.fieldb and parent.fieldc = child.fieldd and parent.fielde = child.fieldf.
    Although the tables are huge (more than 100,000 entries), this query is very fast, however those parent table entries which do not have child entries are lost. I know that I can left join a parent table with a child table and then with the next child table and then with the next child table and continue. Isn't there a simple solution for this commonly happening problem?
    Please provide suggestions please...

    Hello Lakshmi,
    Although I do not know exactly how to achieve what you want to achieve but I have seen DBAs/ABAPers in my experience can run queries/scripts using the COUNT function to give the actual number of line items per table for all your 100 or odd tables.
    Rgds
    CONMJI

  • Converting a Crystal Report with Many Sub-Reports into CF Report Builder

    I am trying to rewrite a Crystal Reports report which has 11
    subreports in CF Report Builder. In the CR report, each subreport
    has it's own report footer seciton. I have not been able to find
    anything in CF Report Builder that allows me to do the same. Is CF
    Report Builder capable of producing a report with multiple
    subreports?

    Having successfully created a report with 5 or 6 subreports
    (with each sub-report containing a multiple sub-sub reports) I can
    say with confidence, "Yes you can." However the real question you
    should ask is, "
    Should I create a report with multiple sub-reports in CF
    ReportBuilder?" And the answer to that is.... NO, WHAT ARE YOU
    CRAZY!
    If you have something that works in Crystal Reports I would
    suggest you stick with that. Otherwise you're setting yourself up
    for a lot of headaches. Now maybe it was because I started using
    the report builder that came with MX7, but it seems there are still
    quite of few bugs that will leave you shaking your fist at your
    computer. If however you do continue and do the CF Report Builder
    route, be prepared for your application to crash unexpectedly, and
    for many things to not work they way you expect them to. And if you
    ever need help good luck. Take the fact that you had difficulty
    finding good documentation as a sign of how little Adobe supports
    this product.
    CF Report Builder is fine for very simple reports, but don't
    get fancy with it, you'll only regret your decision in the
    end.

  • Create a View with many tables with the Table-Fieldnames

    Hello!
    Question 1)
    Which kind of view is the correct for joining
    many tables together.
    Question 2)
    What is the solution in case of having several tables
    with the same fieldnames by creating a view. How can I choose this fields
    into a view. I cant use the same name twice in section
    (tab strip) ViewFlds.
    Regards
    Ilhan

    Hi Ilhan,
    There is no problem in the view fieldname you can put something like this :
    This is you who choose the view field name so...
    View Fieldname         Table           Field
    VBAK_VBELN           vbak             vbeln
    vbap_vbeln                 vbap             vbeln
    Erwan

  • Submit report with internal table

    Hi Experts !
    I have a requirement where report is showing output in ALV1. Based user action I need to process further in background mode.
    I have developed a report which I am submitting for this background mode.
    I am opening a Job sumbitting created report with return. Job close.
    This created report is in scheduled status in SM37. I have to go there and release it.
    To pass parameters to newly created report I have used WITH field names with developed report name. But I am not getting parameters at new report. Similarly used import/export --- set/get but still not getting parameters at submitted report.
    Is it because it is in background mode? If so how can I achieve this functionality. Can anybody suggest me something ?

    Hi,
    IMPORT and EXPORT from memory doesn't work here.
    Have a look into the SAP documentation:
    When the program is scheduled in the background task, the selections specified by the user or in the additions for filling the selection screen are stored in an internal variant. When the program is executed in the background request, it is processed fully but the selection screen is processed in the background. The system triggers all events, including that for selection screen processing. The variant stored internally is transferred to the selection screen between the INITIALIZATION and AT SELECTION SCREEN OUTPUT events.
    The transfer of the parameters should work, if you don't have any statements that clear those parameters. Maybe parameters with SET/GET parameters also will cause a problem. But it should work with this internal variants. Before you start the jov, please have a look in those generated variants, whether the parameters have the right values.
    Regards,
    Klaus
    Edited by: Klaus Babl on Feb 8, 2011 6:58 AM

  • Reports with many Dynamic Parameter

    Post Author: Lalit
    CA Forum: Data Connectivity and SQL
    Hi
    I created a report with 5 dynamic parameter in CR XI. There are total 6 SQL command . First one is used for the report purpose and rest is for parameter of the report. There SQL commands are not linked to each other. Performnce of the report is very slow. Data is coming fine on the report. The Command one is returning around 50000 records.
    Paramter are used in record selction to further filter the records
    Please help how i can increase the performance .
    Lalit

    Post Author: yangster
    CA Forum: Data Connectivity and SQL
    eeekwhy don't you create 5 business view objects based on each of your dynamic promptsthis way you can share these parameters in other reports instead of having them all imbedded inside a single reportyou should also be able to schedule the list of values too so they will load faster

  • CRVS2010 Beta - Problems with printing Crystal Reports for VS 2010

    Good afternoon,
    We have the following problem, we used the version of Crystal Reports that came integrated with visual studio for several years. But we are migrating to the version of Visual Studio 2010, and we are using the version of Crystal Reports for this same version, running on screen is correct, and run all the reports, but in print there is a failure we could not solve. Our customers use printers dot matrix as the "Epson LX300 +", but when you print the report leaves the impression defective in the previous version of Visual Studio 2005 "The impression is quite clear, we have attempted to overcome this problem with the options of PrintMode with activex and pdf in the CrystalReportViewer, and RenderingDPI option with multiple values. Obviously when using other types of printers such as laser or inkjet printing is perfect, but due to cost our customers use the printers mentioned. The server where the application is Windows server 2008 and client computers are windows xp, windows 7, windows vista. As network hardware and printers are working properly, and from other applications and from the other server with versions of Crystal Reports If anyone knows how to solve this problem I would like to receive support and ideas.
    Thanks
    Subject modified as per the sticky post at the top of this forum; [Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting;
    Edited by: Ludek Uher on Oct 11, 2010 3:42 PM

    I have a question about printing reports. We are using VS2008 and the CR reportviewer with printmode = ActiveX. Many of our users absolutely hate the number of steps they must go through and the time it takes to print a Crystal Report when printmode = PDF. In our environment several times per day, we need to produce hard copies of reports for legal reasons. Making the users first render the report, then had it off to Adobe to print simply takes too much time which is why we are using the ActiveX print control.
    We recently started looking at VS2010 and discovered the issue with the unbundling of Crystal Reports. We have not downloaded CR for VS2010 yet.
    My question is this: for VS2010, what happened to the ActiveX print control? I read somewhere that it was going to become some WPF-type thing but there weren't many details about that. So when a user clicks on the print button in the Crystal Report Viewer intended for VS2010, what can they expect? Can they still print straight to a printer (is there something that gives them this capabitliy like the Active X print control did?), or has that capability been deprecated and they have to go through PDF? Thanks in advance for any information you can give me.

  • CRVS2010 Beta - Report Viewer Errors for Crystal Reports in VS 2010

    I have a project that was written in VS 2008 targeting the 3.5 framework which contains a ton of Crystal Reports.  I recieved my new license for VS 2010 and did the install along with the Crystal Reports for Visual Studio 2010 Beta 2.  I converted my project over successfully.  I am able to open up the reports on their own.  When I try to save them they want to be converted to the new format.  This also works fine.  My problem is the Crystal Reports Viewer.  I am not able to add any reports to the viewer without receiving error messages.  I have tried using the 10.5 and the latest version of the viewer, but receive errors everytime that I try to add a report to it.  I always recevie the following error:
    "Error invoking 'Choose a Crystal Report...'. Details: Invalid Report Source"
    I have also tried just creating a brand new report from the Crystal Report Viewer Tasks window.  When I do that I get this error:
    "Unable to find the report in the manifest resources. Please buld the project, and try again."  "Error invoking 'Create a New Crystal Report...'. Details: Unable to find the report in the mnifest resources. Please build the project, and try again."
    I have tried changed the framework target to 4.0, but this has not helped.  I have tried using the 14.0 versions of the references and the 10.5 versions.  I have searched all over the internet for a resolution, but can't seem to find one.  Any help would be greatly appreciated.

    I am having the same problem. You say make sure all of my assemblies are version 14. Three questions:
    1. Now that I have removed all of the old Crystal assemblies from my project, what are the assemblies that I need to add back?
    2. My VS 2010 "add references" popup shows me many crystal assembles (Crystal XI is also installed) which ones to I need to install now?
    3. If I don't know what they are, or where to find them, how do I determine their version?
    You solution reminds me of the old saying "If I had ham, I could make ham and eggs. If I had eggs!"
    More information please,
    J Rich
    Edited by: JosephRich on Nov 6, 2010 5:36 PM
    Edited by: JosephRich on Nov 6, 2010 5:39 PM

  • How to generate a customized report with a table

    I have a table with two columns: month, count. The values are like the following:
    Jan-2007 50
    Feb-2007 46
    Mar-2007 55
    Apr-2007 76
    Jan-2009 67
    Feb-2009 86
    Mar-2009 55
    I want to generate a report like this:
    Month 2007 2008 2009
    January 50 76 67
    Febuary 46 45 86
    How to do that?
    Thanks.
    Jen

    Jen,
    This is the best way I could come up with. It is a little clunky but it gets the job done. Basically it buckets each group by month and then unions each month together. I used the column names and formats you specified so you should only have to change the table name.
    EDIT
    You may want to do a nvl on each decode that way the sums will work correctly for nulls. Also, you could generate this sql statement procedurally and save yourself some maintenance time. This was just to show you how it could be approached.
    SELECT 'January' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE substr(month,1,3) = 'JAN'
      GROUP BY 'January'
    UNION ALL
    SELECT 'February' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE UPPER(substr(month,1,3)) = 'FEB'
      GROUP BY 'February'
    UNION ALL
    SELECT 'March' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE substr(month,1,3) = 'MAR'
      GROUP BY 'March'
    UNION ALL
    SELECT 'April' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE UPPER(substr(month,1,3)) = 'APR'
      GROUP BY 'April'
    UNION ALL
    SELECT 'May' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE substr(month,1,3) = 'MAY'
      GROUP BY 'May'
    UNION ALL
    SELECT 'June' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE UPPER(substr(month,1,3)) = 'JUN'
      GROUP BY 'June'
    UNION ALL
    SELECT 'July' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE substr(month,1,3) = 'JUL'
      GROUP BY 'July'
    UNION ALL
    SELECT 'August' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE UPPER(substr(month,1,3)) = 'AUG'
      GROUP BY 'August'
    UNION ALL
    SELECT 'September' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE substr(month,1,3) = 'SEP'
      GROUP BY 'September'
    UNION ALL
    SELECT 'October' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE UPPER(substr(month,1,3)) = 'OCT'
      GROUP BY 'October'
    UNION ALL
    SELECT 'November' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE substr(month,1,3) = 'NOV'
      GROUP BY 'November'
    UNION ALL
    SELECT 'December' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE UPPER(substr(month,1,3)) = 'DEC'
      GROUP BY 'December'Edited by: Tyson Jouglet on Mar 17, 2009 9:27 AM

  • Generate a report with three table

    hi Friends,
    i have three table
    1-
    CREATE TABLE "TRANSACTION_DETAILS"
    (     "S_NO" NUMBER,
         "BILL_NO" NUMBER,
         "BILL_DATE" DATE,
         "PARTY_NAME" VARCHAR2(1000),
         "VEHICLE_NO" VARCHAR2(20),
         "ITEM_NAME" VARCHAR2(500),
         "DESCRIPTION" VARCHAR2(4000),
         "QTY" NUMBER,
         "RATE" NUMBER,
         "AMOUNT" NUMBER,
         CONSTRAINT "TRANSACTION_DETAILS_CON" PRIMARY KEY ("S_NO") ENABLE
    2-
    CREATE TABLE "LAB_WORK_DTL"
    (     "ID" NUMBER,
         "BILL_NO" NUMBER,
         "BILL_DATE" DATE,
         "PARTY_NAME" VARCHAR2(1000),
    "VEHICLE_NO" VARCHAR2(20),
         "WORK_DETAIL" VARCHAR2(4000),
         "LABOUR_AMT" NUMBER,      
         CONSTRAINT "LAB_WORK_DTL_PK" PRIMARY KEY ("ID") ENABLE
    3-
    CREATE TABLE "JOB_CARD_DETAILS"
    (     "ID2" NUMBER,
         "BILL_NO" NUMBER,
         "BILL_DATE" DATE,
         "PARTY_NAME" VARCHAR2(1000),
         "VEHICLE_NO" VARCHAR2(20),
         "AMOUNT" NUMBER,
         CONSTRAINT "JOB_CARD_DETAILS_CON" PRIMARY KEY ("ID2") ENABLE
    i want to generate a Report of total amout of bill No Like
    BILL_NO,BILL_DATE,VEHICLE_NO,SUM(AMOUNT) ,SUM(LABOUR_AMT),SUM(AMOUNT)
    I AM USING
    select a.BILL_NO,a.BILL_DATE,a.PARTY_NAME,a.VEHICLE_NO,SUM(a.AMOUNT),SUM(b.LABOUR_AMT),SUM(c.AMOUNT) from TRANSACTION_DETAILS a,LAB_WORK_DTL b,JOB_CARD_DETAILS c where a.PARTY_NAME =b.PARTY_NAME and a.PARTY_NAME=c.PARTY_NAME and a.PARTY_NAME =:P38_PARTY_NAME group by a.bill_no,a.BILL_DATE,a.PARTY_NAME,a.VEHICLE_NO,b.bill_no,b.BILL_DATE,b.PARTY_NAME,b.VEHICLE_NO,c.bill_no,c.BILL_DATE,c.PARTY_NAME,c.VEHICLE_NO
    ACCORDING TO THIS CODE sum of these column SUM(a.AMOUNT),SUM(b.LABOUR_AMT),SUM(c.AMOUNT) are not correct and there are one more problem if BILL_NO is not in LAB_WORK_DTL JOB_CARD_DETAILS these table then result shows NO DATA FOUND but BILL_NO is avalable in
    TRANSACTION_DETAILS this table.
    How can i generate this report .
    Thanks
    Manoj Kaushik

    1-
    CREATE TABLE  "TRANSACTION_DETAILS"
    (     "S_NO" NUMBER,
         "BILL_NO" NUMBER,
         "BILL_DATE" DATE,
         "PARTY_NAME" VARCHAR2(1000),
         "VEHICLE_NO" VARCHAR2(20),
         "ITEM_NAME" VARCHAR2(500),
         "DESCRIPTION" VARCHAR2(4000),
         "QTY" NUMBER,
         "RATE" NUMBER,
         "AMOUNT" NUMBER,
          CONSTRAINT "TRANSACTION_DETAILS_CON" PRIMARY KEY ("S_NO") ENABLE
    2-
    CREATE TABLE  "LAB_WORK_DTL"
    (     "ID" NUMBER,
         "BILL_NO" NUMBER,
         "BILL_DATE" DATE,
         "PARTY_NAME" VARCHAR2(1000),
    "VEHICLE_NO" VARCHAR2(20),
         "WORK_DETAIL" VARCHAR2(4000),
         "LABOUR_AMT" NUMBER,      
          CONSTRAINT "LAB_WORK_DTL_PK" PRIMARY KEY ("ID") ENABLE
    3-
    CREATE TABLE  "JOB_CARD_DETAILS"
    (     "ID2" NUMBER,
         "BILL_NO" NUMBER,
         "BILL_DATE" DATE,
         "PARTY_NAME" VARCHAR2(1000),
         "VEHICLE_NO" VARCHAR2(20),
         "AMOUNT" NUMBER,
          CONSTRAINT "JOB_CARD_DETAILS_CON" PRIMARY KEY ("ID2") ENABLE
    /Can you define the relation between these three tables. I see in your sql you are joining the three table with the column PARTY_NAME. Is that the proper joining condition? Can you explain that.
    And also when you say this
    ACCORDING TO THIS CODE sum of these column SUM(a.AMOUNT),SUM(b.LABOUR_AMT),SUM(c.AMOUNT) are not correct What exactly do you mean. What is not correct? Can you show some sample data.
    And also it would be of great help to all the people here if you format your SQL and use {noformat}{noformat} tag to preserve the format of your code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Interactive Report with many columns scroll possibility?

    Hello,
    i have an interactive report that has many columns. As so they cannot fit into a page and a scroll bar is used in the bottom of screen, which is not a desired effect.
    What i would like to do (if it's possible) is to have a scroll bar before the pager. Up to now i have found a "fix" for this problem but after the pager and it does scroll the rendering of the report but the pagers' also. My solution is to put the following code in the Region Definition, in Header and Footer group, in Header:
    <style type="text/css">
    #apexir_DATA_PANEL {
    clear:both;
    width:1220px;
    height:650px;
    overflow:auto;
    </style>
    That was in 3.2. Is there any other option/possibility or idea now with 4.0 ?
    TIA

    Hi TIA,
    I hope that following link will help you in regards to your query:
    Jon Fortney implemented and blogged on it: http://jfortney.blogspot.com/
    Alternatively, you can use ExtJS Grid or jQGrid functionality.
    This might help, Horizontal Scrollbar required in  Interactive Report
    Regards,
    Bhavin
    Edited by: Bhavin on Nov 16, 2010 4:32 AM

  • Interactive Report with 2 tables

    I want to create an Interactive Report (and Form) based on 2 tables which are joined together with FK_MODULE from FORM table 2 PK_ID from MODULE table.
    Do I just edit the SQL that got created from the wizard (which only asked for 1 table) to display the appropriate description (instead of primary key) or is there another way to creat a list of values like in a form?
    FORM
    PK_ID
    FORM_CODE
    FK_MODULE
    MODULE
    PK_ID
    MODULE
    DESCRIPTION

    Hi Bob,
    Interactive Report is not so much different than how you would do it in a normal report.
    You can change the sql, if you don't know how to do a join in sql, use the Query Builder.
    You can also create a view first and base the Interactive report on that.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

Maybe you are looking for