Issue with crystal's currentdate variable

Hi all,
I am trying to fix an old report. Here is the issue...this report is supposed to print last months data based on a create date.
It has ' create date in the period LastFullMonth ' in the record selection formula..but it is printing dec 2009 data regardless of report run date. I looked at the sql generated by this report (database -> show sqi query) and it substituted create date >= dec 01 2009 and < jan 01 2010.
I tried to print currentdate and it printed Jan 28 2010. Just to make sure there is nothing wrong with my system calendar, I created a new dummy report and printed currentdate on that report but it printed feb 08 2011 which is correct.
I was under the impression that variables like currentdate actually look at the system date but this is weird. Does any one know the reason for this behavior?
Appreciate ur help!
Pree

If CurrentDate is giving different results on 2 different reports then there's a good chance there's an issue specific to that 1 report and you probably couldn't reproduce it even if you tried. Sometime rpt files get corrupted and while I'm sure there's a reason I've never figured out why... It just happens.
Before you go and start rebuilding the report from scratch, try replacing CurrentDate with Today or CurrentDateTime
HTH,
Jason

Similar Messages

  • Performance Issues with crystal reports 11 - Critical

    Post Author: DJ Gaba
    CA Forum: Exporting
    I have migrated from crystal reports version 8 to version 11.
    I am experiencing some performance issues with reports when displayed in version 11
    Reports that was taking 2 seconds in version 8 is now taking 4-5 seconds in versino 11
    I am using vb6 to export my report file into pdf
    Thanks 

    Post Author: synapsevampire
    CA Forum: Exporting
    Pleae don't multiple forums on the site with the same question.
    I responded to your other post.
    -k

  • Performance issue with Crystal when upgrading Oracle to 11g

    Dear,
    I am facing performance issue in crystal report and oracle 11g as below:
    In ther report server, I have created a ODBC for connect to another Oracle 11g server. also in report server I have created and published a folder to content all of my crystal report. These report can connect to oracle 11g server via ODBC.
    and I have a tomcat server to run my application in my application I refer to report folder in report server.
    This way can work with SQL server and oracle 9 or 10g but it facing performance issue in oracle 11g.
    please let me know the root cause.
    Notes: report server, tomcate server are win 32bit, but oracle is in win 64bit, and i have upgraded DataDirect connect ODBC version 6.1 but the issue can not resolve.
    Please help me to solve it.
    Thanks so much,
    Anh

    Hi Anh,
    Use a third party ODBC test tool now. SQL Plus will be using the Native Oracle client so you can't compare performance.
    Download our old tool called SQLCON: https://smpdl.sap-ag.de/~sapidp/012002523100006252882008E/sqlcon32.zip
    Connect and then click on the SQL tab and paste in the SQL from the report and time that test.
    I believe the issue is because the Oracle client is 64 bit, you should install the 32 bit Oracle Client. If using the 64 bit client then the client must thunk ( convert 64 bit data to 32 bit data format ) which is going to take more time.
    If you can use OLE DB or using the Oracle Server driver ( native driver ) should be faster. ODBC puts another layer on top of the Oracle client so it too takes time to communicate between the layers.
    Thank you
    Don

  • Issue with Crystal 11 and Activex Viewer

    Hi All,
      We have been using Crystal Enterprise 10 for long without any issues, Recently we had to move to Crystal 11 as our clients are not able to buy Crystal 10 any more.
    The crystal Report is run from our product using the activex viewer .The Report is invoked by passing
    the url in the following manner
    '/CSM/reports/Crystal//Case%20Solution%20Time.rpt?init=actx&USER0=sa&PASSWORD0='
    This worked perfectly with Crystal 10.
    But when trying to run the report with Crystal 11 it opens a file download box and then opens up the report in design time in Crystal Reports itself and not in the browser.
    I am not sure if this is a know problem or if things have changed (parameters etc.). I need to get this problem sorted asap. Any info on it is highly appreciated.
    Regards,
    Prachi

    Hi,
    In new versions of BOE you should be using a URL command called OpenDocument or alternatively Viewrpt.aspx/.jsp.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/800f7400-bf3e-2b10-fa81-c6c74f457ab4

  • Issue with use of shared variables in Crystal Reports 2008 Offline Viewer

    Hi,
    I have a report that contains a number of sub-reports which include drill-down functionality. The report returns data relating to an individual team with the user being able to view top level summary information in each area from the parent report and then drill into the sub-reports to view see more detail. The data returned by the sub-reports is filtered, using sub-report links, based on the team code parameter value given by the user. This parameter field resides in the main report.
    One of the values returned by the main report is the team name. This is passed to each sub-report using a shared variable and each sub-report displays this team name as part of a heading.
    This all works fine in Crystal Reports 2008, but when a report, containing data, is opened using Crystal 2008 Offline Viewer there is a problem with the shared variable. The value is displayed correctly when the user initially drills into the sub-report. However, when the user begins to drill into grouped data within the sub-report the value passed to the sub-report using the shared variable disappears. 
    How can I ensure that, when a report is viewed using Crystal Offline Viewer 2008, the value within the shared variable is not lost when users drill into grouped data within sub-reports
    Thanks
    Stuart

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Issue with the Replacement Path Variable.

    Hi,
    I have an issue in using the Replacement Path Variable.
    Issue: I have Sales information in the Sales Cube and AR information in the Accounts Receivable cube. Now we have a requirement to show the open AR documents with Sales information in it.
    Apparently the system generates same number for both AR and Billing document.
    So I thought of using the Replacement path variable in the Sales Query on Billing Document, so that it runs the AR query to get the list of open AR documents into the Sales query. But the system is complaining:
    "System error in program CL_RSR_OLAP and form IF_RSR_OLAP~MODIFY_VQUERY_SETTINGS-01- (see long text)".
    I searched OSS note on this and found the note: 1432062. Implemented, but now it complains:
    "Abort Variable XXX cannot be replaced in this query".
    I am trying to return the result from Accounting Document to the Billing Document. I know this is an issue, but after implementing the Note, i thought it would be fixed. But no luck.
    Did anyone come across this situation. If you have any solution for this, pls let me know.
    Thanks.

    Hello;
    Why don't you try to add the billing document in your financial cube;
    mapping it with the a ccount document number?
    This should make the replacement path work fine.

  • Issues with Crystal 2008 Printing to a Zebra Label Printer with SP2

    Hi there
    We are having issues printing to a Zebra Label Printer using Crystal 2008 SP2.
    When you attached a .rpt file to the .NET Application which is accessed via RDP/ICA the reports in Crystal XI worked fine.
    Steps we have taken are:
    Printing direct from Crystal 2008 Designer to the Zebra Printer works using a Generic Text Driver
    Printing direct from Crystal 2008 Designer to the Zebra Printer using a Zebra Universal Print Driver DOES NOT work (we were advised the Universal Print Driver may assist with the issue)
    The report when accessed via the .NET Application via RDP/ICA using the Universal Print Driver it doesn't work.
    The report when accessed via the .NET Application via RDP/ICA using the Generic Print Driver it doesn't work.
    The report when accessed via the .NET Application drectly from Server Console prints fine using Generic Print Driver, but not with RDP/ICA.
    Can anyone offer any suggestions to a fix?
    Many thanks.

    Hello,
    I'll look at this tomorrow when I get into the office. An I am moving this to the developer forum.
    Thank you
    Don

  • Issue with Fiscal Year period - Variable

    Hello,
    I have requirement where I have two fiscal year variables selections available for the users. Both are independent to each other. FOR EX: A & B
    1ST Fiscal year period is straightforward. It is a single variable selection where User enters the fiscal year period then the Key figures data will be available to the user for that particular fiscal year what is selected in the variable screen.
    For ex: If user enters 01.2007 then the values will be only for that particular month/period
    However, the 2nd Fiscal year period user wants a Range (From and to). This is also a Single selection variable. Here user enters only TO value, which it should go and get the lower value from first variable screen and then it should take the higher value from the 2nd Variable screen and should calculate the result as a range.
    How this can be sorted? Can someone please help me to sort this Issue? If we need a customer exit, can you please give me some sample code?
    Thanks in advance
    Harish

    Hi,
    Create 3 variable
    One for from variable which will user input ZVAR1
    2nd to variable will be user input              ZVAR2
    3rd variable be variable exit type              ZVAR3
    In exit populate the VAR3 by reading the two user input variable.
    and use the option
    Try this:
    <b> when 'ZVAR3.
          if i_step = 2.
            read table I_T_VAR_RANGE into z_t_var_range
                            with key VNAM = 'VAR1'.
            read table I_T_VAR_RANGE into z_t_var_range1
                            with key VNAM = 'VAR2'.
                 ZE_T_RANGE-SIGN    = 'I'.
                 ZE_T_RANGE-OPT     = 'BT'.
                 ZE_T_RANGE-LOW     =  z_t_var_range-LOW
                 ZE_T_RANGE-HIGH     =  z_t_var_range1-LOW
                 APPEND ZE_T_RANGE TO E_T_RANGE.
                 clear ZE_T_RANGE.
          ENDIF.</b>
    Thanks,
    Debasish

  • Issue with French characters and Variables combined.

    Using Captivate 4 and publishing to SWF, I discovered the behaviour shown below.
    You can see a text caption
    The text of the first line in Captivate is 'Modifier les paramètres Word - $$v_ScoreParam$$/10'
    When published the è is changed into a Chinese character.
    Is this a known issue? Or am I doing something wrong?
    Thanks for any clues.

    Hello,
    This is a known issue in Captivate 4 (there are several threads in this forum about it), and sorry, it has not been solved in CP4 but is no issue in CP5 (doesn't help you of course).
    I had quite a lot of problems with this. The only workaround is putting this variable in a separate Text Caption and try to put it in place in the other Text Caption. Personally I avoided using those variables when expecting combination characters (like é, à ü...).
    Lilybiri

  • Issue with FlowN activity distinct variables

    Hi Everybody,
    I have a FlowN activity, inside it I want to get values by calling a procedure.
    My plsql procedure takes 2 arguments and returns a name.
    arg 1 = my process input value (common for all branches created in FlowN)
    arg 2 = FlowN_1_Variable (flowN index value)
    The branches get create on FlowN, depends on my process i/o value. (Eg: process input = 3 , 3 branches get created in FlowN)
    1st branch ---> arg 1 = 3 (my process input), arg 2 = 1 (FlowN_1_Variable)
    2nd branch ---> arg 1 = 3 , arg 2 = 2
    3rd branch ---> arg 1 = 3 , arg 2 = 3
    Inside each branch I'm invoking (Invoke activity) my pl/sql procedure by passing 2 arguments (mentioned above) @ run-time, the issue is here
    all branches take the first branch values as arguments, like
    1st branch ---> arg 1 = 3 (my process input), arg 2 = 1 (FlowN_1_Variable)
    2nd branch ---> arg 1 = 3 , arg 2 = 1 but it supposed to get arg2 as 2
    3rd branch ---> arg 1 = 3 , arg 2 = 1 it supposed to get arg2 as 3
    This is issue only with Invoke actiivty,however if I print the values before or after the Invoke activity, the values are correct as I expected(different values are coming).
    I'm passing the values to FlowN thro' local variable inside my the scope.
    Please guide me.
    Thanks
    Viki

    Hi Marc,
    Thanks dude for your help.
    I got the flowN activity works for me with your help.
    Thanks
    Viki

  • Issue with Crystal Report based on 2 different data sources

    Hi there,
    I am having a frustrating problem with a report I've designed and I'm hoping someone might be able to assist please.
    The report has 3 different prompts, each of which is based on a dynamic list of values retrieved via views within a SQL server db.
    We are wanting to introduce the use of Universes as much as possible, so the data returned is based off a BO Universe data source query.
    I have uploaded the report into BO and have provided the necessary database logon information for the report (in the "Process" > "Database" settings in the CMC) for both the direct db datasource connection (for the views) and the BO Universe query connection.
    When the report is run however, the report still prompts for the database user name & password credentials. I have triple checked my db connection settings, and also have "Use same database logon as when report is run" set to true. I also tested a cut-down version of the report without the Universe connection with the same db logon credentials I provided and there was no credentials prompt when it was run, proving those values are accepted.
    Does anyone know why this is happening & if there is a way around it? Alternatively, is there some way that a report prompt may be based on a dynamic list of values retrieved via a Universe connection? This way I'd be able to remove the db connection for the views and have the report solely based on the Universe.
    Another issue that occurs is out of the 3 prompts, a user can select a User Name OR Number, and also must select a Period. However if the User Name or Number is left blank the message "The value is not valid" is shown. So I tried a cut-down version of the report with only the BO Universe as a data source (static prompts) and this didn't occur, i.e. I was allowed to leave either the User Name or Number empty.
    I hope this all of makes sense - let me know if not. If anyone is able to help out with any of this it would be very much appreciated.
    Cheers,
    Marco

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

  • Issue with Offset on a variable

    Hi
    I am using a custom infoobject for fiscal year period (ZFISCPER). I have created a input enabled variable on it. When i am trying to create an offset on it, it is graying out the option and not allowing me to create the offset. How can I overcome this issue
    Thanks
    Rashmi.

    Hi Rashmi,
    Pls check following 2 points.
    1. Data type
    If you want to use variable offset on an infoobject, that infoobject has to be defined as NUMC or DATS data type.
    If you create your infoobject as CHAR data type, offset can not be ceated on it.
    2. Variable type
    The variable offset can be created on the variables defined as Single value or Interval.
    If you create your variable as selection option, offset can not be created on it.
    Regards,
    Kobayashi

  • Issue with Calendar prompt presentation variable

    Requirement: (OBIEE 11g)
    A dashboard should have two prompts - one calendar prompt and one text field prompt giving number of days. There is a timestamp column (SHIP DATE) in the analysis. There should be a between limit in this timestamp field. Logic to be implemented is - Calendar Prompt DateTime <= SHIP DATE < (Calendar Prompt DateTime + No. of days from text field).
    Solution Tried:-
    Using the dashboard prompt, two prompts and two corresponding presentation variables were created. First presentation variable is for calendar prompt timestamp (Date1) and other one is for no. of days (Num_Days) text field prompt.
    Then in the analysis, two filters were created on the Ship Date. First filter is set as 'Is Prompted' and it takes the values '<=' from calendar prompt in dashboard.
    For the other filter, I converted it to SQL and wrote the following:-
    "Time"."Ship date" <= (timestamp '@{variables.Date1}['YYYY-mm-DD HH:MM:SS']{2013-01-01  00:00:00}')  + @{variables.Num_Days}{30}
    The analysis runs fine for the above filters, but when run from the dashboard, it throws up an error.
    Error getting drill information: SELECT "Time"."SHIP DATE" saw_0, "Base Facts"."QUANTITY" saw_1 FROM "SHIPPING DATA" WHERE ("Time"."SHIP DATE" <= (timestamp '''2013-00-01 00:10:SS''') + 30) AND ("Time"."SHIP DATE" >= timestamp '2013-10-01 00:00:00').
    From the above it seems that error is coming because I am unable to set properly the calendar prompt presentation variable in a format which can be read by the analysis. Since analysis is running fine from the default value of Date1, I was thinking of somehow converting the calendar prompt presentation variable in the similar prompt.
    Any pointers to the correct approach?
    Thanks
    Kundan

    I found a workaround to my above issue for now but I would like to know the proper approach from experienced folks.
    My workaround is as follows:-
    I created an additional column in the analysis -> TIMESTAMPADD(SQL_TSI_DAY,- @{variables.Num_Days}{30}, "Time"."Ship date"). Then I applied a filter on this new field. The filter is set as < variable expression Date1 (coming from presentation variable). Since I am not converting this filter to SQL, OBIEE server seems to be taking care of timestamp format conversion.
    I think I need to study the logs and the config XMLs to see how date format is being stored to get a better solution.
    Regards
    Kundan

  • Issue with usage of Clob variable to hold the output data...

    Hi All,
    we are getting the output of the sql query out from a function and this function return type is defined as CLOB.
    because of the volume of data being fetched we are getting the below mentioned error message when this Function is getting executed.
    “ORA-06502: PL/SQL: numeric or value error”. : character string buffer too small
    Now even with CLOB if we are getting the buffer too small error message ...is there any other way or approach we could handle this..
    our requirement is to fetch the complete value from this function in one shot and we don't want to split the data based on the size / number of characters...
    This is causing us lot of issues...could someone please suggest as to what could be done regards this ...

    Post your script. How can we tell when we can't see your code.
    Also, better to post the table ddl's script and some demo insert statement here. And, please provide the DB version, too.
    Generally, you should not get such error. So, please post these details.
    Regards.
    Satyaki De.

  • Issue with Crystal Report export to PDF

    Have a report in Crystal Report 2008. The report runs fine, but would like to export it to PDF/EXCEL, but nothing happens when I select the Export type(i.e. PDF,Excel, etc).
    Steps to replicate:
    1. Run Crystal Report
    2. Click on EXPORT button.
    3. Select the Export type (PDF).
    4. Click on EXPORT - Nothing happens nor does it return any error.
    Would someone be able to provide some tips on this issue
    Thanks

    The problem is that the 3rd party is using some CR SDK. We don't even know what SDK that is. They should be coming here and asking us to help them on your behalf. It is almost impossible for us to help, not knowing how they implemented the SDK, which SDk, etc..
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

Maybe you are looking for

  • More than one view with iphone SDK.

    Hi I'm trying to make more than one view in Interface Builder and then switch between them in xcode. But I can not figure it out. I tryed reading guides, watching tutorials, but with no luck. Can anyone here give me a small tutorial on how do that?

  • CSV Export Format

    Hi all, I wrote a custom toolbar in order to select export formats. The toolbar works fine with PDF and RTF formats, but there is a problem with CSV format when the report contains characters like à, è, é, etc. or symbols like u20AC. In that case the

  • TS3276 how do I send a file that is too large. It is 29 MB and won't send

    How do i send an attachment that is too large? It is 29 MB and says it is too large

  • I think IPhones or all keyboards on apple products should have a swipe keyboard.

    I think iPhones should have a swipe keyboard like androids.. I'm tired of typing they need to give something a new try so I said swipe keyboard

  • Itunes Music Library Location

    I had my tunes on the server, even when I select my server location as default for Itunes music, Itunes puts them back on my laptop under Itunes local hard drive music folder(music:iTunes:iTunes Music:). How can I keep it on the server and to stay th