ISSUE WITH DATE COLUMN

Hi All,
I have a table(Revenues) and a view(locations) using which I have created a crosstab report
which has a date as a  column in the table and rows contain Region and location and Summary column has the revenues.
Due to some issues I have again created another view which took data from both these (view and table) and I replaced the view in crystal report and build the cross tab.
Now I am unable to change the date time format ( Cross tab column) in the new view as it shows datatype as string.
I need to convert the date i.e this string in form ( yyyy/dd/mm hrs:minutes:sec ) to  (mmm - yy)
How can i Acheive this.??
Thank you,
Nani

Hi
I have solved that Issue By making changes in the view.
But now I am struck with some thing else...
Here Is the Scenario.
Revenues Table has Three Colums ( Date, Revenue, Site _CODE)    >>>>  It has 650 rows
Locations VW has these columns ( Site_Code, site_DESC, Region,...................)  It has 65 Rows.
For a cross tab I need Region and Site_Desc as Rows and Date as a Column And revenue as Summary column ( for month)
I was unable to retrieve all the Site Desc for a region in crystal reports ( Also tried outer joins in LInks tab)
So i have created a new view from both of the above which has ( date,Revenue, site_code,site_desc,Region) and updated it in the Data source  location of crystal reports.
I am getting all the data from past 5 years (which has 65 rows in the crosstab)
But when I am trying to filter it to 2010 data  It gives only 24rows of data ( I am loosing site desc in the regions.)
I need all the site Desc in table whether they have a revenue or not.
How can I do this.
I have tried applying the select expert but got no luck.
Your assistance will be appreciated.
Thank YOu.

Similar Messages

  • Issue with Date Format

    Hi All,
    I m facing an issue with Date format in the prompt. I have used date presentation variables in my column formula as shown below:
    FILTER("SKU Order Details"."Fulfilled Quantity" USING Time."Calendar Date" <= DATE '@{todate}{2900-01-01}')
    The report returns data when I don't select any date range for start & end date prompts on the page. But when I select the start & end date values in the prompt, I m getting the following error:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46047] Datetime value 10/22/2009 12:00:00 AM from 10/22/2009 12:00:00 AM does not match the specified format. (HY000)
    I included the following formulas for start & end date prompts:
    Start Date prompt: case when 1=2 then License."Ips Creation Date" else cast ('1.1.1900' as date) end
    End Date prompt: case when 1=2 then License."Ips Creation Date" else cast ('1.1.2900' as date) end
    Can you please help me resolve the issue.
    Thanks,
    Kartik

    Hi Nico,
    I tried putting the format that you mentioned, I m getting an error message.
    My prompts have the following formula :
    Start: case when 1=2 then License."Creation Date" else cast('1.1.1900' as DATE) end
    End: case when 1=2 then Time."Calendar Date" else cast('1.1.2900' as DATE) end
    My column formula has the following syntax:
    FILTER("SKU Order Details"."Fulfilled Quantity" USING Time."Calendar Date" between DATE '@{start}{1900-01-01}' AND DATE '@{end}{2999-01-01}')
    Error Message:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46047] Datetime value 11/17/2009 from 11/17/2009 does not match the specified format. (HY000)
    Can you please let me know if something needs to be changed.
    Thanks,
    Kartik

  • Issue with Data Provider name in variable screen for BEx Analyzer

    Hello all,
    We got an issue with Data Provider name in Variable screen in BEx Analayzer.
    We want to change the DataProvider name there to Description of the report instead of its Technical name.
    Any inputs are appreciated.
    Thanks
    Kumar

    You have to create a workbook to do this.
    Refresh your query/report. In Bex analyser, there is one toolbar named BEx design toolbox, If you are not able to see it in analyser, right click on the toolbar space of BEx analyser and click on BEx design toolbox. Here, goto to design mode, by clicking on a sysbol like 'A'. after that place the curser where you want to see the Query description. and click on insert text (T) in BEx toolbox. click on it and check "Query description" in constant tab. in the general tab you need to assign a dataprovider, for that assign your query name in workbook settings (in Bex design toolbox). also check the "display caption" in general tab.
    Pravender

  • Issue with data dictionary -Table maintanance generator

    Hi all,
    I have an issue with Data dictionary, table maintenance generator. I have entered some records in a custom table (ZBCSECROLETOGRP) and changed the delivery class from C to A. When I create the table maintainance generator, I am encountered with the following errors:
    1)Field ZBCSECROLETOGRP-PORTALGROUP shortened (new visible length: 000032)
    2)0012 could not be generated
    3)In TCTRL_ZBCSECROLETOGRP field LENGTH has the invalid value 01
    My main motto is to create the table maintainace generator and transport to the furthur systems .
    Please help.
    ThnX in advance,
    Vishal..

    HI,
    Regenerate the table maintenance by selecting the checkbox of "Modified field structure" => new entry & then save.
    Also ensure that the new changes are not affecting old data bcz of data type changes. If that is the case, then delete the old records, regenerate table maint. & re-enter those records which you had deleted.
    Thanks,
    Best regards,
    Prashant

  • Re : Issue with the column display in Bex reports

    Hello Gurus,
    I have an issue with the reports in Bex, this is a bit confusing scenario I would try to explain in more details. A query was already built for monthly Report in Sales and Billing for which the variable were  Calender month/year range 1 (mandatory), range 2 range 3 range 4. These 4 variable were created and moved to column rows in query.
    Later the user wanted the copy of same report but he wanted the variables to be Calender date range 1 (mandatory), range 2, range 3 , range 4. I have created them with 0calenderday as reference and moved to the columns.
    for the monthly report text variables were already existing for the Calender month/ year, but for the daily report text variable were not existing for Dates. I have created a text variable for the date in the following way processing by
    " replacement path" and reference characteristic as 0calday and in the replacement path tab.. in replace variable the selection is info object, the next option Replace with " External charactersitic value key " .
    By creating this text variable the dates were being displayed in the colum header like 11/01/2013 - 11/30/2013 which satisfies the requirement.
    But the user wanted to see the report same like monthly report when the mandatory variable Calender year/ month is selected, the rest of the columns range 2, range 3, range 4 are displayed as unassigned in the report. but coming back to the daily report when the user is giving the Calender date rage 1, he is finding that Calender date range 2, range 3, range 4  are also being displayed with values. He want to see the Calender date range 2,3,4 as unassigned in the report just like monthly. Please find the images attached.
    As Calender month/ year is predefined, if the calender range values are not given it would show up as not assigned default. I have created a separate text variable for Calender day, I believe that could be the reason rest of the columns are not showing up as unassigned. The user want to see them as unassigned like monthly report columns.
    I tried different ways changing the text variables but I could not change the display of the columns in Calender date report by the option - replace with ----> External characteristic value key, key, label. when I chose the option external characteristic value then the date was showing up in the text of the column when report is run ( Please find the image for the reference in the attachment ). . I request you to help me out in this. Please find the images of the variables and output below.

    Anshu,
    Thank you very much for above code I  made minor changes to the code that finally worked. I created 4 different text variables needed for Calender date range 1, 2 ,3 ,4. Please find the code below for the text variable that worked in the system
    WHEN 'ZTEXT_CAL1'.
       READ TABLE I_T_VAR_RANGE INTO loc_var_range
       WITH KEY VNAM = 'ZCALDATE1'.
        IF loc_var_range-LOW = '#'.
          dt_low = 'Not Assigned'.
          dt_high = 'Not Assigned'.
          CONCATENATE dt_low '-' dt_high INTO l_s_range-low.
        ELSE.
          CONCATENATE loc_var_range-low+4(2) '/' loc_var_range-low+6(2) '/' loc_var_range-low+0(4) into dt_low.
          CONCATENATE loc_var_range-high+4(2) '/' loc_var_range-high+6(2) '/' loc_var_range-high+0(4) into dt_high.
          CONCATENATE dt_low '-' dt_high INTO l_s_range-low.
        ENDIF.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.

  • Issue with Date Format for Presentation Variables

    Hi,
    I am using dashboard prompts to capture begin date and end date in presentation variables. The dates selected from calendar are in the format mm/dd/yyyy.
    In Asnwers I need to get a count of days between begin and end dates. I am using the column formula as shown:
    TIMESTAMPDIFF(SQL_TSI_DAY, DATE '@{pBeginDate}', DATE '@{pEndDate}')
    When ever I run the report from dashboard I get the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46046] Datetime value 1/1/2005 does not match the specified format. (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Transaction Dates"."Transaction Date", TIMESTAMPDIFF(SQL_TSI_DAY, DATE ''1/1/2005'', DATE ''1/2/2006'' FROM "Dates"')}
    SQL Issued: SELECT "Transaction Dates"."Transaction Date", TIMESTAMPDIFF(SQL_TSI_DAY, DATE '1/1/2005', DATE '1/2/2006') FROM "Dates"
    Can anyone help me to reolve this date format issue?
    Thanks,
    Aravind

    Hi,
    see this below links
    Issues with Prompts calender date
    Regards
    Naresh

  • Comparing Converted Text To Date With Date Column

    I have a query where I need to break out a text column into a date format and then compare that column against another column in the same table which is already date format. I tried using a sub query to avoid doing it in two steps, but get an:
    'ORA 01858' a non numeric character was found where numeric was expected
    error message which obviously has something to do with the formating of the date in the subquery: the types don't match.
    Note: clock_num is a text column and contains numbers that are supposed to be dates like 070111 - hence the need for conversion into a date type to match the stat_date which is date column type. I do not have contol over the data in this column. It is not my table, it is the company's table and I must use it!
    So my quesion is what syntax/function do I use to get the clock_nbr expression type to match the eff_date type.
    Or is there a different way to go about doing the same thing without using the subquery?
    Any assistance is appreciated..
    SELECT
    me.ssn,
    FROM
    member_enroll me
    WHERE me.ssn = '999999999'
    AND me.stat_date <
    (SELECT to_date(substr(me.clock_num,1,2)||'/' || substr(me.clock_num,3,2)|| '/' ||substr(me.clock_num,5,2),'mm-dd-yy') as clock_nbr
    FROM member_enroll me
    WHERE me.ssn = '999999999')

    user12296489 wrote:
    I wasn't assuming that all the dates were correct. But that is where I made the error. But the reason I didn't see the error was that I didn't know if the way I had the substr function set up with the subquery was correct. I thought that was the problem and so wanted to make sure that was correct before I moved on. As I pointed out, there is a much simpler way to convert the string to a date using a format mask that matches the string data rather than parsing the data using SUBSTR and converting it to a different format before calling TO_DATE.
    It turns out that the reason you posted your function was actually what was holding it up. I had forgotten to include enough criteria in the subquery to return only the 1 record that had a valid clock_num. Once I did that, the query worked - without your function.Just be aware that though it works today, it may not work tomorrow when the query plan changes.
    So, now, onto the issue that you brought up, I don't know how to integrate that function you posted into my query. I have no knowledge of creating functions in pl/sql. I tried placing it before the query and it ran but returned no records You need to create the function once whereas you would run the query many times. I'm not sure what application you're using to interact with the database. If you run just the CREATE FUNCTION DDL statement, does that work? If you're using SQL*Plus, you'd see something like this with the "Function created." feedback.
    SQL> CREATE OR REPLACE FUNCTION my_to_date( p_str IN VARCHAR2 )
      2    RETURN DATE
      3  IS
      4    l_date DATE;
      5  BEGIN
      6    BEGIN
      7      l_date := to_date( p_str, 'MMDDYY' );
      8    EXCEPTION
      9      WHEN OTHERS THEN
    10        l_date := null;
    11    END;
    12
    13    RETURN l_date;
    14  END;
    15  /
    Function created.>
    Here is what I did. It doesn't error out. It says 'done in 0.156 seconds', but no records are returned. when I replace the function you gave (and rem out your function) with the to_date function, it returns 1 record. If I don't rem out your function and use the to_date function, it runs, but again, no records are returned.
    select me.subs_ssn,
    me.clock_num,
    my_to_date(mbr02.mbr02_clock_num) as clock_num
    from odw.mbr02_member_enroll_info mbr02
    where mbr02.mbr02_subs_ssn = '999999999'
    and mbr02.mbr02_grp_id = '00000'If you only have the function call in the SELECT list, the presence or absence of the function cannot possibly change the number of rows that are returned. So if your description is of the behavior of this particular query, something is very wrong. It is possible that the CLOCK_NUM column could be NULL if the MBR02_CLOCK_NUM column is in an invalid format. But the other two columns would have to be populated here if they are populated when you simply remove the call to the function.
    Justin

  • Issues with data usage Samsung S5

    Over the past few months I have been paying outrageous bills due to one of my lines eating all my data when there is no one even touching the phone. I have 3 phones and a tablet on my plan and I am paying 288.00 a month and last month they charged me 15.00 for overage usages because it went over on the last day of the billing cycle. Once again that one line ate up all the data even though it's connected to our wifi or just sitting dormant. I am getting sick of paying these outrageous prices and am about to go somewhere else. I was tricked into the 10.00 a month tablet fee when I signed two phones up under the verizon edge plan. the sales clerk did not tell me I could not cancel the 10.00 a month fee because it would be under a year contract nor did I sign anything saying that, but when I went back in to change the 3rd line over to the Edge plan they told me it would be a $300 or so disconnect charge. So of course I am still paying 10.00 a month for no reason because I have wifi in my home and I only use the tablet in my home. so i need help with trying to figure out the data issues with just one of my lines. I do not have bluetooth on or location. I have went to the play store and uninstalled everything I could. I constantly close out of my applications and clear history etc.,,

    So you thought they would just give you a free tablet at $10 a month and it didn't need to be in a contract like phones?  I took the free tablet too but common sense told me it was locked into a contract, I didn't even ask as I just knew that would be the case but I didn't care.  Mary

  • Performance issues with data warehouse loads

    We have performance issues with our data warehouse load ETL process. I have run
    analyze and dbms_stats and checked database environment. What other things can I do to optimize performance? I cannot use statspack since we are running Oracle 8i. Thanks
    Scott

    Hi,
    you should analyze the db after you have loaded the tables.
    Do you use sequences to generate PKs? Do you have a lot of indexex and/or triggers on the tables?
    If yes:
    make sure your sequence caches (alter sequence s cache 10000)
    Drop all unneeded indexes while loading and disable trigger if possible.
    How big is your Redo Log Buffer? When loading a large amount of data it may be an option to enlarge this buffer.
    Do you have more then one DBWR Process? Writing parallel can speed up things when a checkpoint is needed.
    Is it possible using a direct load? Or do you already direct load?
    Dim

  • ALV Report Output Print issue with more Columns

    Hi Experts ,
                             I'm facing an issue while printing an ALV report which has around 22 columns .If i reduce the column display in the code . I'm able to print but not with 22 columns.. I have used Line-size = 1023 and line-count = 60 , but still the problem persists .
    I also searched in SDN with similar issue but managed to get only the above solution which is not working .
    Any other ways of doing it , kindly suggest .
    Many Thanks,
    Kumaran

    175 characters is the maximum number of characters that can be generated in a line of a spool (next characters are stored on the next line of the spool). When the spool is printed, these line feeds are respected.
    What is possible (I don't know) is that ALV chooses its own format type instead of the format type you have chosen when you run your program in background. To check that, just look at spool attributes (SP01).

  • Issue with Date showing Null in interactive report

    I created an interactive report for a customer and was confused to see blanks or more specifically dashes where there should be dates in one of the fields. I knew this field should have data so I did some testing and this is what I have found:
    The sql I am running is:
    select
    assigned_to_company,
    last_resolved_date,
    incident_id
    from
    rhpd0009_im_adherence_rpt2_vw
    When I run the command in SQL workshop I get the following results with data in the last_resolved_date field:
    [http://i83.photobucket.com/albums/j299/yogibayer/apexdateissuesqlcommand.jpg]
    I copied and pasted the SQL from SQL workshop and created a new interactive report and got the following results with no last_resolved_dates showing up:
    [http://i83.photobucket.com/albums/j299/yogibayer/apexdateissueinteractivereport.jpg]
    For some reason the order is different, but the first one INC1117629 shows up in both of them and has a last_resolved_date in SQL workshop, but not in the interactive report. Any help would be appreciated.
    Thank You
    Scott

    Varad,
    It seems to be related to the function we use to convert Remedy dates to Viewable dates. Remedy dates are stored as an integer that represents the absolute number of seconds from Jan 1, 1970 at 12:00 AM. We use a function that converts this number into a human readable date. I have tried encapsulating the result of the function in a TO_DATE and a TO_CHAR with the same results as before. There is something about the resulting data from the date convert function that Apex doesn't like. It would be interesting to isolate what exactly the issue is, but right now I'm just trying to find a work around.
    Thank You
    SCott

  • Issue with Date and Time Picker on Windows 8.1 and Office 2013

    We are having a issue with the Developer tool in Excel called the Date and Time Picker which puts a calendar field into the spreadsheet where you can select a date from the calendar popup
    If we change this date field and then save and close and reopen it reverts back to the previous date before the change was made
    If we do the same process on a Windows 7 machine with Office 2013 it saves the changes we made to the Date and Time picker field

    Hi jdono2,
    I'm using Windows 8 and Office 2013,and I can't reproduce this issue.
    Please make sure you have already upgraded to the latest version of excel, try to reregister the MSCOMCT2.OCX.
    Also you can try to use another date picker add-in to test this issue.
    http://social.msdn.microsoft.com/Forums/office/en-US/36f83f24-cd76-4f8e-aa7b-5f166666e7d3/excel-2013-popup-calendar?forum=exceldev
    Wind Zhang
    TechNet Community Support

  • Issue with Date format - ABAP to XML

    Dear Users,
    We are currently facing an issue with the date formats in XML.
    We have a system (.Net), which has a webservice that we are calling for information from SAP. We created a Proxy class in SAP from the WSDL file and have attempted to use the method that gets us required information based on the Timestamp passed from SAP. However, the timestamp that the INPUT structure uses has a data element XSDDATETIME_Z.
    All we can send from SAP is a simple TIMESTAMP, but the .Net system doesn't accept it since it wants the timestamp in XML format i.e. <dd-mm-yyyy>T<hh:mm:ss>Z. SAP documentation says that the field should automatically do conversion from ABAP to XML format, but that doesn't happen. We don't want to build a string from Timestamp in the XML format and send it out since we might surely miss out on the different cases involved.
    Can anyone please suggest a way for us to send the date out in the required XML format?
    Many thanks!

    Hi Vijay,
    Look at the below sample code and it works fine, i guess there is something wrong in your code or conversion, post the actual code if you are still not able figure it out with the below example.
    DATA: l_xml_string TYPE string,
          l_dat_time TYPE xsddatetime_z.
    CALL FUNCTION 'CACS_DATE_GET_TIMESTAMP'
    EXPORTING
       I_DATE                         = sy-datum
       I_TIME                         = sy-uzeit
    IMPORTING
       E_TIMESTAMP                    = l_dat_time
    EXCEPTIONS
       DATE_NOT_FILLED_BUT_TIME       = 1
       DATE_HAS_NO_VALID_FORMAT       = 2
       OTHERS                         = 3.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL TRANSFORMATION id
      SOURCE root = l_dat_time
      RESULT XML l_xml_string.
    IF sy-subrc EQ 0.
    write: l_xml_string.
    ENDIF.
    Regards,
    Chen

  • Issue with Data Load Table

    Hi All,
           i am facing issue with apex 4.2.4 ,using the  Data Load Table concept's and in this look up used the
          Where Clause option  ,it seems to be not working this where clause ,Please help me on this

    hi all,
        it looks this where clause not filter with 'N'  data ,Please help me ,how to solve this or help me on this

  • Issue with Date Range Search

    Hi, I am doing a search on a table using a date column having index defined on it.
    when I am using below query:[Here 26-OCT-2010 is the current date.]
    SELECT *
    FROM cs_incidents_all_b
    WHERE incident_date BETWEEN TO_DATE ('25-OCT-2010 00:00:00',
    'DD-MON-RRRR HH24:MI:SS'
    AND TO_DATE ('26-OCT-2010 23:59:59',
    'DD-MON-RRRR HH24:MI:SS'
    Explain plan statistics is - Cost : 4, Bytes: 559, Cardinality:1
    If I run the same query by changing the dates and with 1 day duration, the cost is increasing significantly:
    SELECT *
    FROM cs_incidents_all_b
    WHERE incident_date BETWEEN TO_DATE ('01-OCT-2010 00:00:00',
    'DD-MON-RRRR HH24:MI:SS'
    AND TO_DATE ('02-OCT-2010 23:59:59',
    'DD-MON-RRRR HH24:MI:SS'
    Explain plan statistics is - Cost : 3,643, Bytes: 2,217,553, Cardinality:3,967
    And if I increase the date range, the cost is becoming too high.
    If anybody faced this proble previously, kindly help me to resolve.
    Thanks in advance,
    Sam.

    Tuning request
    Take a look at the
    When your query takes too long ...
    HOW TO: Post a SQL statement tuning request - template posting

Maybe you are looking for