Crystal Reports Date Parameter Problem

Hello Experts,
I have this query in crystal, I need it to be suming the Quantity and Totals but because of the date optional its not doing that, How  I put the date parameter and remove it from her so that I can achieve my results.
SELECT T0.[DocDate],T1.[Dscription] as 'BRANDS /SKU', Sum(T1.[Quantity]) as 'QTY', Sum(T1.[LineTotal]) as 'VALUE' FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode WHERE T2.[GroupCode] = '100' GROUP BY T1.[Dscription],T0.[DocDate]
Thanks,
Titi

Hi Titi,
I don't really get what your question is but I can suggest to add the date parameter on WHERE clause. In case it's optional, you can put validation checking before entering query. When it's null you set a period of time which is relevant to current date. And as replied by GordonDu, the parameter is compare to T0.DocDate
Hope it helps.

Similar Messages

  • Crystal Reports Date Parameter Default Value OPtion Empty

    Is there a way to set a default date value for a Date Parameter? It is shown empty, it only allows to set a fixed date, i.e. 10/10/2013. But it doesn´t allow me to use a formula (which has a CurrentDate inside), so I can set, for example, today's date as default.
    How can I achieve this? I´m not using Crystal for Enterprise. I'm using Crystal Reports, the normal version.

    Hi Erika,
    The feature is only available in CR for Enterprise at the moment.
    If you're OK with selecting the currentdate from the dropdown, here's a workaround:
    1) Go to the Database Expert > Click the Connection Name > Select 'Add Command' > Type in a simple sql query that returns today's date. Example for oracle would be:
    Select SYSDATE from DUAL
    2) Don't link this Command Object with other tables on the report
    3) Create a new Parameter > Select 'Dynamic' under 'List of Values' > Under the 'Value' column choose 'SYSDATE' from the command object > Click create parameter > OK
    -Abhilash

  • SAP Crystal Reports data source connection problem using sap business one

    Hi,
    I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
    I am trying to create a Crystal report but when I try to configure a new connection it does not work.
    I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
    Our Current SAP related software details are as follows:
    OS: Windows Server 2008
    SAP B1 Version: SAP B1 9 (902001) Patch 9
    SAP Crystal Report Version: 14.0.4.738 RTM
    Database: MS SQL Server 2008 R2
    I have also added some screenshots of the issues.
    Please have a look and let me know if you have any questions or any further clarifications.
    I m eagerly waiting for a quick and positive reply.

    Hi,
    There is problem with SAP Business One date source.
    I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
    So, try to use OLEDB.
    Regards,
    Amrut Sabnis.

  • SAP NetWeaver Portal Crystal Reports PDF Export Problem

    Hallo all,
    We are working with BO Edge XI 3.1 with integration on SAP Netweaver Portal. The problem is that integrated in SAP Portal CR reports cannot be exported to PDF or printed out.
    I am using an URL iview with the parameter sOutputFormat=P to run the report.
    When I want to print out the report I get the warning message from Internet Explorer "The download of files from this page is for security reasons blocked. Click here..." --> Download the file. By clicking on the u201CDownload this fileu201D the report starts to run again. PDF export doesnu2019t happen.
    Did somebody have the same problem?
    Thanks a lot in advance!

    Hello Ingo,
    thanks a lot for Your help. I have already talked to my IT department and they are looking for the solution of this problem, too.
    Is there a documentation  about necessary settings in the browser to work with SAP NetWeaver Portal and Crystal reports?
    The problem is that on some clients the PDF export is working and on another clients not. The settings of IE seem to be equal.
    Regards,
    Katharina

  • Xcelsius - Crystal Report Data Consumer connection Issues

    Sorry for the long post but i hope with the full explaination, i can get a quick answer & solution.
    Using Crystal Reports 2008 and Xcelsius 2008 Engage, SQL 2008 stored procedure.
    I have tested the Crystal Reports Data Consumer connection within the Xcelsius program, using the following steps :
    1. Create a stored procedure that returns the Continent Name and the Count of Projects within each Continent.
    2. Create a Crystal Report using the stored procedure, 2 columns in the Details section, column names in the Page Header section.
    3. Save and export this as an Excel spreadsheet.
    4. Open the Xcelsius program, new file and import spreadsheet. Column A is the Continent Name, Column B is the Count.
    5. Without altering the spreadsheet, I created a graph using the data imbedded. i.Bar Graph, series and row selections. Ii. Pie chart with row data selection. Iii.Column data as series and row selections.
    6. Created a Crystal Report Data Consumer connection using the data imbedded within then spreadsheet. The column A as the u201CRow Headersu201D & column B as the u201CDatau201D. Took quite a while to get the right combination of selected components so that the preview actually showed the data and the corresponding data labels. The Legend still hasnu2019t shown up.
    7. Save and Export as Flash (swf) file.
    8. Close Xcelsius and open Crystal Reports.
    9. Open the same report used to create the spreadsheet and Insert -> Flash, choosing the newly created swf file.
    10. Link the data displayed On the Crystal Report to the Flash file now embedded, using the Flash Expert. Have tried both with the data listed on the Report, and the data listed as the result of the stored procedure.
    11. Previewed and the Data shown on the Graph does match the data listed within the Details section of the Report.
    12. I then altered the stored procedure to add u201C1u201D to all counts, and refreshed the Crystal Report. (I cannot add new data to the underlying database/tables, due to various other folks & projects using that same database.)
    13. The listed data does change to match the changes within the procedure.
    14. The Data labels on the Graph do change to match the changes within the procedure.
    15. The Actual Displayed Data within the Graph Does Not change to match the changes within the procedure.
    I have attempted this with a pie chart, a bar and column charts with the same affect.
    I have searched the web, printed out 4 different examples on how to make this work and still it is hit or miss. I still can not get the legend to show up, either in the preview or the within the Crystal Reports. When I preview the graph before adding the Crystal Report Data Consumer connections, it does work.
    Please someone tell me, What am I missing here ? 
    Thanks in advance for your help.

    http://www.****************/Tutorials/BI/Xcelsius/Index.htm
    http://www.resultdata.com/Company/News/Newsletter/2008/aug/Articles/Xcelsius/Using%20the%20Xcelsius%20Crystal%20Report%20Data%20Consumer.htm
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10161e25-c158-2c10-3086-ad502098b36b?QuickLink=index&overridelayout=true
    http://codesforprogrammers.blogspot.com/search/label/How%20to%20suppress%20blank%20row(s)%20in%20detail%20section%20of%20the%20report%3F
    http://www.businessobjects.com/pdf/product/catalog/crystalreports/cr_xc_integration.pdf

  • Crystal Reports PDF Export problem

    Hi I'm using Crystal 8.5 for my reports in VB 6.0. We have intrepret as RTF in the report. Now when we export this report to PDF the nested bullets loose formatting. All bullets show up at the same level. Any idea how to fix this?
    Thanks
    Sudha

    Hello Ingo,
    thanks a lot for Your help. I have already talked to my IT department and they are looking for the solution of this problem, too.
    Is there a documentation  about necessary settings in the browser to work with SAP NetWeaver Portal and Crystal reports?
    The problem is that on some clients the PDF export is working and on another clients not. The settings of IE seem to be equal.
    Regards,
    Katharina

  • Does BOXI support crystal reports with parameter references in formulas?

    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.

    Hi,
       In Crystal Reports under File -> Report Options >check convert Null Values to default > Verify on first refresh > Verify stored procedures on first refresh.
    This corrected the issue by allowing the query engine time to locate those columns and map them to the query being sent by the report.
    The convert null values was added because those field were being used in the record selection and grouping.
    Regards,
    Vinay

  • Using Crystal Report Data Connection in Xcelcius 2008

    The documentation does not explain how data to populate row, column and details is passed to SWF.
    Can some-one please point how CR Data Connection when created in Xcelcius 2008 is used in Crystal Report Design time ? Is it through Flash variables? Basically more details are needed for "when setup properly" clause. How to map Crystal Reports Fields to Xcelcius Definitions.
    Thanks
    Harish Tejwani
    From Doc:
    "With the release of Crystal Reports 2008, it is now possible to embed an Xcelsius-generated SWF file into a Crystal Report and have the SWF consume data from that report. When set up properly, refreshing the data in your Crystal Report will update the embedded SWF.
    To configure your Xcelsius SWF to consume data from its Crystal Rport source data, you must open the Data Manager in Xcelsius and add a new Crystal Report Data Consumer connection. After adding the connection, bind the following ranges to your spreadsheet:  Row Headers, Column Headers, Data"
    "Using Crystal Reports 2008, embed the SWF file into the Crystal Report source data file. When designing your Crystal Report, you will determine what fields/data populate the Row Headers, Comumn Headers, and Data ranges that were designated in your Xcelsius SWF. When set up properly, refereshing your Crystal Report will also refresh the data being sent to and consumed by the embedded SWF. See"

    <div class="content">
    <p>
    Please check the following post to see if there is a solution to the issue you are experiencing:
    </p>
    <p>
    <a href="/node/19014"><span style="color: #0063af">http://diamond.businessobjects.com/node/19014</span></a>
    </p>
    </div>

  • Defining multiple Crystal Report Data Consumer connections?

    I am creating a Xcelsius object that uses data from Crystal Reports.
    To do that, I define Crystal Report Data Consumer connection. With this I can use Crystal to connect to the data source, create table of data (crosstab) and pass it to the flash object.
    But I can only define one such connection. Why can't I define more that one?
    I would like to pass two different sets of data and use them in different parts of the dashboard. Trying to get all the data into a single crosstab may not be possible.
    Is there another way to do this?
    Thanks.
    Tim

    I have found that I can pass any number of tables of data from CR to XC using flashvars, either XML or CSV.
    XML is easy, but you chew up 17 chars (64 bytes) in XML chars per column marker. And with a 64KB string max, you're left with at most 1K data points, and that's with no data!
    CSV is old school XC 4.5, converting an array in to a row-order string, not nearly as convenient as a Crystal Report Data Consumers, but it works and you have only a 4 byte overhead per column (the comma.)
    Converting cross-tabs to strings, though, can be a bear because cross-tabs are evaluated column-order and you may not know how many columns you are going to have.
    So use the Crystal Reports Data Consumer for the intricate cross-tab and CSV flashvars for the other tables.
    And then hope it all loads in less than 7 seconds.
    Tim

  • Schedule CR by crystal report data consumer

    Hello expert,
            I want to embed a xcelsius dashboard into crystal report by crystal report data consumer, but I don't know if I can schedule this mixed crystal report in infoview and send it out by email periodically? because I 've heard there are some restriction for crystal report data consumer on export and print.
    Many Thanks,

    Moved to xcelsius forum. It may need to be posted in the BOE Admin forum.

  • No Crystal Report data returned in the InfoView - Critical Issue

    Hey all,
    We have been trying to solve this issue since 2 weeks after updating the licenses in our BOBJ dev/production environment.
    There are a handful of Crystal Reports in the production environment based on a SAP ECC Infoset. The crystal reports have a combination of static and dynamic filters based on Business Views. All the reports return data in the client tool; however the same reports do not return data in the infoview. The users have administrator privileges.
    We tried patching our BOBJ env to the latest fix packs, change database configuration, rebuilt reports and yet face the same issue. Any suggestions would be appreciated. Thank you for your time.

    We figured out the issue. All the reports had a flag which was not interpreted by the Infoview. Removing the flag in the reports solved the problem.
    This is an active known issue with Business Objects according to the SAP note :
    1440703 - Boolean Parameter values in .NET InfoView are wrong
    The latest fix packs has not resolved the issue yet.
    Thank you
    Vinny

  • Crystal Report Date Prompt  Query from SAP BW

    Dear Support,
    Using Crystal Report 2008 and Query is design In SAP BW
    Date Prompt is made mandatory in Query at Query Designer.
    Problem:  Requirent is that Date promt shoud take value currentdate-1
    when report is excuted first date prompt will show in that prompt value should have today date - 1 which is yesterday date.
    how to pass formula to date prompt?
    Thanks

    If the prompt value should always be CurrentDate -1, then there is no need to use a prompt at all. Just put the formula to the selection criteria.
    If you want the prompt to default to CurrentDate -1, while allowing the user to change the prompt to another date if they wish... That won't work. CR won't allow you to use a formula as the default value in a prompt.
    If there is a BO Universe between you and the tables... IE, you're building against the universe, you'll need to get with the universe designer and have them make an alternate field available that has the formula hard coded in the SQL as opposed prompting.
    HTH,
    Jason

  • Crystal Report Oracle Logon Problem

    Hi,
    We are using Webforms for launching the reports.  When we tried to launch the reports system is prompting for logon information.  It states "The report you requested requires further information." followed by text box having Server Name,  Database Name, User Name, Password and use integrated security(checkbox). 
    We are using Oracle backend for connecting the database.  Crystal Report RPT is designed using the OLEDB ADO (Database Type) and the provider is u201CMSDAORAu201D. 
    The same report is working fine when the Internet service manager identity is set as u201CLocal Systemu201D reported problem occurs when the identity is set as u201CNetwork Serviceu201D.  How to over come this issue.
    Crystal Version : Crystal Reports 2008 is installed
    Operating System : Windows server 2003 standard edition
    Oracle Version : Oracle 11g
    Please Note : Report is fetching data from the crystal report designer in the preview.  There is no problem in oracle connectivity.
    Code is available below
    rpt.Load(@"D:\report\totaldetails_sub_sp_oracle.rpt");
    CrystalDecisions.CrystalReports.Engine.Database crDb;
    CrystalDecisions.CrystalReports.Engine.Tables crTables;
    CrystalDecisions.CrystalReports.Engine.Table crTable;
    TableLogOnInfo crTableLogOnInfo;
    ConnectionInfo crConnInfo;
    crDb = rpt.Database;
    crTables = crDb.Tables;
    crConnInfo = new CrystalDecisions.Shared.ConnectionInfo();
    crConnInfo.ServerName = "< Oracle Service Name>";
    crConnInfo.DatabaseName = "";
    crConnInfo.UserID = "<Oralce User Name>";
    crConnInfo.Password = "<Oracle Password>";
    for (int i = 0; i < crTables.Count; i++)
             crTable = crTables<i>;
    crTableLogOnInfo = crTable.LogOnInfo;
    crTableLogOnInfo.ConnectionInfo = crConnInfo;
    crTable.ApplyLogOnInfo(crTableLogOnInfo);
    CrViewer.ReportSource = rpt;

    Thanks a lot for replies ...
    To use oracle client 32 bit on the x64 server may be a problem for the next times. And my project leader don't want to change oracle client version (x64). So I try to change my reports connections to ODBC type.
    Now, I want to ask another question:
    Firstly, I will test these changes on 32 bit. Later, I test it on 64 bit.
    My report are created on Crystal reports 10, 32 bit. I change the connection type by using "Set Datasource Location" menu. I test this ODBC connection with my report on 32 bit platform. I can see the records on the Crystal Reports when I refresh my report. This is OKEY. ODBC connection is success on 32 bit.
    But, in my project (this is an web application, and it is working 32 bit and 64 bit successfully), I can't see the records. I debuggged my project on 32 bit with Visual Studio. For this, I put some breakpoints on to the specific places. I watch that two records are taken from database. Everything is good. But when "reports.aspx" file opens, these records don't appear. Before changing connection type , this records were listed in my project on 32 bit.
    For this, have you any ideas ?
    Thanks ...

  • Crystal Report Caching(?) Problem

    Post Author: cfernald
    CA Forum: General
    We have a web app that launches Crystal Reports (version 10) in the crystal reports viewer that plugs into IE (version 6.0). The whole thing is managed by Crystal Enterprise Server. 
    The problem: You launch a report and let's say it shows you 10 lines of data on the report. You perform some activity in the application that updates the database such that an 11 lines should appear on the report. However, when you run the report again (after closing the IE session from the first viewing) you only see 10 lines (while expecting 11).
    There's a little "dance" I do to "clear cache":  I hit the "Refresh Report" icon (the "lightening bolt" icon), close the browser and then relaunch the report.  This seems to tell the report to re-read the database rather than use the data that was previously retrieved. 
    Clearly the results are being cached somewhere - can someone point to where I might look to control that behavior?
    \cbf

    Post Author: cfernald
    CA Forum: General
    Ok, I did some additional research and learned all about how CR has a CacheServer that can be controlled through the Crystal Management Console. Specifically there is a setting for the CacheServer named: "Oldest on-demand data given to a client" which is expressed as a number of minutes. From the manual:
    This value controls how long report pages and prompt pages can stay in the cache. Once an object has been in the cache for the given number of minutes, it is aged out of the cache and there will be no further cache hits for this object. The default setting is 0 u2013 which means that no prompt pages or report pages will be server from cache. For optimal prompting performance, we recommend setting this value to the largest possible value without impacting data currency. For example, if the data that your reports access changes only once a day, then you can probably set this value to be 8 hours (or 480 minutes). If the data that your reports access changes every 5 seconds, and your report consumers need to see current data, then this value should be set to 0.
    Based on the last sentence above, I want this value set to zero to meet our reporting needs.  However, after setting it to zero and restarting everything, I still see cache entries in the CacheServer directory and Crystal is still caching report data.
    What am I missing?

  • Crystal Report 2008 V12 and  Crystal Report in VS2008 problem

    I have made Crystal report Application using VS2008
    Since it has Crystal Report V 10.5 it is raising error as For SAP CR2008 V12
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    Exception Text **************
    System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
       at Test.FrmPurchaseDetail.button1_Click(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    Test
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Default%20Company%20Name/Setup1/Test.exe
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    BLL
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Default%20Company%20Name/Setup1/BLL.DLL
    System.Data
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    How to Solve this Problem
    How to use Crystal Report Viewer Version 12 instead of Crystal Report Version10 in Vs2008

    see this post:
    Can CR2008 be used with VB6 ?
    COM is a deprecated technology. Became deprecated along with Vb 6 not being supported by MS.
    Thus .NET or Java are your solutions at this time.
    Ludek

Maybe you are looking for

  • Vendor aging unreconciled bal. does not match with TB Acct. Payable balance

    Dear all, When i take unreconciled vendor aging report with selection creteria all vendor codes selected,aging date as 31/03/09 and posting date from 01/04/08 to date 31/03/09,Interval - 30 Days,By Journal postings Deticked all check boxes in it. Agi

  • Itunes store will not open on my desktop

    I am wondering if anybody on here is having any problems opening the Itunes store? I can launch Itunes on my computer but the store part will not open. All I keep getting is a message saying that the Itunes store is temporarily unavailable. I've had

  • Firefox will not open websites, computer is connected to internet, IE 8 64 bit works, (but not 32bit).

    I had deleted some awful parental control software that had installed with my Wifi/broadband box on my son's new computer. I am sending this from mine so settings are a bit different. IE 8 64 bit works fine, but niehter firefox or IE8 32 bit will loa

  • Assign Form for Payment Method

    Hi all, Can anybody explain what is the difference between 'assigning form in paying company codes' and 'assigning form in payment methods in company code' ? Since the configuration in "assign form for payment method in company code" only cater for 1

  • Searching for Missing Files-Elements 5.0

    Elements 5.0--loaded photos from my camera using Elements.  Added some captions using Elements.  the next time I tried to retrive photos I got a screen saying "Searching for Missing Files"  and the system started scrolling through files.  Not sure wh