ToDate Function giving ERROR#

Hi,
I am trying to convert a string to date , using Todate function in webi 4.0 , but its giving ERROR#
=ToDate([Final Protocol Avail Ac];"m/d/yyyy")

I want to get the format like this  1/3/214   , so basically wanna convert
01-JAN-2014(String)  --> 1/3/14
also  the below  syntx is converting it into a string , i want it to be date format, as i will be doing DaysBetween that with another date
=Formatdate(todate([Final Protocol Availa Ac];"dd.MM.yyyy");"MM/dd/yyyy")

Similar Messages

  • Planning Function giving error 'not initialise' in BPS Planning folder

    Hi
    Have created the std copy planning function and have included in the folder. Its giving the error the function is not initialised. What do I need to do to remove this error. Any suggestion most welcome.
    Kind Regards,
    Sarah

    Hi Sarah,
    Can you be please feed in some more information on the function you have created. What is the parameter group you have created. Is the error coming while checking the planning folder or before that.

  • Please Help: TO_NCLOB function giving error

    Hi,
    I have HTML tags in one of database columns. As these tags were being displayed in my report, I used TO_NCLOB function to get rid of these tags.
    [I do not need the formatting anyway] This was just working fine until today.
    PROBLEM
    I have this text in my field:
    "<span style="font-size:10pt;font-family:&quot;;;Arial&quot;,&quot;sans-serif&quot">THE COMPANY HAS RECLASSIFIED xxx MILES OF
    “DISTRIBUTION” STEEL MAIN FROM COATED/PROTECTED TO BARE/PROTECTED TO REFLECT
    THE INFERIOR PROTECTIVE PROPERTIES ASSOCIATED WITH THE EARLIEST TYPES OF STEEL
    PIPE COATINGS (BARE GREASE, ROSKOTE, NO OXIDE, ETC.).</span>"
    The report threw an error, when I removed the TO_NCLOB Function in the sql the report is working fine, but is showing html tags in the output pdf.
    I do not understand why the TO_NCLOB function is giving me error in this particular scenario, I am not even able to get the xml data.
    I tried to use the same sql with the TO_NCLOB function in TOAD and it was working fine.
    Your help is highly appreciated, It is a high priority issue.
    Thanks,
    Rakesh
    Edited by: user13814009 on Mar 16, 2011 11:50 PM

    Oh ..Ok..
    Thanks for the answer. So , to get the distinct values , I need to change the query
    like I shown below. .
    select  ( cast(collect(t_tfo_sp_copy_evnt_dtl(event,       evnt.event_desc,
                        promo_month_desc,
                        .start_date,
                        end_date
                        start_date)) as
                        t_tfo_sp_event_table) from
                                                                                  ( select distinct  evnt.event, evnt.event_desc,
                        mth.promo_month_desc,
                        TO_CHAR(evnt.start_date,
                        'DD/MM/YYYY'),
                        TO_CHAR(evnt.end_date,
                        'DD/MM/YYYY'),
                        TO_CHAR((evnt.start_date - 21),
                        'DD/MM/YYYY')
              FROM TFO_SP_RETEK_PROMO_EVENT_MST evnt
               INNER JOIN  .....
               WHERE ...
               ORDER BY evnt.event_desc,
                                       mth.promo_month_desc,
                                       dtl.promo_start_date,
                                       dtl.promo_end_date,
                                       dtl.promo_cost_start_date); But I guess, it will increase the performance overhead.Any other suggestion you have to rewrite the query so that it will perform better?
    Edited by: Manjusha Muraleedas on २५ जनवरी, २०१३ ९:५५ पूर्वाह्न

  • Error While using ToDate Function

    Hi All,
    I am getting below error while creating one report in OBIEE. Please help me in this regard as this is bugging me from long time.
    View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    <<Picture (Metafile)>> Error Details <javascript:void(null)>
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 435222656. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058]
    A general error has occurred. [nQSError: 22047] The Dimension used in TODATE
    function must be referenced in the query. (HY000)
    Kindly help me resolve this issue.
    Thank you,
    Yugendra.

    HI User,
    Refer this link
    http://siebel.ittoolbox.com/groups/technical-functional/siebel-analytics-l/nqserror-22047-the-dimension-used-in-ago-function-must-be-referenced-in-the-query-2692576

  • Todate Function error on creating YTD measure

    I'm trying to create YTD measure using TODATE funtion and and I'm getting the error : To use TODATE function storage level of the query must be static level.
    Please help me to know what I might have done wrong and how to correct it.
    thanks in advance.
    Regards
    Jsmith

    You have incorrectly defined time dimension. Search the forum or check this link:
    http://www.rittmanmead.com/2007/04/30/obi-ee-time-dimensions-and-time-series-calculations/

  • Purge Data #error when UserResponse and ToDate function is used in same formula

    Hi,
    I have a formula which works well when there is data but when I purge the webi report I get #Error for the cells wherever I have used UserResponse and ToDate function in the same formula.
    Ex: =FormatDate(ToDate(UserResponse("Enter Modified Date:");"M/dd/yyyy hh:mm:ss a");"MM/dd/yyyy")
    I tired in multiple reports. I get the same error in all reports when i purge the data but when i unpurge and show the reports with data, I won't get any error.
    Is this known issue? If anyone knows the solution. Please answer it.
    (FYI, I am using BO4.0 SP5)
    Thanks.

    Thanks a lot for all your efforts in trying to find the solution to my question but the formula that you had has a error, as you were using commas instead of semicolon. If you want I can change it & it's not a big deal.
    By the way, I have found even better solution.
    Substrings will kill the processing time and we should try to avoid string functions as much as possible. So I used IsError function instead.
    =If IsError(FormatDate(ToDate(UserResponse("Enter Modified Date:");"MM/dd/yyyy hh:mm:ss a");"MM/dd/yyyy")) Then "" Else FormatDate(ToDate(UserResponse("Enter Modified Date:");"MM/dd/yyyy hh:mm:ss a");"MM/dd/yyyy")

  • ToDate function error in WebI

    Hi All,
    I am getting the error for ToDate function in BOXI 3.1 webI rich client Application.
    =ToDate("15/12/2002";"dd/MM/yyyy")
    Please help me..
    Thanks in advance
    Mahesh

    Hi,
    What error ?
    What version ?  Patch ? 
    Regards,.
    H

  • Copy of Function Group SETB giving error

    Dear All,
    I tried to copy the standard function Group SETB to ZSETB(Which is having SE16 transaction attached) but during activation the include is giving error as "The Field TABNAME is unknown". I have just copied the entire functional group along with function modules. No clue how I can avoid the error. I deleted the include LSETBF10 and re-copied, but error is persisting. Do you have any clue???
    Thanks and regards,
    AD

    Hi!
    Thanks for all your valuable reply. I could avoid the error but could not avoid another error: "The parameter INTTAB of the Global interface has already been defined outside the function". While double clicking on the error, I have reached to a hidden include (Not possible to browse through Navigtion) LZSETB$07. The include contains the following code:
      THIS FILE IS GENERATED BY THE FUNCTION LIBRARY.               *
      NEVER CHANGE IT MANUALLY, PLEASE!                             *
    FUNCTION $$UNIT$$ ZRS_TABLE_VIEW
             IMPORTING
                   VALUE(TABNAME) LIKE !DATABROWSE-TABLENAME
               DEFAULT 'TFDIR'
             TABLES
                   !FIELDTAB STRUCTURE !X031L OPTIONAL
                   !INTTAB
             EXCEPTIONS
                   !CANCELD
                   !GENERATION_ERROR
             $$GLOBAL.
    I assume that is a system generated include. The Global option in FM has automatically been copied during copy of the function group and the function module.
    Thanks and regards,
    AD

  • When using TODATE function MDX query is not correctly generated

    Essbase 9.3.1.2 and OBIEE 10.1.3.4.1.
    When using TODATE function MDX query is not correctly generated.
    This leads to unexpected values not only on cumulative columns in report (generated with TODATE), but also other columns (calculated with AGO function or directly read from cube) have incorrect values.
    The problem occurs when you filter on a column that is not in the select list. If you filter on just one level of dimension, results are fine. You can filter on multiple dimensions as long as you filter on just one level of each dimension.
    If you filter on two or more levels of one dimension, than results are not correct. In some cases results for TODATE column are all zeros, in some cases it is a random value returned by Essbase (same random value for all rows of that column), and in some cases BI Server returns an error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. Essbase Error: Network error [10054]: Cannot Send Data (HY000).
    Here is generated MDX code:
    With
    set [Grupe proizvoda2] as '{[Grupe proizvoda].[N4]}'
    set [Grupe proizvoda4] as 'Generate([Grupe proizvoda2], Descendants([Grupe proizvoda].currentmember, [Grupe proizvoda].Generations(4), leaves))'
    set [Segmentacija2] as '{[Segmentacija].[RETAIL]}'
    set [Segmentacija4] as 'Filter(Generate({[Segmentacija2]}, Descendants([Segmentacija].currentmember, [Segmentacija].Generations(4),SELF), ALL), ([Segmentacija].CurrentMember IS [Segmentacija].[AFFLUENT]))'
    set [Vrijeme3] as '{[Vrijeme].[MJESEC_4_2009]}'
    member [Segmentacija].[SegmentacijaCustomGroup]as 'Sum([Segmentacija4])', SOLVE_ORDER = AGGREGATION_SOLVEORDER
    member [Accounts].[MS1] as '(ParallelPeriod([Vrijeme].[Gen3,Vrijeme],2,[Vrijeme].currentmember), [Accounts].[Trosak kapitala])'
    member [Accounts].[MS2] as '(ParallelPeriod([Vrijeme].[Gen3,Vrijeme],1,[Vrijeme].currentmember), [Accounts].[Trosak kapitala])'
    member [Accounts].[MS3] as 'AGGREGATE({PeriodsToDate([Vrijeme].[Gen2,Vrijeme],[Vrijeme].currentmember)}, [Accounts].[Trosak kapitala])'
    select
    { [Accounts].[Trosak kapitala],
    [Accounts].[MS1],
    [Accounts].[MS2],
    [Accounts].[MS3]
    } on columns,
    NON EMPTY {crossjoin ({[Grupe proizvoda4]},{[Vrijeme3]})} properties ANCESTOR_NAMES, GEN_NUMBER on rows
    from [NISE.NISE]
    where ([Segmentacija].[SegmentacijaCustomGroup])
    If you remove part with TODATE function, the results are fine. If you leave TODATE function, OBIEE returns an error mentioned above. If you manually modify variable SOLVE_ORDER and set value to, for example, 100 instead of AGGREGATION_SOLVEORDER, results are OK.
    In all cases when this variable was modified in generated MDX, and query manually executed on Essabse, results were OK. This variable seems to be the possible problem.

    Hi,
    Version is
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    Sorry, in my last post i forgot to mention that i already created a function based index but still it is not using because, there is a UNIQUE constraint on that column.
    Thanks

  • [nQSError: 22036] Level in TODATE function (Quarter) must be a rollup...

    Hi,
    i've following problem. I hope you can help. It's quite urgent.
    I have following TimeDim hierarchy, in my rpd:
    Logical Level: Total Time - Properties: Grand Total Level
    Child Logical Level: Year - Properties: Supports rollup to higher level of aggregation - Keys: Year Code (Cronological Key) - Logical Column: Year Code, Year Description
    Child Logical Level: Semester - Properties: Supports rollup to higher level of aggregation - Keys: Semester Code (Cronological Key) - Logical Column: Semester Code, Semester Description
    Child Logical Level: Quarter - Properties: Supports rollup to higher level of aggregation - Keys: Quarter Code (Cronological Key) - Logical Column: Quarter Code, Quarter Description
    Child Logical Level: Time Detail - Properties: Supports rollup to higher level of aggregation - Keys: TTPER (Cronological Key) - Logical Column: Desc Month, TTPER, Desc Month Short
    Then, i've defined my measures using TODATE Function:
    - Net Number of HA Units delivered Monthly
    - Net Number of HA Units delivered Qtd = TODATE("Net Number of HA Units delivered Monthly", "TimeDim"."Quarter")
    - Net Number of HA Units delivered Ytd = TODATE("Net Number of HA Units delivered Monthly", "TimeDim"."Year")
    - Ha Returned Quantity Monthly
    - Ha Returned Quantity Qtd = TODATE("Ha Returned Quantity Monthly", "TimeDim","Quarter")
    - Ha Returned Quantity Ytd = TODATE("Ha Returned Quantity Monthly", "TimeDim","Year)
    In my Report i've following columns:
    HA Deliveries Quantity Gross QTD: fx = Net Number of Ha Units delivered Qtd + Ha Returned Quantity Qtd
    HA Deliveries Quantity Gross YTD: fx = Net Number of Ha Units delivered Ytd + Ha Returned Quantity Ytd
    Column HA Deliveries Quantity Gross Ytd works. For first column i have following error:
    [nQSError: 22036] Level in TODATE function (Quarter) must be a rollup of (or equivalent to) the measure level (Year).
    Why?
    If i modify first column fx dropping sum, but selecting first or second addend separately it works. Sum not
    For example: HA Deliveries Quantity Gross Qtd: fx = Net Number of HA Units delivered Qtd OK
    or
    HA Deliveries Quantity Gross Qtd: fx = HA Returned Quantity Qtd OK
    Maybe there's something wrong in my hierarchy definition?. Please help
    Giancarlo

    Giancarlo,
    Can you try adding prersentation column "TimeDim"."Quarter" to your report and check ? Hide it if you don't require it. This shud solve your problem as the Time Hierarchy is defined correctly. Also, hope you have set the Chronological Key correctly at the last level.

  • BAPI_ALM_NOTIF_LIST_PARTNER working perfectly in R/3 giving error in XI

    Hi all,
    the above BAPI working fine in R/3. The Same inputs are passed but it is giving error. The input and output are given below in XML format as it is handled in XI:
    Input message
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:BAPI_ALM_NOTIF_LIST_PARTNER xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
      <COMPLETE>x</COMPLETE>
      <NOTIFICATION_DATE>2008-08-08</NOTIFICATION_DATE>
      <PARTNER>0000000001</PARTNER>
      <PARTNERFUNCTION>vw</PARTNERFUNCTION>
      <NOTIFICATION />
      </ns1:BAPI_ALM_NOTIF_LIST_PARTNER>
    output message
      <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:BAPI_ALM_NOTIF_LIST_PARTNER.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    - <RETURN>
      <TYPE>E</TYPE>
      <CODE>IM718</CODE>
      <MESSAGE>E718 Only specify partner function together with partner number</MESSAGE>
      <LOG_NO />
      <LOG_MSG_NO>000000</LOG_MSG_NO>
      <MESSAGE_V1 />
      <MESSAGE_V2 />
      <MESSAGE_V3 />
      <MESSAGE_V4 />
      </RETURN>
      <NOTIFICATION />
      </rfc:BAPI_ALM_NOTIF_LIST_PARTNER.Response>
    Can any body help in resolving this problem please.
    Regards,
    Venkat

    Thank you amrute for your reply. You are right we do faced similar issues in many other occations and sent exact data and could resolve the issues. In this case also we have given in exact format for all fields. Date format as given in this case is same as what was given in another working XI scenario. However I look at the data type of date to be sure.
    As you see the message is regarding partner and partner function. If you have any other point of view may please be indicated.
    Regards,
    Venkat

  • Nesting of AGO or TODATE functions with differing level arguments is not supported

    I have a column in BMM which calculates the Year-To-Date Sales. This function uses the ToDate function to caculate the YTD.
    I need to develop another formula column which shows the last-year's YTD.
    I develop this formula in BMM by AGO on the YTD column which already uses a ToDate function.
    In BI Answers when selecting this column, results in the below message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 22044] Nesting of AGO or TODATE functions with differing level arguments is not supported. (HY000)

    To reply to my own question. It appears I got it working, that is, the error message problem is solved, but I still have questions on how to use these functions.
    To get it to work, I added the primary key D_TIJD.TIJDKEY at the level of the lowest grain in my dimension (level tab).
    What I still wonder is how to make it select the right values. I have the following hierarchy: bookyear - bookperiod - week. A bookperiod contains 4 or 5 weeks (4,4,5 in a quarter), so 12 periods in one year. I defined a measure at period level and another at that level with the ago function, that should return the figures for that same period of the year before. My first question is, whether to go back 12 periods or 52 weeks (which is the lowest grain in my dimension)?
    The second question is how to use a combination of TODATE and AGO so that if I calculate the current period (of which only 2 weeks are passed), I also only want to include the same two weeks for that period one year ago in order to make a correct comparison. How do I do that???

  • TODATE Function used on a dimension which is logically snowflaked.

    Guys,
    PLease help me to resolve the below error.Can anone explain why do we get this error and how to resolve it?
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 171039483. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22045] TODATE function is used on a time dimension which is logically snowflaked. (HY000)
    SQL Issued: SELECT "Time"."Fiscal Quarter" saw_0, "Facts - Budget"."Total Operating Expenses" saw_1, "Facts - Actuals"."Total Operating Expenses" saw_2, "Facts - Budget"."Total Operating Expenses"-"Facts - Actuals"."Total Operating Expenses" saw_3, "Facts - Budget"."Total Operating Expenses YTD" saw_4, "Facts - Actuals"."Total Operating Expenses YTD" saw_5, "Facts - Budget"."Total Operating Expenses YTD"-"Facts - Actuals"."Total Operating Expenses YTD" saw_6, AGGREGATE(saw_1 BY ), AGGREGATE(saw_2 BY ), AGGREGATE(saw_3 BY ), AGGREGATE(saw_6 BY ) FROM "Financials - GL Budget and Expenses" WHERE ((Time."Fiscal Quarter" <= VALUEOF(NQ_SESSION."CURRENT_FSCL_QUARTER")) AND (Time."Fiscal Quarter" > VALUEOF(NQ_SESSION."FSCL_QTR_YEAR_AGO"))) AND (("WFS Segments".ORG_NUM = VALUEOF(NQ_SESSION."OU_ORG"))) AND ("GL Segment1"."Hierarchy ID" = 'TTTTT') AND (Time.Status = 'Closed') ORDER BY saw_0
    Thanks in advance...

    AGO and TODATE would only work with 1 physical time table..
    Re: TODATE and AGO function errors in OBIEE
    hope this link may helps you.
    Thanks,
    Chinna

  • INVOIC01 IDOC giveing error.

    Hi
        I am trying to process INVOIC01 IDOC using standard SAP function module IDOC_INPUT_INVOIC_MRM. Always its giving error at a particular poing as given below.
    IF f_subrc = 0 AND NOT i_rbkpv-zterm IS INITIAL
    AND i_fix_payment_terms IS INITIAL
    AND ( NOT i_rbkpv-zbd1t IS INITIAL
    OR NOT i_rbkpv-zbd1p IS INITIAL
    OR NOT i_rbkpv-zbd2t IS INITIAL
    OR NOT i_rbkpv-zbd2p IS INITIAL
    OR NOT i_rbkpv-zbd3t IS INITIAL ).
        f_subrc = 4.
        f_fieldname = 'RBKPV-ZBD1T'.
      ENDIF.
    The values are  i_rbkpv-zterm  = A500 , i_rbkpv-zbd1t = 30 and all other variables in the condition are initial. This 'IF' condition always fails.
    Anybody have any idea why this happens ? Any solutions/ work arounds / suggestions ? Please.
    Can anybody tell me what is this i_fix_payment_terms ?
    ofcource..points will be rewarded for helping answers...
    Regards,
    Krishnakumar

    Check the sy-subrc value before the IF statement in debug.
    It should always 0 and i_fix_payment_terms (Internal table ) will not contain any value.
    Hope it will fill after that....

  • Data load through DTP giving Error while calling up FM RSDRI_INFOPROV_READ

    Hi All
    We are trying to load data in Cube through DTP from DSO. In the Transformation, we are looking up Infocube data through SAP Standard Function Module 'RSDRI_INFOPROV_READ'. The Problem we are facing is that our loads are getting failed & it is giving error as 'Unknown error in SQL Interface' & Parallel process error.
    In the DTP, We have Changed the No. of Parallel processes from 3 (default) to 1 but still the above issue exists with data loads.
    We had similar flow developed in 3.5 (BW 3.5 Way) where we had used this Function Module 'RSDRI_INFOPROV_READ' & there our data loads are going fine.
    We feel there is compatability issue of this FM with BI 7.0 data flows but are not sure. If anybody has any relevant inputs on this or has used this FM with BI 7.0 flow then please let me know.
    Thanks in advance.
    Kind Regards
    Swapnil

    Hello Swapnil.
    Please check note 979660 which mentions this issue ?
    Thanks,
    Walter Oliveira.

Maybe you are looking for

  • ADF Error: oracle.mds.exception.MDSRuntimeException: MDS-00168

    Hi All, Another issue we are facing adf ui error: ADF Error: oracle.mds.exception.MDSRuntimeException: MDS-00168 Error "oracle.mds.exception.MDSRuntimeException: MDS-00168" When Deploying ADF Application to the Integrated Weblogic instance of JDevelo

  • Major Aperture failures...again.

    After using Aperture for the last six months and mistakenly putting my faith in it, it appears that I have now lost my entire library of almost 280,000 images. The backup vaults (4 of them) are all failing when attempting to restore the library. They

  • System sound is corrupted

    And I'm not sure how to proceed. I installed VLC and Real Player free version to download a video for my son to use in a powerpoint for a report for school (no worries, no copyright issues). As soon as I did that, everything started sounding terrible

  • Frustrated with Motion's instability

    I am pretty frustrated with Motion right about now. I understand it has some powerful capabilities (of which currently fulfill all my needs) and is in a relatively infantile state, however.... it is completely useless if it can't do what it should do

  • How to rectify " Idoc saved but warnings displayed"

    Hi, When i attach the segment to the Idoc, its showing an message " Idoc saved but warnings displayed". In we30 What is the error, how to rectify this