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

Similar Messages

  • How to change date format for prentation variable in Formula

    Hi experts.._
    I need to change date format for presentation variable in formula..
    my dashbord date prompt format: mm/dd/yyyy(i have created one presentation variable for this prompt: pv_date)
    now i need to show it as : month-dd-yyyy
    Thanks in advance
    Regards
    Frnds

    Hi Kishor...Thanks for reply...
    But i need to change my precentation variable date formt...
    i need to write one text like: 'Year to dd/month/yy' in one column formula..
    So how can i achieve it..

  • 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 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

  • How to change date format for prentation variable

    Hi experts
    In my prompt the date format is MM/DD/YYYY . I have created one presentation variable for that but i want to use this in Formula as well in Title as: DD-MON-YY
    So how can i achieve it..
    Thanks in advance
    Regards
    Frnds

    Hi
    i think this can't be done through any code like oracle uses to_char, to_date function.
    Just follow this
    http://oraclebizint.wordpress.com/2007/12/19/oracle-bi-ee-101332-dates-dates-and-dates/
    With this, wherever you have this column, you will be getting this format dates..
    if you don't want in reports you can change it by mentioning the data format for that paricular column in report, but for the same column, if you want different format at different places (for prompts), you can't do that..

  • 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 F4 help for the variables for the 0CALWEEK and 0CALMONTH

    We have custom IOs which refers to 0CALWEEK and 0CALMONTH.In the report we have variables on the custom IOs.For these variables F4 help does not giving any values .I tested with  0CALWEEK also. For the 0CALWEEK also F4 help does not working..Please help me on this issue.The variable I haveused d to test with 0CALWEEK is 0S_CWEEK.
    Edited by: Sudhakar Are on Jul 6, 2010 4:17 PM

    Hi Pramod,
    I don't know how it is done in infoset. But if you have a context node and attribute for the field which is displayed in the view, create a custom dictionary search help for the field you want. Design the search help as per your requirements (what fields to be displayed etc..).
    In the context attribute of that field property, select 'Dictionary search help' in the Input help mode. Enter the name of your custom search help here.
    Thanks & Regards,
    Satheesh.

  • Date format in presentation variable

    Dear Guru,
    My prompt has a calendar month edit box which is in "YYYY / MM" format. I have set this as a presentation variable p_month.
    Now I need to add 1 month to this presentation variable in the filter, I have tried to write the sql but it is complicated, and it does not work. Anyone could help?
    Thanks a lot,
    Joe

    Thanks, but I have tried the following, it returns a error msg.
    "Snapshot Date"."Snapshot Month" IN ('@{p_snapshot_month}', Timestampadd(sql_tsi_month,1,cast(Evaluate('To_Date(%1,%2)',cast('@{p_snapshot_month}' as char),'YYYY / MM') as date)))
    "Snapshot Date"."Snapshot Month" IN (@{p_snapshot_month}, Timestampadd(sql_tsi_month,1,cast(Evaluate('To_Date(%1,%2)',cast('@{p_snapshot_month}' as char),'YYYY / MM') as date)))
    "Snapshot Date"."Snapshot Month" IN ('p_snapshot_month', Timestampadd(sql_tsi_month,1,cast(Evaluate('To_Date(%1,%2)',cast('@{p_snapshot_month}' as char),'YYYY / MM') as date)))
    Error msg:
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1861, message: ORA-01861: literal does not match format string at OCI call OCIStmtExecute: select distinct D1.c8 as c1, D1.c9 as c2, D1.c24 as c3, D1.c26 as c4, D1.c25 as c5, D1.c17 as c6, D1.c10 as c7, D1.c1 / nullif( 1000, 0) as c8, D1.c7 / nullif( 1000, 0) as c9, D1.c7 / nullif( D1.c6 + D1.c3, 0) * 100 as c10, D1.c6 / nullif( 1000, 0) as c11, (D1.c6 + D1.c3) / nullif( 1000, 0) as c12, (D1.c6 + D1.c3) / nullif( D1.c1, 0) * 100 as c13, D1.c5 / nullif( 1000, 0) as c14, D1.c4 / nullif( 1000, 0) as c15, D1.c2 / nullif( 1000, 0) as c16, D1.c3 / nullif( 1000, 0) as c17, D1.c2 / nullif( D1.c1, 0) * 100 as c18, D1.c11 / nullif( 1000, 0) as c19, D1.c16 / nullif( 1000, 0) as c20, D1.c16 / nullif( D1.c15 + D1.c13, 0) * 100 as c21, D1.c15 / nullif( 1000, 0) as c22, (D1.c15 + D1.c13) / nullif( 1000, 0) as c23, (D1.c15 + D1.c13) / nullif( D1.c11, 0) * 100 as c24, D1.c14 / nullif( 1000, 0) as c25, D1.c12 / nullif( 1000, 0) as c26, D1.c13 / nullif( 1000, 0) as c27, D1.c12 / nullif( D1.c11, 0) * 100 as c28, D1.c18 / nullif( 1000, 0) as c29, D1.c23 / nullif( 1000, 0) as c30, D1.c23 / nullif( D1.c22 + D1.c20, 0) * 100 as c31, D1.c22 / nullif( 1000, 0) as c32, (D1.c22 + D1.c20) / nullif( 1000, 0) as c33, (D1.c22 + D1.c20) / nullif( D1.c18, 0) * 100 as c34, D1.c21 / nullif( 1000, 0) as c35, D1.c19 / nullif( 1000, 0) as c36, D1.c20 / nullif( 1000, 0) as c37, D1.c19 / nullif( D1.c18, 0) * 100 as c38 from (select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, sum(D1.c1) over (partition by D1.c17) as c11, sum(D1.c2) over (partition by D1.c17) as c12, sum(D1.c3) over (partition by D1.c17) as c13, sum(D1.c5) over (partition by D1.c17) as c14, sum(D1.c6) over (partition by D1.c17) as c15, sum(D1.c7) over (partition by D1.c17) as c16, D1.c17 as c17, sum(D1.c1) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c18, sum(D1.c2) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c19, sum(D1.c3) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c20, sum(D1.c5) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c21, sum(D1.c6) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c22, sum(D1.c7) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26 from (select sum(T767750.QUOTA_AMT) as c1, sum(T767750.TOTAL_NEW_PIPELINE_AMT) as c2, sum(T767750.NEW_PIPELINE_AMT) as c3, sum(T767750.M3_QUOTA_AMT) as c4, sum(T767750.M3_PIPELINE_AMT) as c5, sum(T767750.PIPELINE_AMT) as c6, sum(T767750.SALESORDER_AMT) as c7, T767904.PER_NAME_MONTH as c8, case when T540698.FIXED_HIER_LEVEL = 1 then T540698.CURRENT_LVL1_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 2 then T540698.CURRENT_LVL2_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 3 then T540698.CURRENT_LVL3_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 4 then T540698.CURRENT_LVL4_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 5 then T540698.CURRENT_LVL5_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 6 then T540698.CURRENT_LVL6_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 7 then T540698.CURRENT_LVL7_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 8 then T540698.CURRENT_LVL8_E (HY000)
    Edited by: Joe on Oct 8, 2010 2:00 AM

  • Issue with Date Format in line Graph X-AXIS

    Hi all,
    I have a line graph, with data in x-axis and integer values in y-axis.
    I am fetching data in Mon-dd-yyyy format but in graph (x-axis) it showing in yyyy-mm-dd format.
    How to change this format.
    Regards,
    Krishna Prasad

    Hi,
    Basically you are trying to convert a date into date which is not advisable. Hence convert it to char and then equate it against a character value. Also do not use trunc as it will trim out the time part of the date.
    select * from test
               where to_char(dob,'RRRR/MM/DD HH24:MI:SS')=:p1Then pass the parameter
    cheers
    VT
    Edited by: VT on Oct 26, 2010 4:16 PM

  • Issue with date formating

    Hi All,
    I  want to print the date in YYYYMMDD  format  in my coversheet template. Presently i am using DD.MM.YYY in the coversheet template .How to mask  this? ( No generation variant changes are applicable here)
    Please let me know your inputs in detail if possible.
    Thanks&regards
    George

    hi
    what i believe is the problem with your date profile
    to make the time as user time zone ,you need to make following settings
    Customer Relationship Management--->Basic Functions--->Date Management---->Define Date Profile
    Here for a Date Profile, u need to create the reference object adn then assign this object to your date type
    the date profile works in following way ,first we have to create our date type and assign the date rule to it and then assign this date type to the date profile
    so in similar way u need to first do changes in the refernce object ,which will be user user time zone in time
    and then assign it to the date profile
    Also after this just check inside the T code ZTAC
    hope it will end ur probs
    best regards
    ashish

  • Issue with Data Extraction for Master data

    Hi All,
    I have requriment to enhance standard Datasource(0VENDOR_ATTR) to populate certain fields from table LFBK.
    I have enhanced the datasource and the i am able to pull the data in ECC via RSA3.
    After that i have replicated the Datasource in BI and have activated the Datasource and the enhanced fields are available in BI datasources and have created the transformation between Datasource and 0VENDOR.
    when i run the infopackage, the new enhanced fields are not getting populated. I really wonder how the data is not coming to BI, when its is getting populated in RSA3 in ECC.
    Request to give your solution to solve this issue.
    Regards,
    Gowrisankar

    Hello Gowrisankar N K ,
    After making changes to your 0VENDOR_ATTR DS, make sure that you had replicate DS at BI side.
    if not then please first Replicate the DS & check the newly enhanced field is available in PSA.
    Regards,
    Divyesh Khambhati

  • Date Format for the input Variable

    Hi all,
    I got an issue with Date format we enter in the input variable screen for the BEx Analyzer.
    We have given a format of MM/DD/YYYY. But when the users accessed the report, it is not taking the format of the variable i.e MM/DD/YYYY but it is taking the format of the users system.
    If the user's system format is DD/MM/YYYY, it is accepting the input inthe same format only.
    Why this strange behaviour?
    My questions are
    Is the input for BEx system specific? or variable specific?
    Rgrds
    Kumar

    Hi,
    I think it is user specific... you can maintain the date format for user ....
    Go to SU01 transaction or.. Go to SYSTEM -> User Profile -> Own data
    Here in defaults tab you can see the date formet for user...
    Hope this helps...
    Thanks,
    Vikrant Mahajan

  • To accept all date formats for variables

    Hi,
    I am getting a vadidation message on refresh of a query on entering European date format in the selection criteria "Please enter value in permitted format for variable XXXX"
    I need date to accept all date formats for variables to execute query.
    Currently US date format has been accomodated, On entering European date format i get the above validation message.
    Please suggest how do i supress this validation message or any other thoughts on the same.
    If anyone experienced the same before or applied any notes plz send the SAP Note number for the same. I am currently on BW 3.5.
    Message was edited by:
            tyson m

    tyson,
    why dont you control the date display through the user creation / user details option - then your date entries should sort themselves out.
    Arun

  • Problem with date format from Oracle DB

    Hi,
    I am facing a problem with date fields from Oracle DB sources. The date format of the field in DB table is 'Date base type is DATE and DDIC type is DATS'.
    I mapped the date fields to Date characters in BI. Now the data that comes to PSA is in weird format. It shows like -0.PR.09-A
    I have changing the field settings in DataSource  to internal and external and also i have tried mapping these date fields to text fields with out luck. All delivers the same format.
    I have also tried using conversion routines like, CONVERSION_EXIT_IDATE_INPUT to change format. It also delivers me the same old result.
    If anybody of you have any suggestions or if anybody have you experienced such probelms, Please share your experience with me.
    Thanks in advance.
    Regards
    Varada

    Thanks for all your reply. I can only the solutions creating view in database. I want some solution to be done in BI. I appreciate if some of you have idea in it.
    The issue again in detail
    I am facing an issue with date fields from oracle data. The data that is sent from Oracle is in the format is -0.AR.04-M. I am able to convert this date in BI with conversion routine in BI into format 04-MAR-0.
    The problem is,  I am getting data of length 10 (Output format) in the format -0.AR.04-M where the month is not in numericals. Since it is in text it is taking one character spacing more.
    I have tried in different ways to convert and increased the length in BI, the result is same. I am wondering if we can change the date format in database.
    I am in puzzle with the this date format. I have checked other Oracle DB connections data for date fields in BI, they get data in the format 20.081.031 which will allow to convert this in BI. Only from the system i am trying creating a problem.
    Regards
    Varada

  • How can I do for a row of a query be data provider for a variable?

    Hi friends, I have a problem !
    How can I do for a row of a query be data provider for a variable?
    I need that a value of variable be stored when the user select a row in a query. At the BPS we can do this configuring the variable selector in WIB, and in a WAB how I can do this ?
    Best regards,
    Gustavo Liberado

    In this case when I press the key to call other forms I need to wait for the response in the secondary form and then process the result.That is exactly what a "modal JDialog" (or JOptionPane) are used for.
    Try it. Create a short demo program. All you need is a JFrame with a single button to show the modal dialog. All you modal dialog needs is a single button to close the dialog. After you show the modal dialog add a System.out.println(...) statement in your code and you will see that it is not executed until the dialog is closed.
    Then once you understand the basics you add the code to your real program.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

Maybe you are looking for

  • How to Prevent the Executing a Program but Allow to Run as Background Job?

    Hi All, I have an ABAB List Program. I need to restrict this program from executing. This has to always run as a Background Job. How do I check this condition in the program? Thanks, Kishan

  • Master text data in Open Hub

    Hi All, I am working on BI 7.0 and am currently working on Open Hub. I have to extract data from a cost center infocube, but i also need to send the master text data for certain fields along with the infocube data into the file server. Is this possib

  • Backlit keyboard keys

    Does this feature only come on the MacBook Pro series? It seems like a very nice (albeit small) feature, but I'm not clear which models have it and which ones don't.

  • Cumulated result row

    Hi all I am working on one report which gives cumulative week wise sales. the o/p goes like this                                         Actual sales week of the month                      1                                 10            2            

  • Iphone 4 IOS 7.0.2 startet nicht mehr

    Also , Heute nach der schule ging mein Iphone noch ,als ich aber zuhause war  war es einfach aus.Ich dachte mir okay akku leer aber als ich es an den  Pc geschlossen habe kamm 10s lang das Applelogo ,es ging aus und wieder  von vorne. Wenn ich es die