Using Queries in Crystal Reports

Hi all,
I know that creating a report in Crystal Reports is essentially creating a query, but I wanted to know if anyone knew of any ways to develop queries using the Query Generator in B1 and then use that query for a report in Crystal, possibly referencing or copying it?
Also, if anyone is familiar with union queries or sub queries, could you explain their more common uses?
Thanks for the help,
Todd

Hi Todd Linscott,
We have using this type of query in SAP in Query Generator
SELECT  T0.[DocNum] as 'Invoice No.', T0.[DOCDATE] as 'Invoice Date', T0.[CardName] as 'Customer Name' ,
FROM OINV WHERE  T0.[DOCDATE] >=[%0] AND T0.[DOCDATE]<=[%1]
For Crystal Report
SELECT  T0.[DocNum] as 'Invoice No.', T0.[DOCDATE] as 'Invoice Date', T0.[CardName] as 'Customer Name' ,
FROM OINV WHERE  T0.[DOCDATE >= {?FromDate}  AND T0.[DOCDATE ]< = {?ToDate}
Pass Parameter in Crystal Report in thats type of syntax
When you have to add command Right side Parameter button will appear
For Layout pass
{?@Dockey}
This is must.
Thanks,
Srujal Patel

Similar Messages

  • How to convert Crystal 8.5 Reports that use queries to Crystal XI reports

    We were using the following:
    Crystal Reports version 8.5
    Crystal SQL Designer 8.0.0.0
    CRW32 8.0.0.8
    We have now migrated to Crystal XI.
    Most of our reports use queries created in the Crystal SQL Designer. 
    This is the message we receive when I open a report in Crystal XI that uses a query:
    Reports based on Crystal Dictionary or Crystal Query are no longer supported.  Please change these reports to use Business Views.
    How do I convert a Crystal report that uses a query to use a Business View?
    Thanks,
    Mac Bradley

    Hi Mac,
    There is a Database Migration Wizard that was available but the link is broken now. I'm tracking down where we can get it from. Check your CD, it may be on the disk.
    Currently it's only shipped with our Enterprise Product because it converts Queries to Business Views and Views to Command Objects.
    If you have Enterprise Available you should have a link off the Start Menu.
    Back up your reports first....
    Thank you
    Don

  • Extracting SQL Queries from Crystal Reports

    I am trying to find a way or a utility to be able extract SQL queries from Crystal reports into a text file for documentation purposes.  These queries are not in the repository, they were entered into each of the reports when the reports were being built and I can't find a way to extract them.  Any ideas/suggestions?

    Hello,
    CR doesn't have the ability, and I don't recall if this has ever been asked previously. Great suggestion for the Idea Place tab in the up right corner of this page.
    If you find a developer it's quite simple to get:
                // log onto the server and then get the SQL.
                rptClientDoc.DatabaseController.LogonEx("van-w-13-dwilli", "xtreme", "sa", "pw");
                GroupPath gp = new GroupPath();
                string tmp = String.Empty;
                rptClientDoc.RowsetController.GetSQLStatement(gp, out tmp);
                // show the SQL but easy enough to save the SQL text to a file.
                MessageBox.Show(tmp, "Data Source Set and SQL Statement", MessageBoxButtons.OK, MessageBoxIcon.Information);
    Of course you need to open the report first, lots of samples on how to...
    Thank you
    Don

  • Using 2 Universe Queries in Crystal Reports

    Hi,
    I am trying to use Universe queries in a Crystal report.
    I want to use 2 Universe queries and then link the common dimensions between them using the Database Expert,   is these similar to merge dimensions in Web Intelligence?. Is it possible? Or how can I do to merge objects that came from 2 Universe queries?
    My problem is when I tried to execute the report, Crystal Reports get stuck.
    Any ideas would be helpful.
    Thanks in advance,
    Diana

    Moved to Universe Design forum

  • Chart from data with two bex queries in crystal reports 4.0 for enterprise

    Hi,
    I'm fairly new to crystal reports and I have a requirement to show the data from 2 bex queries in one single cross table. is it possible ?
    after getting it i should be able to create chart with that data
    Eg: my table would be something like below :
                   calendar day
    Input     : 12      34     50     60
    Output  :  09     23     19     57
    Input Data will be coming from one bex query
    Out put data comes from another bex query
    is it possible to merge the dimensions and then work on ????         
    any help is much appreciated

    Hi Tanveer,
    The only way you can add two BEx queries in a report is using a Subreport. The First BEx query goes in the Main Report and the second one goes in the Subreport.
    You'll not be able to add the dimensions and measures from these two BEx queries in a Crosstab anyway. Perhaps, you could create a mock crosstab and send values (all rows) from the Main Report to the Subreport as a string however, I can see that it's going to get complex.
    -Abhilash

  • To read all the database fields used in a Crystal report 10 file using Vb 6 Code

    Hi
    Iam in development of an Application in Visual basic which lists all the
    database fields used in a particular report (crystal 10)
    In simple i need to show all the checked fields in the database fields section in field explorer section of the crystal report file.
    regards
    venkateshG

    Please re-post if this is still an issue to the Legacy Application Development SDKs Forum or purchase a case and have a dedicated support engineer work with you directly

  • How to create a stored procedure and use it in Crystal reports

    Hi All,
    Can anyone explain me how to create a stored procedure and use that stored procedure in Crystal reports. As I have few doubts in this process, It would be great if you can explain me with a small stored proc example.
    Thanks in advance.

    If you are using MSSQL SERVER then try creating a stored procedure like this
    create proc Name
    select * from Table
    by executing this in sql query analyzer will create a stored procedure that returns all the data from Table
    here is the syntax to create SP
    Syntax
    CREATE PROC [ EDURE ] procedure_name [ ; number ]
        [ { @parameter data_type }
            [ VARYING ] [ = default ] [ OUTPUT ]
        ] [ ,...n ]
    [ WITH
        { RECOMPILE | ENCRYPTION | RECOMPILE , ENCRYPTION } ]
    [ FOR REPLICATION ]
    AS sql_statement [ ...n ]
    Now Create new report and create new connection to your database and select stored procedure and add it to the report that shows all the columns and you can place the required fields in the report and refresh the report.
    Regards,
    Raghavendra
    Edited by: Raghavendra Gadhamsetty on Jun 11, 2009 1:45 AM

  • How to create stored procedures and use those in Crystal reports

    Hi All,
    Can anyone explain me how to create a stored procedure and use that stored procedure in Crystal reports. As I have few doubts in this process, It would be great if you can explain me with a small stored proc example.
    Thanks in advance.

    Hello,
    There is a document explainining how to use Oracle stored proc with Crystal reports.
    Check at:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1084c536-711e-2b10-e48a-924a60745253
    It is for older version but it should work and you can refer to it to get general idea how to start with it. It has a sample oracle stored proc and how to connect it from Crystal Reports.

  • Using CSS in crystal reports

    Hi All,
    We have used external CSS files to apply styles to the report content. But after the CSS implementation we have come across issues with Zoom and export.Following are the issues for which we need a solution.
    1. When the content is zoomed in /out, the size of the text does not change along with the lines and borders and hence the data is seen to be overlapping (incase the zoom is 25% )
    2. The alignment given through the CSS files do not reflect after exporting the content to pdf/excel etc. (eg: The decimal fields and given alignment as "right" but in the exported documents it appears as "left")
    Is this a known behavior in Crystal report or are we missing something?
    Thanks in advance..
    Thara

    Hi Todd Linscott,
    We have using this type of query in SAP in Query Generator
    SELECT  T0.[DocNum] as 'Invoice No.', T0.[DOCDATE] as 'Invoice Date', T0.[CardName] as 'Customer Name' ,
    FROM OINV WHERE  T0.[DOCDATE] >=[%0] AND T0.[DOCDATE]<=[%1]
    For Crystal Report
    SELECT  T0.[DocNum] as 'Invoice No.', T0.[DOCDATE] as 'Invoice Date', T0.[CardName] as 'Customer Name' ,
    FROM OINV WHERE  T0.[DOCDATE >= {?FromDate}  AND T0.[DOCDATE ]< = {?ToDate}
    Pass Parameter in Crystal Report in thats type of syntax
    When you have to add command Right side Parameter button will appear
    For Layout pass
    {?@Dockey}
    This is must.
    Thanks,
    Srujal Patel

  • Using CSS in Crystal Report

    Hi,
    I wanted to know if and how do we use CSS for formating the fields in Crystal Report. I did see a "CCS" class name option in the "Format Filed" selection, not sure how it works.
    Also, wanted to know how do we UPLOAD the CSS to the CMC.
    Thank you.
    KS.

    Hi Chito,
    You cannot load multiple images dynamically. Using the 'graphic location' formula for the OLE Object, you can only point to a location that can load one image.
    For the second image, you'll need to manually insert another OLE Object and point the formula to the next image's location.
    You can try posting to the SAP Crystal Reports, version for Visual Studio space to find out whether this can be done using CR SDK.
    -Abhilash

  • Use another edition Crystal Report for VS2008

    I only use Crystal Report in VS2008 before.
    Our company has CR 11 enterprise edition.
    What benefit can get if I use CR 11?
    Do I need to install something in order to use CR 11 in VS2008?

    CR11 is not supported or tested with VS 2008.
    If you want to use VS 2008 you will need to use Crystal Reports 2008.

  • Load Multiple Images using link in Crystal Report

    Hi Guys,
    I am currently in need of developing a new requirement for our company's client. We have to load multiple images using just link in Crystal Report. Let's say that the images are stored in a folder (e.g., C:\Datafolder\Images\) and i have to fetch two images to show in crystal report (say, C:\Datafolder\Images\imageval1 and C:\Datafolder\Images\imageval2). These are actually dynamically created and therefore the number of images are not known and so i have to iterate through the list of image links.
    Is it possible using merely crystal report and how?. Please take note that we're also using C# in developing our software applications.
    Thanks and best regards.
    ---CHITO--

    Hi Chito,
    You cannot load multiple images dynamically. Using the 'graphic location' formula for the OLE Object, you can only point to a location that can load one image.
    For the second image, you'll need to manually insert another OLE Object and point the formula to the next image's location.
    You can try posting to the SAP Crystal Reports, version for Visual Studio space to find out whether this can be done using CR SDK.
    -Abhilash

  • Get Error on using Stored Procedure to use it in Crystal Reports XI

    Post Author: Krüger
    CA Forum: Integrated Solutions
    Hello, I need your help please. I use Oracle 10 and now write a correct compiled stored procedure: this procedure is really simple how you can see:set pagesize 50000set linesize 1000set wrap offset head offset feedback offset trimspool onset serveroutput onset verify offcreate or replace procedure GetFirmenNachMontag is  lutype varchar2(10);BEGINDECLAREbegin lutype:='Test';  dbms_output.put_line(lutype);END;END; In using in sql directly it is really all fine. But when I want to integrat it in a simple report in Crystal I get the error unknow databank connector error. I hope that somebody can help me please. With best regardsM.Krüger 

    If you are using MSSQL SERVER then try creating a stored procedure like this
    create proc Name
    select * from Table
    by executing this in sql query analyzer will create a stored procedure that returns all the data from Table
    here is the syntax to create SP
    Syntax
    CREATE PROC [ EDURE ] procedure_name [ ; number ]
        [ { @parameter data_type }
            [ VARYING ] [ = default ] [ OUTPUT ]
        ] [ ,...n ]
    [ WITH
        { RECOMPILE | ENCRYPTION | RECOMPILE , ENCRYPTION } ]
    [ FOR REPLICATION ]
    AS sql_statement [ ...n ]
    Now Create new report and create new connection to your database and select stored procedure and add it to the report that shows all the columns and you can place the required fields in the report and refresh the report.
    Regards,
    Raghavendra
    Edited by: Raghavendra Gadhamsetty on Jun 11, 2009 1:45 AM

  • Set document name when use PrintToPrinter with Crystal Reports 2008

    Hy,
    from my application, in .net environment,  I print report on printer at runtime with PrintToPrinter command,
    but all documents that I print have the same spool name: "document".
    Is there a possibility to set this name ?
    Thanks
    Filippo

    solution below:
    How to set  the CR print job name that displayed in Printer job queue?

  • Hyperlink using formula in Crystal Reports 8.5

    Is there a way to create hyperlink formula to link to nth page in the report (in the exported pdf file)
    for example:
    i want to created a link to a text and when clicked on the link it should take me to page 8 in the same report.
    Thanks
    -Vivek

    Hi Navin
    Thank you so much for your response.
    Is it particular to any one single report or all the reports which contain hyperlink.
    basically it's just one report that should have filer names and pages numbers in the first page followed by the detailed report of all filers
    Also let us know to what type you are linking to, Is it any email address else a website or a file type.
    The table of contents is loaded from a sub report which is connected to a temporarty table with filer names and page numbers.
    it's a database field
    -Vivek

Maybe you are looking for

  • Question about multiple devices on the same Apple ID

    I am currently an iPhone 4S user and have one Apple ID. I intend to buy the new iPad soon and share the same Apple ID so that I do not need to keep switching accounts. However I have a question. If I use both devices for iMessage, and if a friend of

  • Combine Down Payment Request and Payment of Open Item

    I am paying $ 1000 to a vendor to cover $ 300 down payment request and $ 700 for an open invoice. Is it possible to make one payment transaction to cover "down payment request" and "payment of open item"? I want only one amount to appear in the bank

  • Widgets in WEB GUI

    Hi, How to embed widgets in WEB GUI home page in 5.2 or 2007? I was trying with Logical links,workcenters etc, but they only allow me to display a link in work area/navigation bar. For example I want to have google weather widget in my WEB GUI home!

  • How to implement in chemical plant

    Hi SCN Gurus, currently i have one scenario for implementation in a chemical factory. Below are the details. Finished product- Sodium Tungstate(ST) Raw Materials- Tungsten Ore Concentrate (TOC), caustic soda(NaOH) Auxiliary Raw Materials-        a.  

  • ESS implementation on MySAP ERP 2004

    hi we have ERP 2004 ECC 5.0 IDES version the online version of ESS is working fine, now we want to use ESS on portal. now my queries are what is the prerequisities for ESS on portal ? is the java components for ESS are to be deployed on Portal Server