How does Report side parameters in crystal report be processed?

Post Author: gunner
CA Forum: General
I have modifed the crystal report to improve the performence timing by tuning the query. I have modified the query for the better performence (basicaly tuned the query). Data is exactly matching with the old version but the problem is the sort order is totally diffrent.
Old query and the new query both have tha same group by fields. On the report side there is no group by nor sort on any field.
The modification i have done on the query are
Restructure the query
Moved two report side parmeter to query side
Fetched few old columns form new tables ( i.e. tables which were not previously used in the query)
Please let me know what could be the reason for this?

HI..
Create a Dynamic parameter with first field and in the same parameter select the second field also.  It means you are creating a dynamic cascading paramenter.  It will thake the second field values based on first field.
Thanks,
Sastry

Similar Messages

  • How do I pass parameters to a report thru Report Viewer?

    hi,
    I am moving from Crystal Reports 8.5 to XI in VB6.
    How do I pass parameters to a report thru Report Viewer?
    Old VB code:
    crReport.ParameterFields(0) = "FrProp;" & Trim$(.FrProp) & ";TRUE"
    crReport.ParameterFields(1) = "ThProp;" & Trim$(.ThProp) & ";TRUE"
    crReport.ParameterFields(2) = "RunDate;date(" & Format(Cntl.Run_Date, "yyyy,mm,dd") & ");TRUE"
    crReport.ParameterFields(3) = "FrDate;date(" & Format(.FrDate, "yyyy,mm,dd") & ");TRUE"
    crReport.ParameterFields(4) = "ThDate;date(" & Format(.ThDate, "yyyy,mm,dd") & ");TRUE"
    Bill todd

    Hi Bill,
    Download sample code from the following link:[https://boc.sdn.sap.com/codesamples] 
    Hope this helps!!
    Regards,
    Shweta

  • Default Parameters in Crystal Report

    Hi all visitors
    I have created one crystal report and now i want to set the parameters to my report by using parameters in Crystal Report(  the parameters not from sql).My parameters are datetime datatype. in my report, i create one formula( get date from DocDate field from sql).How can i set the default "Todate" parameter as current date?
    Best Regards,

    Hi,
    So all of the seleciton is done using selecct expert.  They have alot of default values there...but if you go to advanced then you can do much more still.  So if you just want to only use the currentdate then you can just do something like
    date({IT_ChangeManagement.Deployment Date/Time}) = currentdate
    In the above case there would be no parameters needed and would show the currentdates information. You could of course do a varity of >= or <= using the above method. 
    If you want more flexability then you could create a parameter or two . Here is an example.  This is again done in select expert....
    if {?Start Date} <= date("01/01/2000") then
    date({IT_ChangeManagement.Deployment Date/Time}) = currentdate
    else
          {IT_ChangeManagement.Deployment Date/Time} >= {?Start Date} and
          {IT_ChangeManagement.Deployment Date/Time} <= {?End Date}
    The above defaults to the current date if the start date is older than 2000, otherwise it uses the start & end date parmeters.
    Make sense?

  • PASSING PARAMETERS TO CRYSTAL REPORTS THRU FORMS!

    Hi! all,
    Is there someone who passed parameters to crystal reports from
    forms 5.0?
    The problem is when I call the report executable from the form,
    its giving a login prompt again which is not desirable as @ this
    stage the user has already logged in once. So is there a way to
    pass this as a parameter to crystal or may be any better way???
    Thanx for the solution,
    Hima
    null

    First make sure you are on SP 3:
    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
    SP 3 msi     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123592010E/cr2008sp3_redist.zip
    SP 3 msm     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123582010E/cr2008sp3_mm.zip
    Have a look at [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]
    (The above does apply to your version of CR also)
    Have a look at the samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    And look at the Developer Help file:
    http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm
    And don't forget to use the search box at the top right corner of this web page. It will bring up KBases, blogs, wikis, articles and more. Searching these forums is also a good idea.
    - Ludek

  • "Date / Date Time" type parameters in crystal reports 2008

    i am using parameters in crystal report to select records. one of the parameters is "From Date" of type Date Time.
    i mapped this parameter to a field "DateIn" of type smalldatetime in my sql table.
    Now, when i open the report it asks for "From Date" but b y default it sets the time to current time so i have to change it to 00:00:00 manually. i want it to show 00:00:00 by default. which means i don't want time here.
    For this if i select the datatype of parameter "From Date" as Date only then i am not able to map it to the "DateIn" field of the sql table.
    Please help me out of this.
    Edited by: rohit0825 on Jun 2, 2010 2:25 PM

    >
    Deepravs wrote:
    > Hi Rohit,
    >
    > Change the Parameter to Date Datatype and use this formula in the "Record Selection Formula " (Report Tab -> Selection Formulas -> Record)
    >
    > = CDateTime ({?From Date})
    >
    > Though the parameter is date datatype it converts to datetime datatype amd maps to the desired column.
    >
    >
    > Thanks,
    Great !!!
    this is working.
    i found another way, i changed the datatype of parameter to Date and click ok and everything was good, it doesn't require any conversion to date time.
    Thank You so much. All Points You.
    Edited by: rohit0825 on Jun 3, 2010 10:47 AM

  • Step- by- Step on How to Load Excel data into Crystal Reports?

    Hi Friends,
                      Can anyone send me a Step- by- Step on How to Load Excel data into Crystal Reports? Pls help me. Thanks in Advance.
    Vijay

    It's also important to 'prep' the excel file prior to connecting to it.
    Give the data tab a meaningful name
    Make sure the column headers are unique and that every column has a header
    Delete any blank tabs
    If you have trouble with Excel changing the data type of a field (say, a social security number you want to be a string value rather than a number so you don't lose leading zero) an alternative would be to save the spreadsheet file as a CSV, create a schema.ini to specify the data types for each column (example below) and use the same steps to connect except instead of choosing Excel 8.0, scroll to the bottom and choose Text.  You have to make sure the CSV file is in the same folder as the schema.ini file that defines the columns.
    Schema.ini example:
    200912PUSD.csv
    ColNameHeader=True
    Format=CSVDelimited
    MaxScanRows=25
    CharacterSet=OEM
    Col1=SSN Char Width 9
    Col2=LAST_NM Char Width 25
    Col3=FIRST_NM Char Width 25
    Col4=DOB Date
    Col5=STDNT_ID Char Width 10
    Col6=SORTKEY Char Width 10
    Col7=SCHOOL_NM Char Width 30
    Col8=OTHER_ID Integer
    Col9=GRADE Char Width 2
    The filename in the first line needs to have the []  brackets around it, but I couldn't get it to display in this forum correctly.
    Edited by: Eric Petersen on Jan 27, 2010 9:40 AM

  • How to hide Group Tree in Crystal Report Server.

    Hi all visitors
    i have created one crystal report and my report use group to summary the amount of each day.
    after i use group to summary, i used text box cover the group. so my group can't click anything.
    After that i upload my report to crystal report server, when i viewed my report and when i click on Group Tree, it will show the list of group (group date in crystal report) and it also can click. I don't want to show the Group Tree in Crystal Report Server.
    Anybody know how to hide group tree in crystal report server?
    Best Regards,

    Are you talking custom application, or infoview?  If it is custom app, you would have to look at the setToolPanelViewType method.  if its infoview, no direct way to change this that i know of.

  • How to Assign Image field in crystal report through Image UDF

    Hi All,
    I want to capture the Image UDF in crystal report. How can i assign the field in report.
    Can any body help me.
    regards,
    Kiran Kumar

    Hi kiran Kumar,
    IPost a message to SAP Businessone Reporting & Printing Forum
    and also check this link
    Re: SAP Business One and Crystal Reports
    Image Type In Crystal Report
    Regards
    Jambulingam.P
    Edited by: Jambulingam P on Jun 19, 2009 8:22 AM

  • How to center the content in crystal report viewer?

    open crystal report viewer in winform, default at the left top
    after maxmium the winform window, content become at the center
    another odd thing is that i set window winform size 1208*1024 and crystal report view is fill
    then tried, content is not center any more
    How to center the content in crystal report viewer in code?
    Edited by: Mathew_666 on Oct 6, 2011 5:20 AM

    Since there is no control for center you'll need to do the math on your own. This is just a rough draft, but you'll get the idea.
    One of the things you'll need to figure out is your buffer to help you give a centered feel. We'll say that value is 50 in this case.
    Height
    int buffer = 50;
    int formHeight = 1000; // we'll assume a height of 1000 in this case
    int crystalTop = buffer;
    int crystalViewerHeight = formHeight - (buffer * 2); // buffer is at the top and bottom
    Width
    int formWidth = 1000; // we'll assume a width of 1000 in this case
    int crystalLeft = buffer;
    int crystalViewerWidth = formWidth - (buffer * 2); // buffer is at the top and bottom

  • How to set Excel Options using  crystal reports 2008

    Hi,
    I am trying to figure out CR 8.5 (Crystal report control) Equivalents in Crystal reports 2008 using crystal report viewer in .Net but not able to find the exact replacments.
    Properties used in CR 8.5
    CRAXDRT.ExportOptions.ExcelUseWorksheetFunctions=True
    CRAXDRT.ExportOptions.ExcelUseTabularFormat =True
    CRAXDRT.ExportOptions.SetLogOnInfo(1,3,4,5)
    Please let me know the replacements for the above mentioned properties in .Net using crystal report viewer (CR 2008)
    Thanks in Advance
    Regards,
    Ramnath

    Hello,
    The code that has been provided is of Report Designer Component.
    RDC has been deprecated in Crystal Reports 2008.
    Use the 'ExcelFormatOptions' class. It provides many options regarding exporting in an excel format.
    ExcelFormatOptions myExportFormatOptions = new ExcelFormatOptions();
    Try exploring the Developer guide for Crystal Reports .NET SDK [here|http://www.sdn.sap.com/irj/boc/sdklibrary#section7]..

  • How do I install UFL for Crystal Report XI for use on BOE InfoView XI 3.1?

    I have a Crystal XI Report that uses a UFL that was created by someone else. The library works just fine on my machine but I need to put this report out in BOE InfoView XI 3.1 for users. The library is Java Class.
    I have tried to put the library onto the BOE server but the folder structure, etc. is different on the BOE server.
    Could use some help on this.
    Thanks in advance.

    I have a license for Crystal XI on my desktop and that is all.
    We have licensing for BOE Repository to store and execute Crystal Reports. When I run a published Crystal Report the view panel in InfoView displays Crystal Report 2008 logo.
    Crystal Reports with UFL work on my machine because I can follow the documentation for Crystal Java UFL's (which is the same as the note you referenced), but that documentation is useless for BOE InfoView because Crystal Reports on the BOE InfoView server is entirely different.

  • How does works default parameters in a program with logical database PNP?

    Hi Friends,
      I have a basic program, i need to filter info with period parameters in a program that uses logical database PNP, but it doesn't work.
      If i use "person selection period" that it's suposed to filter info according to infotype 0001 (as the sap help says), it doesn't work, i use: PNPBEGPS = today and PNPENDPS = today, and the result it's a lot of registers that doesn't meet that criteria.
      Also i tried with: data selection period, today, up to day, current month. And the result it's with the same problem.
      How does works period parameters in a program with logical database PNP?
    This it's the program example, i use the default category.
    REPORT  ZRPHRTEST.
    tables: pernr.
    infotypes: 0001.
    start-of-selection.
    get pernr.
      write: pernr-pernr, p0001-begda, p0001-endda.
    end-of-selection.
    write 'fin'.

    Hi,
    Define pernr table under tables statement then and use GET PERNR event.This get event is followed by End-Of-Selection.
    Syntax: Tables pernr.
                Get pernr.
    Try, activate and test. This should solve your problem.
    Regards,
    Abhijeet

  • SAP B1 Crystal Reports Add On and Crystal Report 2008

    Hi,
    I have posted the question at SAP Reporting Forum, but not much luck.
    The following reports is created in Crystal report 2008.
    From  http://help.sap.com/businessobject/product_guides/cr2008V1/en/CR2008_SP2_Fixed_Issues_en.pdf, I tnocie there could be moemry leak for Sybase Connectivity, but we are using ODBC.
    My client is using SAP 2007 SP00 PL49, SAP Crystal Report Add on is 2.0.0.7 and they have Beas 6.70.07
    They have encountered problem "The request cannot be submitted for background processing" after printing about 8 times of the same reports consecutively.  It is a work order reports which my clients prints for one operations at a time, with each operations generated 8 pages of output.  There are 5 jpeg on the report, which is not huge.
    Yes, I am aware there could be any problem related to that.
    What I notice is, on the workstation with SAP Business One client running, whenever user print a report named "Work Order", in the temp folder it creates one .rpt and 26 tmp files (Note that I have made up the number)
    Work Order {C0ECP901-C6F6.......}.rpt
    ~cpe{51DD9109........}.tmp
    ~cpe{71DD9109........}.tmp
    ~cpe{52DD9109........}.tmp
    ~cpe{53DD9109........}.tmp
    ~cpe{54DD9109........}.tmp
    At the moment, for a temporary solutions, everytimes when the error comes up, my client have to log off from SAP Business One, clear the temp folder and then relogin before they can print the same report.
    Anyone encounter the problem and manage to resolve. it.
    Edited by: Shwu Hua Gan on Aug 12, 2010 8:43 AM

    In case anyone is interested.
    I managed to drill down and get around with the following solutions.  Still in progress of monitoring, but seems to solve part of the problem.
    1. Open up the JPEG in Accessories--> Paint and notice that the JPEG is too big and cannot be seen without adjustting the scrolling bar.  Reduce the image size seems to work.
    2. The report is using dynamic graphic and reading JPEG path from a UDT with column 'type' and 'path'.  Subreport is used with record selection Type='Precheck'. When there was no Precheck type JPEG, it seems to crash.  We have asked client to add in type='precheck' and hyphen in path when it is not applicable.  In that sense, it will return something to the report.
    3. We also have subreport that read material issues.  when there was no material issue in the subreport, it crash.  So, we do the following:
    - section express - tick suppress blank section
    - right click subreport, tick suppress blank subreport.
    - in Subreport, at report option, we select suppress printing when no records.
    Note that workaround in point 3 does not seem to work for pictures.  So, it might be worth suppressing with formulas.

  • Crystal Reports Server 2008 (Linux) - Crystal Reports/MySQL/ODBC Issue

    Hello,
    I have successfully installed CRS '08 on a Red Hat Enterprise Linux 4 server.  All services run fine.
    In the CMC, I have uploaded a Crystal Report that connect to a remote MySQL server. 
    I have installed the My SQL ODBC 3.51.11 and .12 Drivers as a System DSN.
    I have proven that the reports run fine in Crystal Reports 2008 directly against the remote MySQL DB server.
    (in Windows but with the same 3.51 ODBC Drivers)
    I have also proven that the database connection works okay from the CRS '08 Red Hat server to the remote MySQL DB server, when also creating a system DSN (using bash ./ODBCConfig)
    The problem is that when I log into the CMC or InfoView, and when I run the Crystal Reports from there, I get an error message:
    "Error in File <MyCrystalReport>: Failed to load database information"
    Is there something wrong with my specific Crystal Reports' Database Configuration? (Right click- Database Configuration)
    I see the driver was registered correctly in the /etc/odbc.ini file
    Am I supposed to set any other ODBC environment variables?
    Is there are firewall issue (port 3306 is already open)?
    In summary, the install was successful, and Crystal Reports can be uploaded and viewed via CMC or InfoView, but I cannot run the Crystal Reports against the database.
    Please advise, Thanks!

    Hi, I'm facing a similar problem. My ODBC DSN never works with CRS. Here are the details:<br><br>
    (1) I  installed the CRS 2008 in /opt/crystalreportsserver_2008_v1/ on a Linux platform. The CRS works well. I created a report with Crystal Reports 2008. This report directly connects to a MySQL server. After I published the report and manually modify its database configuration, I can browse it from InfoView. I'm sure that CRS, MySQL, and a report connecting to MySQL are all good.<br><br>
    (2) Then, I created an ODBC DSN on a Windows platform. This DSN connects to a MySQL server. I created another report with Crystal Reports using this DSN. The report can show the data within Crystal Reports.<br><br>
    (3) Then, I published the second report to CRS, but when I try to browse it, I always get such a message: Failed to open the connection.<br><br>
    I have configured the ODBC for CRS on the Linux server and I think the configuration is correct. This is how I do that: I edited the /opt/crystalreportsserver_2008_v1/bobje/odbc.ini file. In the file I added a data source called ods_telstar. Following is the content of the file:<br><br>
    [ODBC Data Sources]<br><
    CRSQLServerWP=DataDirect 5.3 SQLServer Wire Protocol Driver<br>
    CRSybaseWP=DataDirect 5.3 Sybase Wire Protocol Driver<br>
    CRText=DataDirect 5.3 Text Driver<br>
    %SYBASEDSN%=DataDirect 5.3 Sybase Wire Protocol Driver<br>
    ods_telstar = MySQL<br>
    <br>
    ... <br>
    <br>
    [ods_telstar]<br>
    Description     = ODS on telstar<br>
    Trace       = Off<br>
    TraceFile   = stderr<br>
    Driver      = /opt/crystalreportsserver_2008_v1/bobje/enterprise120/linux_x86/odbc/lib/libmyodbc5.so<br>
    SERVER      = xxx<br>
    USER        = xxx<br>
    PASSWORD    = xxx<br>
    PORT        = 3306<br>
    DATABASE    = ods<br>
    <br>
    In the middle I removed some data source definitions that are by default in the file. Note that I use "xxx" to replace the server name, user, and password. Such information is for internal use and I'm sure the original information is correct. The MySQL ODBC driver file has been put in the correct location. Correct access permissions has been assigned to the file.<br><br>
    I've tried to restart the CRS server, but still the report using ODBC DSN cannot be viewed.<br><br>
    The reason that we want to user ODBC DSN is that we may have many reports to publish. When we design the reports, we specify that they get data through an ODBC DSN such as ods_telstar. If we configure the same DSN on CRS, then we don't need manually modify each report's configuration after we publish them. If these reports are directly connecting to MySQL, then we have to manually modify each one's database configuration after we publish them.<br><br>
    I've no idea what's wrong with all the setup. Any suggestions and comments are appreciated!<br>

  • Writing 14 versions of report in one main crystal report

    I am new to working with crystal reports. I would like to know way(s) to  write 14 similar detail reports.
      I will be passing parameters from a vb.net windows application to a crystal report that will have 14 detail reports that are similar but the columns may be different based upon the selection category passed by the parameters.  Each version of the detail reports will be similar but vary depending upon the category that is selected.  The parameters past by the vb.net program to the crystal report will tell the crystal report what version of the report needs to display the data.
      The reports will only one one major selection criteria on them. These reports will be emailed out to each user user the request the detail infomation.
      Thus is there a way with crystal reports to have the reports similar but different based upon one major selction criteria? This would be similar to using cascading styles sheets on the web or writing a .net method that has the same name, but different parameters that can be passed to the 'methods' in .net.
       Thanks!

    I recommend posting this to the Report Design forum. To start off, you want to make the report to work in the CR designer. Once it is working there, you can move on to .NET development.
    BTW., see the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
    Step 2 Asking Your Question; Provide Enough Information
    You may want to start with version of CR you are using, database you are using, DB connection type used, CR patch level and eventually, when the time comes, the version of .NET used.
    Ludek

Maybe you are looking for

  • Macbook 13" screen blinks?!!

    Hey I've connected my macbook to a TV using the apple mini-dvi to video adapter. however, when it's connect both screens (the macbook and the TV) is blinking every other minute, which is quite annoying!! Does any of your know what causes this? the ma

  • IDX5 Not Opening In XI  Abap Stack

    Hi, I cannot open the transaction IDX5. It is giving a messege, System is not central XI, cannot start program! What do I need to DO?....I have spoken to basis steam,,,they said...not their role...some configurations needed in XI...Pls HELP!!! I am s

  • Why FONT  Parameters at SET_CANVAS_PROPERTY Built-in doesn't work with me ?

    after I had a look for the SET_CANVAS_PROPERTY Built-in References :- http://www.oracle.com/webapps/online-help/forms/10g/topics/f1_help/builts/setcspro.html?tp=true I made a Push button at content canvas and within this code on it , which doesn't ma

  • Black background and white letters?

    Lion 10.7.2 and iTunes 10.5 on a Mac Pro. Everything has been fine until this morning when all of a sudden my background has changed color to black and the characters are white. I don't know what I did to cause this. More importantly, I don't have a

  • Multiple size of db_block

    using oracle 10g on solaris. I have a query with lots of join and some table scan with lob object. when i execute that with 8K block size..then after executing 3 times ,I got physical read 0. but I moved them in a 16K block size.and physical read is