Report displays date field on server as timestamp, despite format

I formatted a date field in my report as 01/03/2009.
This looks ok when testing in Crystal Reports.
On the server the date displays as 01/03/2009 12:00:00 AM.
I really want to get rid of the time, as it doesn't fit in the report.
I noticed that in an older report the field of the same date is typed as timestamp. In this case the server display correctly.
The problem is, I cannot figure out how/why the date is typed differently in the 2 reports, e.g. date vs timestamp.
Help!?

Ah, that explains it. Some JDBC drivers handle date field types differently.
Be sure you are using the latest JDBC jars from Oracle and make sure you have the correct Java path in the PATH statement.
Other than that it is likely a limitation of the driver itself.
Try using the native Oracle driver in the database wizard and see if you get the same results.
And as suggested go into the Report Options and see if any of the those switches help. Also right click on the field and select Format and see if those option also help you.
Thank you
Don

Similar Messages

  • Issue in displaying DATE field in Excel sheet

    Hi All,
    Kindly help me with the below issue:
    A report program when exexuted fetches the data's from database tables and populates in to an itab and the same is then moved to a itab which is declared like this:
    DATA: BEGIN OF t_downd OCCURS 0,
            line(4096) TYPE c,
          END OF t_downd.
    This T_DOWND will have all the obtained records and the same is used to pass the entries to GUI_DOWNLOAD function module inorder to save the excel sheet in '.csv' format to the desktop.
    The issue is the user wants the 'DATE' field to be displayed in 'DD-MM-YYYY' format in the excel sheet. So I have fetched the date based on the position(fdpos) and used the concatenate statement separated by '-'. Now when I run the program, some dates are not getting displayed in 'DD-MM-YYYY' format and some dates are getting displayed correctly as per the requirement.
    While debugging also, I could find the date value in T_DOWND in the 'DD-MM-YYYY' format only. Not sure where it is actually getting changed and why.
    Can some one please provide a soultion for this.
    Thanks,
    Deepa

    Hi Soumya,
    Thanks for the reply!
    I declared a constant in the below format for the quotes:
    constants : c_quotes type c value ''''. (i have put 4 quotes)
    Now i have concatenated the above quotes to my date value.
    But the output in the excel sheet is now getting displayed like this '30-02-2011
    All the dates are getting displayed in the correct expected format, but the only issue is we are getting an extra quotes in front of the date.
    Can you please suggest why this is happening.
    Thanks,
    Deepa
    Edited by: Deeparani.D on Jan 9, 2012 11:53 AM
    Edited by: Deeparani.D on Jan 9, 2012 11:54 AM

  • Crstal Reports XI - Crosstab Report -  Displaying Dates (Cashflow)

    Hello
    I was wondering if any one would be able to help me with an issue I'm having.  I need to create a cashflow report at the moment I'm trying with a crosstab report (this may be the problem)!!
    I need it to display in the following way. (you may not be able to see the layout), but basically months across the top ( as columns), opportunity description as rows, values then appear under dates.
                                                             Oct-11   Nov-11   Dec-11   Jan-12   ...............Sept-12
    Opportunity Description                                 100.00                                              
    Opportunity Description 1                                                           100.00
    I have several formulas I have included the simpilest below, the problem I'm having is the year is not being taking into consideration and some of the values are display in the incorrect months.
    eg.   The report will run for a year, If my estimated date is Aug 2012 and I add 3 months to it, it should not display on my report (Nov-2012) but it wraps and appears in Nov-2011...
    Case "One Off":
    If (Month ({Sheet1_.Monthstart})=Month (DateAdd("m",3,{OPPORTUNITY.ESTIMATEDCLOSE}))) Then {@First_Year_Fees}
    I think its because I'm not defining the date correctly and taking into account the year. 
    If anyone can solve this I would be very grateful or is there an alternative method other than using a crosstab...
    Thannk you very much
    Sarah

    Try a date range parameter to select your data rather than a date in the middle of the year. If you are concerned that they not enter in exactly one year, you could test the date range with
    not({?enddate}-{?startdate} = 365)
      and give them a warning, you could even suppress everything except the warning that the date range must be one year.
    Or use just a starting date parameter and use it as
    date({field}) >= {?date} and date({field}) < {?date}+366  // adds 1 year
    or just an end date.

  • Displaying date field in menu using HTML DB

    How do I display a date field in HTML DB as drop down. I have the below HTML code which needs to be represented in HTML DB.
    The display on the page should be like
    Enter Start Date : "Month" "Day of the Month" "Year".
    The above values in quotes should be displayed as enterable fields with LOVs.
    Any help would be greately appreciated.
    <td colspan="3">Select a Date Range for the Report</td>
    </tr>
    <tr>
    <td nowrap="nowrap">
    <label>
    <input type="radio" name="selectDateType" value="mdy">
    (Month Day, Year)</label></td>
    <td nowrap="nowrap"><label for="startDateStringMonth">Start date:</label></td>
    <td nowrap="nowrap" width="100%">
    <select name="startDateStringMonth" id="startDateStringMonth" tabindex="3" >
         <option value="">Month</option>
         <option value="0">January</option>
         <option value="1">February</option>
         <option value="2">March</option>
         <option value="3">April</option>
         <option value="4">May</option>
         <option value="5">June</option>
         <option value="6">July</option>
         <option value="7">August</option>
         <option value="8">September</option>
         <option value="9">October</option>
         <option value="10">November</option>
         <option value="11">December</option>
         </select>
    <select name="startDateStringDay" id="startDateStringDay" tabindex="4">
    <option value="">Day</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    <option value="10">10</option>
    <option value="11">11</option>
    <option value="12">12</option>
    <option value="13">13</option>
    <option value="14">14</option>
    <option value="15">15</option>
    <option value="16">16</option>
    <option value="17">17</option>
    <option value="18">18</option>
    <option value="19">19</option>
    <option value="20">20</option>
    <option value="21">21</option>
    <option value="22">22</option>
    <option value="23">23</option>
    <option value="24">24</option>
    <option value="25">25</option>
    <option value="26">26</option>
    <option value="27">27</option>
    <option value="28">28</option>
    <option value="29">29</option>
    <option value="30">30</option>
    <option value="31">31</option>
    </select>
    <select name="startDateStringYear" id="startDateStringYear" tabindex="5">
    <option value="2000">2000</option>
    <option value="2001">2001</option>
    <option value="2002">2002</option>
    <option value="2003">2003</option>
    <option value="2004">2004</option>
    <option selected="true" value="2005">2005</option>
    <option value="2006">2006</option>
    <option value="2007">2007</option>
    <option value="2008">2008</option>
    <option value="2009">2009</option>
    <option value="2010">2010</option>
    </select> </td>
    </tr>
    <tr>
    <td nowrap="nowrap"> </td>
    <td nowrap="nowrap"><label for="endDateStringMonth">End date:</label></td>
    <td nowrap="nowrap">
    <select name="endDateStringMonth" id="endDateStringMonth" tabindex="6">
         <option value="">Month</option>
         <option value="0">January</option>
         <option value="1">February</option>
         <option value="2">March</option>
         <option value="3">April</option>
         <option value="4">May</option>
         <option value="5">June</option>
         <option value="6">July</option>
         <option value="7">August</option>
         <option value="8">September</option>
         <option value="9">October</option>
         <option value="10">November</option>
         <option value="11">December</option>
         </select>

    I'm not sure why you would do it the way you have it implemented in 3 select lists.
    Why not use a Item Type of Date Picker, and let the user use the pop-up Date Picker to select the date.
    You code has some fatal flaws:
    1) You can't see any data before 2000
    2) You can't see any data past 2010 (probably not an issue now)
    3) It's possible to specify February 31 as a date
    Using the built-in Date Item type will eliminate these issues and at the same time, make your UI more streamlined.
    Thanks,
    - Scott -

  • I need to display date field as ..

    hi
    i need to display a field in format yyyy-mm-dd as ( char 10)
    i am able to display as yyyymmdd by declaring as char but how to include - in between
    display is needed both in ALv output and also in text file geneartion on server.

    Hi
    - File
    U can use WRITE statament for the file:
    PARAMETERS: P_DATE(8) DEFAULT SY-DATUM.
    DATA: DATE_OUT(10).
    START-OF-SELECTION.
      WRITE P_DATE USING EDIT MASK '____-__-__'  TO DATE_OUT.
    - ALV:
    The catalog table should have a field to indicate the mask, you can insert a musk like above.
    Max

  • How to display date field in ALV in format 'YYYY-MM-DD'?

    Hi experts,
    I am not getting displayed the date field in ALV in the format 'YYYY-MM-DD' if it is different than my user setting's format (DD.MM.YYYY).
    Tried with the edit mask
    LVC_S_FCAT-EDIT_MASK = '____-__-__'  but it does not work.
    I could not find the conversion routine for this. Is it possible to write customer conversion routine?
    I have to use DATE field, otherwise if I display this format in CHAR10 field , sorting in ALV does not work for this field.
    PLEASE ANY HELP!
    Kind regards,
    Danijela

    Hi,
    Use FM FORMAT_DATE_4_OUTPUT.
    TYPE-POOLS : slis, KKBLO.
    TYPES: BEGIN OF t_data,
           sel     TYPE char1,
           matnr   TYPE matnr,
           bldat   type char10,
           END OF t_data.
    DATA: it_tab TYPE STANDARD TABLE OF t_data,
          it_fcat TYPE slis_t_fieldcat_alv.
    DATA: wa_tab TYPE t_data,
          wa_fcat TYPE slis_fieldcat_alv,
          wa_layout type SLIS_LAYOUT_ALV.
    data: lv_repid    TYPE syrepid.
    data : lv_date    type NLEI-IBGDT,
           lv_outdate type RN1DATUM-DATEX,
           lv_format  type RN1DATUM-FORMAT value 'YYYY-MM-DD'.
    lv_repid = sy-repid.
    lv_date = sy-datum.
    CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
      EXPORTING
        datin         = lv_date
        format        =  lv_format
    IMPORTING
       DATEX         = lv_outdate.
       move lv_outdate to wa_tab-bldat.
    wa_tab-matnr = '0000001'.
    APPEND wa_tab TO it_tab.
    lv_date = sy-datum + 1.
    CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
      EXPORTING
        datin         = lv_date
        format        =  lv_format
    IMPORTING
       DATEX         = lv_outdate.
       move lv_outdate to wa_tab-bldat.
    wa_tab-matnr = '0000002'.
    APPEND wa_tab TO it_tab.
    lv_date = sy-datum + 2.
    CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
      EXPORTING
        datin         = lv_date
        format        =  lv_format
    IMPORTING
       DATEX         = lv_outdate.
       move lv_outdate to wa_tab-bldat.
    wa_tab-matnr = '0000003'.
    APPEND wa_tab TO it_tab.
    wa_fcat-fieldname = 'SEL'.
    wa_fcat-ref_fieldname = 'XCHPF'.
    wa_fcat-ref_tabname = 'MARA'.
    wa_fcat-edit = 'X'.
    wa_fcat-checkbox = 'X'.
    APPEND  wa_fcat TO  it_fcat.
    CLEAR :  wa_fcat.
    wa_fcat-fieldname = 'MATNR'.
    wa_fcat-ref_fieldname = 'MATNR'.
    wa_fcat-ref_tabname = 'MARA'.
    APPEND  wa_fcat TO  it_fcat.
    CLEAR :  wa_fcat.
    wa_fcat-fieldname = 'BLDAT'.
    wa_fcat-ref_fieldname = 'BLDAT'.
    wa_fcat-ref_tabname = 'BKPF'.
    APPEND  wa_fcat TO  it_fcat.
    call 'REUSE_ALV_GRID_DISPLAY'' after this
    Edited by: Ankur Parab on Oct 1, 2009 2:50 PM
    Edited by: Ankur Parab on Oct 1, 2009 2:51 PM

  • Problem with displaying Date field in the table.

    Hi All,
    I am trying to display data into a table UI Element. 
    In that data, i have one DATE type field. While displaying data in DATE field, it will display like this "01.02.2009".
    Now my requirement is if i want to modify that DATE field, it will allow to modify "01.02.2009"  to "26.02.2009".
    But while modifying DATE field , I want to show the Calender of that month, in that i  have to select the another date.
    (Like normal Date UI Element will show that calender).
    Can anyone please help me.
    Thanks in Advance!
    Regards,
    Sreelakshmi.

    Hi,
          Go to the context attribute that was mapped to the DATE field of the table and change the perperty INPUT HELP MODE to  AUTOMATIC and it works.
    Regards,
    Manne.

  • Problem With Crystal Reports Reading Date Fields From CSV File

    I have a date field in a CSV file in the format 06/28/09 17:23:55.523. When I use ODBC the configuartion picks it up a character field. I overright the recommendation type by specifing it is a date field but whne I bring the data into crystal reports the dates are blanks. Any suggestions on how to get around this problem. I need to use the date for selection records.
    Phasor

    The question was answered under another thread. I had to use the split commmand to get rid of the fractions of a second

  • ALV Report Displaying QUAN field different in systems

    Hi Guys,
    I have a field of type QUAN (quantity) on an ALV report that is displaying differently on the Devlopment and QA systems.
    If I enter the value '5' in this field in Development and press enter, the value displays as '5.000'.  If I enter the value in the QA field, however, the value displayes as '0.005'.
    I have looked at domains and everything, but they seem simmilar.
    Please advise fi there is something I have overlooked,
    Thank you,
    Christiaan

    Hi,
    Check in system default parameter settings. It works based on system default parameter settings.
    System => User Profile => Own Data
    In *Defaults* tab check the *Decimal Notaion* field.
    Regards,
    Shankar.

  • Auto update of date field - SQL Server 2005

    HI folks,
    Is there a way I can automatially tell when a record was last updated?
    I can set a field to get the date by using getdate(), but is there a way SQL server will insert the timestamp, without me having to create the date object in CF, then inserting it.
    I'd like to add a 'last updated' function to my CMS.
    Thanks in advance

    For UPDATE you are looking at trigger.
    http://msdn.microsoft.com/en-us/library/ms189799.aspx

  • Creating a report with hyperlinks to other reports in data fields

    First sorry for my bad english.
    I've to generate a report where i can click on a field in a specific column and generate
    another report from that, where i can use the record data for another
    query.
    How can i make this?
    In few words I've a report and i've to make clickable some columns.
    There i've to insert an hyperlink to another report using these data like parameters for the new report query.
    I'm using Oracle Developer Suite 10G, Reports Builder 10.1.2.0.2, Windows XP SP2.
    I've seen that post:
    Re: Adding Hyperlink to a Field
    where seems there's a solution, but i'm quite noob in Oracle using and if someone could explain me help'll be appeciated.
    Thanks a lot in advance

    Hello,
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwcontxt/props/pi_lay_hyperlink.htm
    Example 4: Data-driven hyperlink
    The following example shows a value for the Hyperlink property that specifies a link that needs to have data values provided:
    HTTP://SERVER/PATH/RWSERVLET?REPORT=DEPARTMENT.JSP&P_DEPTNO=&DEPTNO
    Regards

  • Interactive Reports: Display data on two lines per row?

    Is it somehow possible to display a single row across two lines in an interactive report?
    Something like this:
    Row1 Field 1, Row1 Field 2, Row1 Field 3
    Row1 Field 4 (spanning across the other fields)
    Row2 Field 1, Row2 Field 2, Row2 Field 3
    Row2 Field 4 (spanning across the other fields)
    Row3 Field 1, Row3 Field 2, Row3 Field 3
    Row3 Field 4 (spanning across the other fields)
    ... etc
    For example, I have a "Remarks" column that would look better on its own line, rather than being squeezed into the same row with the other columns.
    I realize that this layout might not be possible out-of-the-box, but I was thinking that perhaps some javascript/jQuery trick could be used. Unfortunately, my jQuery-fu is not strong yet, so I'm asking for help...
    (I also know that this type of layout is possible using a classic report with a custom template, but I would prefer to use the Interactive Report if at all possible.)
    - Morten

    Hi,
    Try this to page HTML header
    <style>
    .apexir_WORKSHEET_DATA td{white-space:nowrap!important;}
    </style>At least it work with firefox 3.5 for me
    Br, Jari

  • Entries & Leaving Report displays data of selected not equal to org unit

    Hi,
    While using the standard report Entries & Leaving; in the selection criteria when I put
    NOT EQUAl TO(options) in front of the org unit and and mention the corresponding personnel area and entry date, the report still displays the employees with that particular org unit.
    Why is this happening? Any idea how to correct this?

    Hi Sikindar,
      I am using standard adhoc query report Entries& Leaving.( S_PH9_46000223 ). There on the selection screen I enter the following values:
    Personnel Area: GLLV
    Org Unit         : #(Not Equal To) 60000047
    Entry Date : 1.11.2008 to 28.11.2008> F8
    Now the report also displays the employees which belong to  o 60000047 which is incorrect.
    This is the exact problem and how to rectify this. Please suggest

  • How to create a report in Form line Style and can display Image field?

    Hi,
    In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
    I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
    But in Paper Layout, my report can not display Image field.
    I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
    How to create a report in Form line Style and can display Image field?
    I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
    Thanks & regards,
    BACH
    Message was edited by:
    bachnp

    Here you go..Just follow these steps blindly and you are done.
    1) Create a year prompt with presentation variable as pv_year
    2) Create a report say Mid report with year column selected 3 times
    - Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
    - Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
    - Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
    Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
    3) Create your main report with criteria as Year and Measure col
    - Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
    - Now put a filter on year column with Filter based on results of another request and select these:
    Relationship = greater than or equal to any
    Saved Request = Browse Mid Report
    Use values in Column = YEAR-1
    - Again,put a filter on year column with Filter based on results of another request and select these:
    Relationship = less than or equal to any
    Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
    Use values in Column = YEAR+1
    This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
    This will 100% work...
    http://i56.tinypic.com/wqosgw.jpg
    Cheers

  • Crystal Report 8.5 with SQL SERVER 2005 problems

    Post Author: AREVA
    CA Forum: Data Connectivity and SQL
    Hi All !We have some problems with Crystal Reports version 8.5 with SQL Server 2005: 1) When we want to generate a report (using data in SQL Server 2005) we have a popup message error : "impossible to loaded pdssql.dll".2) If we want to use SQL Server 2005, which Crystal Reports version we must used ? Is there any restrictions with this connectivity with 8.5 version ?Please, let me known, all informations about SQL Server 2005 and Crystal Report 8.5.Thanks for all !Best regards Anthony

    Hello Kamlesh,
    There is no expectation that the ActiveX viewer (RDC?) from CR8.5 will work in any version of Visual Studio .NET. There is also no expectation that the ActiveX viewer from CR8.5 will work on a machine with a 64 bit operating system.
    You're using VS2008. You should migrate to the bundled edition of CR for VS2008 (v10.5), the ReportDocument object, and the .NET Windows form viewer or Web form viewer.
    Sincerely,
    Dan Kelleher

Maybe you are looking for