Query in Crystal Disegn

Can we to appropriated a query to the field in CrDisegn?
I would like to see in report(Printed form):
in the field load up with data by condition ... if field = '1' then 1 else if field=' ' ..

Hi again,
I believe what you want to do is use the Record Selection formula. CR 8 is so old now I don't have it installed to test but you should be able to add filtering to the record selection formula.
I'll move this question to the Report Design forum as it more related to designing the reprot than connecting to your database.
Thank you
Don

Similar Messages

  • Performance Issue Executing a BEx Query in Crystal Report E 4.0

    Dear Forum
    I'm working for a customer with big performance issue Executing a BEx Query in Crystal via transient universe.
    When query is executed directly against BW via RSRT query returns results in under 2 seconds.
    When executed in crystal, without the use of subreports multiple executions (calls to BICS_GET_RESULTS) are seen. Runtimes are as long as 60 seconds.
    The Bex query is based on a multiprovider without ODS.
    The RFC trace shows BICS connection problems, CS as BICS_PROV_GET_INITIAL_STATE takes a lot of time.
    I checked the note 1399816 - Task name - prefix - RSDRP_EXECUTE_AT_QUERY_DISP, and itu2019s not applicable because the customer has the BI 7.01 SP 8 and it has already
                domain RSDR0_TASKNAME_LONG in package RSDRC with the
                description: 'BW Data Manager: Task name - 32 characters', data
                type: CHAR; No. Characters: 32, decimal digits: 0
                data element RSDR0_TASKNAME_LONG in package RSDRC with the
                description 'BW Data Manager: Task name - 32 characters' and the
                previously created domain.
    as described on the message
    Could you suggest me something to check, please?
    Thanks en advance
    Regards
    Rosa

    Hi,
    It would be great if you would quote the ADAPT and tell the audience when it is targetted for a fix.
    Generally speaking, CR for Enteprise  isn't as performant as WebI,  because uptake was rather slow .. so i'm of the opinion that there is improvements to be gained.   So please work with Support via OSS.
    My onlt recommendations can be :
    - Patch up to P2.12 in bi 4.0
    -  Define more default values on the Bex query variables.
    - Implement this note in the BW 1593802    Performance optimization when loading query views 
    Regards,
    H

  • See sql query from crystal report without crystal report

    see sql query from crystal report without crystal report 

    Hi,
    Depends on datasource type but you could have a look at ODBC trace or if you have access to the SQL Server you could use profiler to monitor the session.
    Regards,
    Craig
    And this will only be of use if you know which Server/Insstance/Database the Report is connecting to...
    Please click "Mark As Answer" if my post helped. Tony C.

  • Error when opening a BW query with Crystal Reports

    Hi all,
    I am having problems when opening a BW query with Crystal Reports, the strange thing is that it only happens with
    the bo user I have created. If I use a user that already exists and that has SAP_ALL authorization it works.
    I don't know if this could be an authorizations issue, but I have created a role with all the authorizations stated in the manual.
    The error I am getting is the following:
    "An error occurred while generating a new report template. Error in UNKNOWN.RPT file"
    Does anyone know what this could be?
    Thanks

    Well,
    I cannot access the system now. But I think it is not an issue of authorization, because I assigned all the good user's role to the bo user,
    and even with that, it still don't work.
    Thanks

  • Select Query in Crystal Report

    Dear all,
    I have a report to be developed in which i have to fire more than 2 select quires. I am adding this quires in "Add Command" window, it doesn't give any error but gives output of first query only.
    I have tried to use multiple commands in report but the query fields are not having any common field in it so i am not able to link it.
    Is there any other way to use more than one query in crystal report?
    Thanks in advance.
    Ashish Tambe

    Dear Charles,
    I am willing to develop a report in which i need to select diff data from diff table such as OOPR,ORDR,OINV and many more.based on diff conditions and it may happen that a query can give more than 2-3 records then i need to make summation for that. On the basis of this summation and some more formulas in CR i need to make some conclusions.
    This cannot be done in single query. so i need to fire more than one select query.
    Regards,
    Ashish Tambe

  • How to enable show SQL Query in Crystal report tool

    Hi,
    How can we enable the show SQL Query under Database tab in crystal report...
    We have a requirement to modify the SQL query in Crystal reports.
    Thanks,
    Gana

    Gana,
    CR has an "Add Command" feature that will allow you to use hand-coded SQL as your data source.
    Look at Defining an SQL Command in CR's online help (F1).
    If a command was used in the original report creation, it's a simple matter to go in and edit that SQL.
    If the report was not originally built w/ a Command you may find it difficult to switch over. In most cases it easier to start over from scratch, creating a new, blank report, that uses the command.
    Jason

  • Query getting  /crystal/ Program SYNTAX ERROR.

    Hi All,
    I connected to SAP BEX Query using MDX driver. when i execute query getting  /crystal/ Program SYNTAX ERROR.
    I imported these  crystal transports R21900741,786,695,754,780 .
    but got error for R71K900087 .
    MY SAP BW system version is SAP BW701 SP10 , Please suggest.
    Thanks,
    Joseph

    Thanks Mohammed. But our application is trying to pass a parameter which contains user data like section numbers....
    So when we pass the value 123.1(a) , here what is happening behind the scene of CR viewer
    webSource0.AddParameter "promptex-NAMEOFPARAMETER", "123.1%28a%29"
    and it throws up the error
    "The syntax of the value for prompt 'NAMEOFPARAMETER' is incorrect. Please correct the syntax and try again"
    I have no idea why it is throwing up this errror....

  • Help with SQL query into Crystal

    Afternoon all,
    I am trying to convert the following SQL query into Crystal by using the tables given in the query however the relationship given in the query is bit awkward, in a sense that I cannot create a relationship under Crystal desgin.
    Here is the query
    select count(order_progressed.order_no),reason_code
    from order_progressed,lab_reasons, rework_groups
    where
    order_progressed.date_created=Today
    and (order_progressed.order_status=from_gate
    and lab_reasons.reason_code between from_reason and to_reason)
    group by lab_reasons.reason_code
    order by 2
    We have three tables
    1: Order_Progressed
    2: Lab Reasons
    3: Rework_Groups
    Order_progressed can be linked with rework_group by Status (if you see the line order_progressed.order_status=from_gate)
    However how to link the following line?
    lab_reasons.reason_code between from_reason and to_reason
    I mean when I try to link it by Lab Reasons.Reason Code to From_reason, to reason, it doesn't seem to work.
    The report is grouped by Lab Reasons. Reason Code, so I really have to some how create a relationship between Lab Reasons table and Rework_Group table.
    This is what I get when I run the same query into Crystal using the relationship
    SELECT lab_reasons.reason_code, order_progressed.date_created, order_progressed.order_no
    FROM   maxmast.lab_reasons lab_reasons, kevin.order_progressed order_progressed,
    roger.rework_groups rework_groups
    WHERE  (order_progressed.order_status=rework_groups.from_gate) AND
    ((lab_reasons.reason_code=rework_groups.from_reason) AND
    (lab_reasons.reason_code=rework_groups.to_reason)) AND (order_progressed.date_created>={ts
    '2008-01-01 00:00:00'} AND order_progressed.date_created<={ts '2008-12-17 00:00:00'})
    Any ideas?
    Many thanks
    Kind Regards
    Jehanzeb

    Sastry I didn't understand why did you use Lab_reasons.reason_code twice in your SQL.
    What I have done since I posted this thread,
    I created a command like this
    Select *
    from rework_groups,lab_reasons
    where
    lab_reasons.reason_code between from_reason and to_reason
    Then I took out the lab_reasons table and rework_groups table, then I linked the order_status from Order_progressed table to From_gate of the newly created table (I called it Reason_Code).
    This made the report running but it is crunching quite allot of numbers. I wonder if I made a mistake somewhere?
    Oh and please note, I'd like to create an SQL (if need be) without the date entry which was done in the original SQL because I'd like to setup my own date range within Crystal Reports instead of getting passed by SQL itself.
    This is how it looks like in Crystal now.
    sae1_live
    SELECT order_progressed.date_created, order_progressed.order_no, order_progressed.order_status
    FROM   kevin.order_progressed order_progressed
    WHERE  (order_progressed.date_created>={ts '2008-01-01 00:00:00'} AND
    order_progressed.date_created<={ts '2008-12-17 00:00:00'})
    EXTERNAL JOIN order_progressed.order_status={?sae1_live: Reason_Code.from_gate}
    sae1_live
    Select *
    from rework_groups, lab_reasons
    where lab_reasons.reason_code between from_reason and to_reason
    EXTERNAL JOIN Reason_Code.from_gate={?sae1_live: order_progressed.order_status}
    Regards
    Jehanzeb

  • Modify SQL query in Crystal Reports 2013

    Bonjour,
    Je voulais savoir s'il était possible de modifier la requête SQL dans Crystal Reports 2013, car les bases de données de notre application pour bibliothèque utilise un format de date particulier qu'il nous faut corriger directement dans la requête SQL.
    Merci pour vos informations.
    Cordialement
    Claude Marcilly
    Cannes - France
    Hello,
    I wanted to know if it was possible to modify the SQL query in Crystal Reports 2013. Databases of our application library indeed use a particular date format that we need to fix directly into the SQL query.
    Thank you for your information.
    Best regards
    Claude Marcilly
    Cannes - France

    Hi Claude,
    If you are creating reports using tables then go in Database menu and click on show SQL query, this will show the SQL generated by crystal reports.  Now go in database expert and expend your connection and double click on Add Command and past the query which was generated by Crystal and try to modify the date format and click OK.
    Now you need to redesign your reports based on Add command.
    or
    If your reports datasource is Add command you can directly go in add command and change it.
    -Sastry

  • How to use Query in Crystal??

    Dear all, This must be the simplest question around however, I cannot understand how to use SQL queries under Crystal.
    I read the help file and it says you need to use universe to create queries.
    I don't have a universe in my report nor it is coming from Universe. I am using direct ODBC connection link to database and then using formulas to put the information into the report.
    Can someone please guide me to the Help articles or forum link where Query in Crystal is explained?
    many thanks
    Regards
    Jehanzeb

    Hello,
    I have done all that however, now my reports are taking way too much time to load. I mean nearly 5mins before it loads the report.
    I used the SQL command as
    Select order_no
    From Order_header, Order_progress
    Where Order_progress=77
    Using this, even the fastest report takes forever to load.
    Is it because it is checking every records against the tables and then loading the report.
    Can we make it faster?
    Regards
    Jehanzeb

  • Query regarding Crystal Reports Server

    Hi,
    I am new to Crystal Reports.
    I have created a couple of .rpt files using CR2008 and I am loading these report files in my aspx pages using CrystalReportViewer control.
    I am planning to host my webApp on IIS in production environment. Maximum simultaneous/concurrent connections to my reports would be 1 or 2.
    My question is:
    1. Do I need Crystal Reports Server in this scenario?
    2. In future if the number of concurrent users to report increases then do I need to go for Crystal Reports Server? Will just buying and installing the Crystal reports server on production server work? or will I have to do some configuration or some other changes in the existing deployed reports? OR Will I have to deploy my existing reports on Crystal Report Server again?
    Any help will be highly appreciated.
    Thanks in advance,
    Manish

    Manish, please do not cross post:
    Query regarding Crystal Reports Server
    See the [Rules of Engagement|http://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] for more details.
    Marking this thread as answered and locking...
    - Ludek

  • Mapping relation from sap bw query to crystal report

    Hello Gurus,
            will you please describe mapping relation for following items from sap bw query to crystal report? it is better to provide a instance for each one.
               (1) character   (2) key figure  (3) navigation attribute  (4) display attribute (5) charater with hiararchy
    Many thanks

    This blog may be helpful:
    /people/ingo.hilgefort/blog/2008/10/03/businessobjects-and-sap-part-1-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi

  • Convert BI query into Crystal Report

    Dear Sir,
    I have drawn a structure in BI query onto Crystal Report,
    my question is that, can I delete one single field from this structure on Crystal Report ?
    'cause when I tried to delete one single field, the whole structure is deleted.
    In addition, can I change the field name(text/description) on Crystal Report ?
    Thank you very much for your help.
    Best Regards,
    Girai

    Hi,
    in Crystal Reports you can still decide which parts of the underlying query you would like to use in the report.
    in case you mean a actual structure in the BW query and having 2 structures overall, one of the structures becomes rows of data in your report and you could if required filter it out.
    In terms of texts - you can for sure create your own headings.
    ingo

  • Cannot Edit Universe Query in Crystal Reports.

    Hi,
    We have Crystal Reports 2008 SP5 installed on a Terminal Server where our report developers can go to develop reports. We have a 4 node BOXI R2 SP4 cluster on the opposite side of a firewall, and have opened the firewall ports so that Crystal Reports can connect to this BOXI cluster and a universe on that cluster, and the developers can publish their reports.
    For some developers, and the issue is intermittent for them, if they open one of those Crystal Reports to edit the universe query, they go into Database Expert and right click and choose Edit query, nothing happens. The Query Editor window does not open. They don't get any errors, other than the Universe Query editor window refuses to open. No errors on the BOXI server side either.
    They can work for a few days and everything works fine, when suddenly this behavior starts. When they report the issue to me and I try it myself, it works fine. I've checked their access rights repeatedly and have even given a user temporary full admin rights to rule out any rights issues, but they stll get this behavior.Just as strange, the problem suddenly will disappear. Often, they will send me an message several hours or days later stating that everything is OK again and they can edit their universe queries in the same reports that refused to work earlier.
    I've also checked the BOXI cluster nodes to see if possibly one of the services had a missing -requestport setting, and was choosing a random port that the firewall could be blocking, but everything looks fine. If I login to the BOXI cluster servers and try one of the reports, I can edit the query just fine.
    Any suggestions? I'm at my wits end.
    Edited by: Perry Provst on Nov 11, 2010 9:18 PM

    I had the same issue and it was because the Universe is having Oracle as Database and I dont have any Oracle drivers installed on my machine. Once i have installed Oracle drivers i was able to view/edit the query panel.
    Hope this would help you.

  • How to get select query for crystal report in c# code

    In C#, (Visual Studio 2008 ) I need to use the native Crystal Reports objects to get the complete SQL statement as it appears when you view it in Crystal Reports.
    In Crystal Reports 12.0, Go to "Database > Show SQL Query..." ... That is what I need to get via C# code. I can get bits and pieces of parameter info etc but I just want the whole SQL statement.
    How to get this?

    Hi Ganesh,
    It's simple to use RAS, include the assemblies and use this to open your report document:
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.ReportDefModel;
    using CrystalDecisions.ReportAppServer.DataSetConversion;
    using CrystalDecisions.ReportAppServer.DataDefModel;
            CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            ISCDReportClientDocument rptClientDoc;
    To open the report use:
         object rptName = openFileDialog.FileName;
                    rpt.Load(rptName.ToString());
                    rptClientDoc = rpt.ReportClientDocument;
    Then to get the SQL set the log on info:
                rptClientDoc.DatabaseController.LogonEx("10.50.212.77,1433", "xtreme", "sa", "password");
                GroupPath gp = new GroupPath();
                string tmp = String.Empty;
                rptClientDoc.RowsetController.GetSQLStatement(gp, out tmp);
                MessageBox.Show(tmp, "Data Source Set and SQL Statement", MessageBoxButtons.OK, MessageBoxIcon.Information);
    Thank you
    Don

Maybe you are looking for

  • Anti-virus software on Windows XP pro sp3 with Virtual PC

    Hi, I'm running Virtual PC 7.0.3 with Windows XP pro Sp3 on eMac. Has anyone found the need to run a anti-virus software etc as part of the Windows system? Or will the firewall on the broadband router modem be sufficient protection? Many thanks.

  • Bluetooth reception issue

    Usually bluetooth works ok; but recently; when using my Sony BT22 headphones on my iphone 4 for simple bluetooth reception; the signal would cut out every time I put the phone in my back pocket. I traced it to a weak signal would I could interrupt wh

  • JAXB2+Maven2 compilation problem

    Hello there, First of all, any hint to this issue will be greatly appreciated, I'm badly strugling with it. Project: Building a webapp Development: Vista, jdk 1.6, Eclipse 3.3 and some plugins including Maven2+Jetty On this env everything goes fine,

  • What are the different ways to improve performance of WSRP?

    Producer - Websphere Portal 6 Consumer - Weblogic Portal 10.2 Also, if anyone can way to optimize the performance of remote portlets in general would be helpful to everyone. Thank You

  • IMAP error in Outlook 2010

    Hi, I have been having a persistent Outlook error connected to my Gmail IMAP account. A separate POP3 account in Outlook works fine, and the SMTP server portion (outgoing mail) works. But the incoming IMAP server does not sync and has not responded t