Syntax error in the formula

What is wrong with it?
=DATEDIF(G4,NOW(),"D")

Hello
In most (if not all) spreadsheets a date is stored internally as a number counting days from a starting one.
In Apple products the date 0 is 01/01/1904
If I remember well a week is made of seven days so,
assuming that the given date is in cell B2
enter cell C2 and type =B+(4*7)
and you will get the wished date.
CAUTION, it seems that something is buggy.
When I enter 1 in a cell and set the cell format to date, normally, the correct result would be 01/01/1904 alas, on my machine it displays 03/01/0001 which is a wrong value !!
Yvan KOENIG (from FRANCE mercredi 31 octobre 2007 16:33:41)

Similar Messages

  • Syntax Error in the Query

    Dear All,
    Please tell me syntax error in the below query. When I'm going to write numeric number in this filed "$[ OVPM.DocNUm ]". It's working fine. But when I'm writing this it give me error.Please clear me where am wrong????I
    SELECT T0.[AcctNum] FROM VPM1 T0 WHERE T0.[DocNum] =$ [OVPM.DocNUm ]
    Regards
    Edited by: Anwar Ali Sohail on Sep 27, 2011 11:43 AM

    HI
    Try This
    SELECT T0.[CheckNum] FROM VPM1 T0  INNER JOIN OVPM T1 ON T0.DocNum = T1.DocEntry WHERE T0.[DocNum] = $[OVPM.DocNum]
    OR
    SELECT T0.[AcctNum] FROM VPM1 T0  INNER JOIN OVPM T1 ON T0.DocNum = T1.DocEntry WHERE T0.[DocNum] = $[OVPM.DocNum]
    Edited by: kambadasan on Sep 27, 2011 4:26 PM

  • "Syntax error in the MDX statement " in Process chain failure??Urgent pls

    Hi Experts,
    could any one suggest me the procedure to rectify the below problems in process chain?
    1."Syntax error in the MDX statement "
    2."Error when getting data (Error when getting data (AXI))"
    Rgds,
    BH

    In which case it'll be that Access has a different date format to MySQL, and you're trying to push the string "'25-Apr-12 10:55 PM" into Access, which it's not understanding. To get around this, you need to treat your variable as a true date/time object, rather than a formatted string.
    CFQueryParams should be used on absolutely every database platform, they'll stop your website being vulnerable to SQL Injection attacks for one, which at the moment you're wide open to. Replace your query with something like this:
    <cfquery name="input_comments" datasource="#DSN#" username="#DSNUSER#" password="#DSNPASS#">
          INSERT INTO comments(
                             commenter,
                             comment,
                             datetime,
                             post_id
                   VALUES(
                             <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.commenter#" />,
                             <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.comment#" />,
                             now(),
                             <cfqueryparam cfsqltype="cf_sql_numeric" value="#form.post_id#" /> )
    </cfquery>
    The QueryParams will handle the data types for you, and should pass values around more safely and with fewer issues. Assuming you just want to store the current date and time you don't even need to get ColdFusion involved, as databases have their own functions for this. I believe Access' version is simply NOW(), so I've put that in your query.
    Give the above a go.

  • Syntax error in the program SAPLSYMB

    Hi
    I have installed ECC6 on windows 2003 server  sqlserver 2005 as database. We are getting error at the time applying basis patch. The patch process is stopped at import_proper stage.
    When i try to execute any transaction , the error is "syntax error in the program SAPLSYMB". I have cleard the transaction log, still  the errro is same.
    When I try to relogin the error is same, I am unable to execute any transaction.
    Please do the needful
    Regards
    Prasanna.B.S

    Hellow,
    I have the same error, and I executed this command for 12 hours
    tp r3i SAPKB70017 ITP pf=/usr/sap/trans/bin/TP_DOMAIN_ITP.PFL tag=spam -Dclientcascade=yes -Drepeatonerror=8
    the message in cmd is
    earth\sapmnt\trans\tmp\SLOG0914.ITP.LOC is already in use (14474), I'm waiting
    2 sec (20090401065221). My name: pid 4188 on earth (dministrator)
    But this file (SLOG0914.ITP.LOC ) is in 0 kb, is this normally ?
    Please Help me
    Regards
    Graciela

  • Syntax error near the ['on']

    Can anyone please advise on how to resolve this issue, I created Dim load file but whenever I try loading the Dim it returns - syntax error near the ['on']
    thanks

    I don't see the issue
    Delimiter was set as comma, first line was ignored and it all loaded fine.
    Cheers
    John

  • Error Message: "The formula syntax is not supported by the report"

    We are using 'Development Environment: SAP Crystal Reports, version for Visual Studio 2010 u2013 Standard ' and using CrystalDecisions.CrystalReports.Engine and CrystalDecisions.ReportAppServer APIu2019s
    I am reading SQLExpressionFields from one source .rpt file & want to add it to another ReportDocument. While doing so, it gives an error " The formula syntax is not supported by the report"
    doc.ReportClientDocumentDataDefController.FormulaFieldController.Add(formualField); // formualField is SQLExpressionField from source ReportDocument
    But when I tried to Add FormulaField, it succeeds
    Please help me in knowing how to add SQlExpressionFields to ReportDocument.
    Regards,
    -atul

    Thanx Don & Ludek for the reply.
    CR provides support for addition/modification of SQLExpressions.
    CRAXDRT.Application application = new CRAXDRT.ApplicationClass();
    CRAXDRT.Report innerReport = application.OpenReport(path, CROpenReportMethod.crOpenReportByTempCopy);
    innerReport .SQLExpressionFields.Add(name, strSQLExpression)
    CRAXDRT.dll provides support for addition/modification of SQLExpression fields. But its not compatible with 64bit.
    Just curious to know, is there any future plan to provide support for add/modify SQLExpression fields?
    Thanx
    -atul
    Edited by: Atul Chivate on Aug 21, 2011 6:13 PM

  • Why am I getting a syntax error on the /head line in DW CC?

    I am getting a syntax error in DW CC.  Other threads have indicated this was a bug in CS6 but had been fixed in CC.  That leads me to believe it's my fault, but I can't figure it out.  Can anyone help based on the information I've pasted below?  Thanks!
    <!doctype html>
    <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
    <!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
    <!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <html class="">
    <!--<![endif]-->
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Untitled Document</title>
    <link href="boilerplate.css" rel="stylesheet" type="text/css">
    <link href="style.css" rel="stylesheet" type="text/css">
    <link href="jQueryAssets/jquery.ui.core.min.css" rel="stylesheet" type="text/css">
    <link href="jQueryAssets/jquery.ui.theme.min.css" rel="stylesheet" type="text/css">
    <link href="jQueryAssets/jquery.ui.accordion.min.css" rel="stylesheet" type="text/css">
    <link href="jQueryAssets/jquery.ui.tabs.min.css" rel="stylesheet" type="text/css">
    <!--
    To learn more about the conditional comments around the html tags at the top of the file:
    paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
    Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
    * insert the link to your js here
    * remove the link below to the html5shiv
    * add the "no-js" class to the html tags at the top
    * you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
    -->
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="respond.min.js"></script>
    <script src="jQueryAssets/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="jQueryAssets/jquery-ui-1.9.2.accordion.custom.min.js" type="text/javascript"></script>
    <script src="jQueryAssets/jquery-ui-1.9.2.tabs.custom.min.js" type="text/javascript"></script>
    <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.--><script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/adamina:n4:default.js" type="text/javascript"></script>
    </head>
    <body>
    <div class="gridContainer clearfix">
      <div id="div1" class="fluid">
        <header id="header" class="fluid">
          <p><img src="Images/Logos/insidejoplinlogo.png"  alt=""/></p>
            <nav id="mainnav" class="fluid"> <ul class="fluid fluidList mainnavlist"> <li class="fluid mainnavitem zeroMargin_desktop"><a href="Index2.html" title="Inside Joplin Home" target="_self">Home</a></li><li class="fluid mainnavitem"><a href="news.html">News</a></li><li class="fluid mainnavitem"><a href="entertainment.html">Entertainment</a></li><li class="fluid mainnavitem"><a href="announcements.html">Announcements</a></li><li class="fluid mainnavitem hide_mobile"><a href="galleries.html">Galleries</a></li><li class="fluid mainnavitem hide_mobile"><a href="aboutcontact.html">About/Contact</a></li>  </ul> </nav>
        </header>
        <article id="indexguts" class="fluid">    <article id="indexarticle" class="fluid">
          <h4 class="fluid articleH4 zeroMargin_mobile">Latest News</h4>
          <p> </p>
         <div id="Accordion1">
            <h3><a href="#">Section 1</a></h3>
            <div>
              <p>Content 1</p>
              </div>
            <h3><a href="#">Section 2</a></h3>
            <div>
              <p>Content 2</p>
              </div>
            <h3><a href="#">Section 3</a></h3>
            <div>
              <p>Content 3</p>
              </div>
          </div>
        </article><article id="article1" class="fluid">
          <h4 class="fluid articleH4 zeroMargin_mobile">Latest Entertainment</h4>
          <p> </p>
          <div id="Accordion2">
            <h3><a href="#">Section 1</a></h3>
            <div>
              <p>Content 1</p>
              </div>
            <h3><a href="#">Section 2</a></h3>
            <div>
              <p>Content 2</p>
              </div>
            <h3><a href="#">Section 3</a></h3>
            <div>
              <p>Content 3</p>
              </div>
          </div>
        </article><article id="article2" class="fluid"><h4 class="fluid articleH4 zeroMargin_mobile">Latest Announcements</h4>
        <p> </p>
          <div id="Tabs1">
            <ul>
              <li><a href="#tabs-1">Obituaries</a></li>
              <li><a href="#tabs-2">Weddings</a></li>
              <li><a href="#tabs-3">More</a></li>
              </ul>
            <div id="tabs-1">
              <p>Content 1</p>
              </div>
            <div id="tabs-2">
              <p>Content 2</p>
              </div>
            <div id="tabs-3">
              <p>Content 3</p>
              </div>
        </div>
        </article><article id="indexbotleft" class="fluid">This is the content for Layout Article Tag "indexbotleft"</article><article id="article3" class="fluid">This is the content for Layout Article Tag "indexbotleft"</article></article><aside id="mainsidebar" class="fluid">This is the content for Layout Aside Tag "mainsidebar"</aside><aside id="mainsidebar2" class="fluid">This is the content for Layout Aside Tag "mainsidebar2"</aside><article id="indexbotrot" class="fluid">This is the content for Layout Article Tag "indexbotrot"</article>
        <footer id="footer" class="fluid">
        <nav id="footernav" class="fluid">
         <ul id="footernavlist" class="fluid fluidList"> <li class="fluid footernavlistitem zeroMargin_mobile"><a href="Index2.html">Home</a></li><li class="fluid footernavlistitem hide_mobile"><a href="news.html">News</a></li>
          <li class="fluid footernavlistitem hide_mobile"><a href="entertainment.html">Entertainment</a></li>
          <li class="fluid footernavlistitem hide_mobile"><a href="announcements.html">Announcements</a></li>
           <li class="fluid footernavlistitem zeroMargin_desktop zeroMargin_mobile"><a href="galleries.html">Galleries</a></li>
           <li class="fluid footernavlistitem zeroMargin_mobile"><a href="aboutcontact.html">About Us</a></li> 
            <li class="fluid footernavlistitem zeroMargin_mobile"><a href="mailto:[email protected]">Email</a></li> <li class="fluid footernavlistitem zeroMargin_mobile"><a href="www.facebook.com/insidejoplin" target="new">Facebook</a></li></ul> 
           </nav>
           <article id="footerarticle" class="fluid"><img src="Images/Logos/insidejoplinlogo.png"  alt=""/></article>
        </footer>
      </div>
    </div>
    +
    <script type="text/javascript">
    $(function() {
              $( "#Accordion1" ).accordion();
    $(function() {
              $( "#Accordion2" ).accordion();
    $(function() {
              $( "#Tabs1" ).tabs();
    </script>
    </body>
    </html>

    Well Jon, the code is very simple... it's generated by DW's form check... and, as i said, it happens with unfailing regularity the minute it's put in to a template generated child.
    This is what the code on the page looks like:
    <head>
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Title Here</title>
    <meta name="Keywords" content="some keywords here" />
    <meta name="Description" content="Description here" />
    <script type="text/javascript">
    function MM_validateForm() { //v4.0
      if (document.getElementById){
        var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
        for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
          if (val) { nm=val.name; if ((val=val.value)!="") {
            if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
              if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
            } else if (test!='R') { num = parseFloat(val);
              if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
              if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
                min=test.substring(8,p); max=test.substring(p+1);
                if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
          } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
        } if (errors) alert('The following error(s) occurred:\n'+errors);
        document.MM_returnValue = (errors == '');
    </script>
    <!-- InstanceEndEditable -->
    </head>
    And, whammo: "There is a syntax error on line xx. Code hinting may not work until you fix this error."
    And, the error always highlights the closing </script> line.
    The script itself is fine:
    1. If one puts it into an external js file, there's no problem
    2. If one puts it in the body section, there's no problem
    3. If one puts it in the template, there's no problem
    Also, if one removes the closing </script> tag, the error goes away
    The problem only happens in a child generated by a template and in the location I've illustrated. Apparently, this is a problem a lot of users are facing...

  • Data Source 0HR_PA_0 Syntax Error in the start routine while activating

    Hi All,
    I have migrated the Business content for the data source 0HR_PA_0
    While activating the transformation-2 there is errors like:
    Start Routine: Syntax error in routine
    Rule (target: 0HDCNT_LAST, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0AGE_KYF, group: 01 Standard Group): Syntax error in routine
    .................... etc
    I need help to resolve this issue.
    Thanks & Regards,
    Savitha

    Hello Jurgita,
    When Data Source was migrated the codes related to COMM_STRUCTURE was missing in the start routinue.
    Following codes (in bold) with regard to COMM_STRUCTURE added and then got activated
    4.     *--
    5.         COMM_STRUCTURE   type tys_sc_1__rule_25,
    6.         l_subrc          type sy-tabix,
    7.         l_abort          type sy-tabix,
    8.         ls_monitor       TYPE rsmonitor,
    9.         ls_monitor_recno TYPE rsmonitors.
    10.     
    11.       REFRESH:
    12.         MONITOR.
    13.     
    14.     * Runtime attributs
    15.         SOURCE_SYSTEM  = p_r_request->get_logsys( ).
    16.         move-corresponding SOURCE_FIELDS to COMM_STRUCTURE.
    17.     
    18.     *  Migrated update rule call
    19.       Perform routine_0011
    20.       using
    21.         COMM_STRUCTURE
    22.       CHANGING
    Regards,
    Savitha
    Edited by: Savitha  Ravi on Jun 19, 2009 6:34 AM

  • Error building the formula

    Hello,
    I need to figure out an error in building the below formula on my BSO cube outline (Essbase server V 9.3.1) (My local EAS version 11.1.2.2)
    Dimesion - TimeSpan
    Members -
    PER (no formula)
    YTD (no formula)
    MTD (Formula - given below)
    @CALCMODE (BLOCK);@CALCMODE (BOTTOMUP);
    IF (
         @ISMBR (@IDESCENDANTS ("ADB_Acc_NSign")) OR
         @ISMBR ("DayCount_YTD") OR
         @ISUDA ("Account", Acct_Gr_Cde_2) OR
         @ISUDA ("Account", Acct_Gr_Cde_4)
         AND NOT ( @ISMBR (@MATCH ("AccountingDate", "????-01*")) )
    IF (@CURLEV ("AccountingDate") == 0)
    IF( @TODATE("mm-dd-yyyy",@NAME(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR("AccountingDate")),5,10),@CONCATENATE("-",@SUBSTRING(@NAME(@CURRMBR("AccountingDate")),0,4))  ) )  ) >  @TODATE("mm-dd-yyyy",@SUBSTRING("09-01-2011",0,10))   )
    *"YTD" - @prior(@ANCEST("AccountingDate",-1,"YTD"),1,@levmbrs("AccountingDate",1));*
    ENDIF     
    IF (           @ISMBR (
              @MATCH ("AccountingDate", "????-01-31") ,           @MATCH ("AccountingDate", "????-03-31") ,
              @MATCH ("AccountingDate", "????-05-31") ,           @MATCH ("AccountingDate", "????-07-31") ,
              @MATCH ("AccountingDate", "????-08-31") ,           @MATCH ("AccountingDate", "????-10-31") ,
              @MATCH ("AccountingDate", "????-12-31") ,           @MATCH ("AccountingDate", "????-04-30") ,
              @MATCH ("AccountingDate", "????-06-30") ,           @MATCH ("AccountingDate", "????-09-30") ,
              @MATCH ("AccountingDate", "????-11-30") ,           @MATCH ("AccountingDate", "2007-02-28") ,
              @MATCH ("AccountingDate", "2008-02-29") ,          @MATCH ("AccountingDate", "2009-02-28") ,
              @MATCH ("AccountingDate", "2010-02-28") ,          @MATCH ("AccountingDate", "2011-02-28") ,
              @MATCH ("AccountingDate", "2012-02-29") ,          @MATCH ("AccountingDate", "2013-02-28")      )
              "YTD" - @prior(@ANCEST("AccountingDate",-1,"YTD"),1,@levmbrs("AccountingDate",1));
    ENDIF
    ELSE
         "YTD" ;
    ENDIF
    Error:
    [Wed Sep 12 11:16:52 2012]xxxx/Error(1200335)
    Error optimizing formula for [MTD] (line 1): invalid argument in function [@_TODATE]
    [Wed Sep 12 11:16:52 2012]xxxx/Error(1200002)
    Compilation failed
    [Wed Sep 12 11:16:52 2012]xxxx/Warning(1012121)
    Error encountered when loading member [MTD]'s calc string [@CALCMODE(BLOCK);@CALCMODE(BOTTOMUP); IF ( (@ISMBR(@IDESCENDANTS("ADB_Acc_NSign")) OR @ISMBR("DayCount_YTD"
    ) OR @ISUDA("Account", Acct_Gr_Cde_2) OR @ISUDA("Account", Acct_Gr_Cde_4) ) AND NOT (@ISMBR(@MATCH("AccountingDate", "????-01*")) ) ) IF (@CURLEV...], ignored
    When I write this formula directly in the outline, it gets verified and data retrieval is also correct (as expected). I am not able to understand why this formula is not getting built in the outline via mxl.
    The formula is seen in the outline after the build with commens as /* !!ERROR: FORMULA NOT LOADED!! */
    I have cheked that the file containing the formula contains \" for each member name (e.g. AccountingDate) and that each of the members referred in this formula from this/other dimension is present in the outline.
    *Sample Accounting Date level 0 member = 2012-01-01*
    *File:*
    "TimeSpan","MTD","","X","","","","","","","","","@CALCMODE(BLOCK);@CALCMODE(BOTTOMUP); IF ( (@ISMBR(@IDESCENDANTS(\"ADB_Acc_NSign\")) OR @ISMBR(\"DayCount_YTD\") OR @ISUDA(\"Account\", Acct_Gr_Cde_2) OR @ISUDA(\"Account\", Acct_Gr_Cde_4) ) AND NOT (@ISMBR(@MATCH(\"AccountingDate\", \"????-01*\")) ) ) IF (@CURLEV(\"AccountingDate\") == 0) IF(@TODATE(\"mm-dd-yyyy\",@name(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),5,10), @CONCATENATE(\"-\",@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,4)) ) ) ) > @TODATE(\"mm-dd-yyyy\",@SUBSTRING(\"2011-09-01\",0,10)) ) \"YTD\" - @prior(@ANCEST(\"AccountingDate\",-1,\"YTD\"),1,@levmbrs(\"AccountingDate\",1)); ENDIF IF (@ISMBR(@MATCH (\"AccountingDate\", \"????-01-31\") , @MATCH(\"AccountingDate\", \"????-03-31\") , @MATCH(\"AccountingDate\", \"????-05-31\") , @MATCH(\"AccountingDate\", \"????-07-31\"), @MATCH(\"AccountingDate\", \"????-08-31\") , @MATCH(\"AccountingDate\", \"????-10-31\") , @MATCH(\"AccountingDate\", \"????-12-31\") , @MATCH(\"AccountingDate\", \"????-04-30\") , @MATCH(\"AccountingDate\", \"????-06-30\") , @MATCH(\"AccountingDate\", \"????-09-30\") , @MATCH(\"AccountingDate\", \"????-11-30\") , @MATCH(\"AccountingDate\", \"2007-02-28\") , @MATCH(\"AccountingDate\", \"2008-02-29\") , @MATCH(\"AccountingDate\", \"2009-02-28\") , @MATCH(\"AccountingDate\", \"2010-02-28\") , @MATCH(\"AccountingDate\", \"2011-02-28\") ,@MATCH(\"AccountingDate\", \"2012-02-29\") , @MATCH(\"AccountingDate\", \"2013-02-28\") ) ) \"YTD\" - @prior(@ANCEST(\"AccountingDate\",-1,\"YTD\"),1,@levmbrs(\"AccountingDate\",1)); ENDIF ELSE \"YTD\" ; ENDIF"
    Please help.
    Edited by: VinS on Sep 12, 2012 10:52 AM

    Hello Cameron,
    I do not have any calc script associated with this BSO cube (I have a source ASO cube that supplies the data values to my BSO cube via transparent partiion.) My heart weeps to continue to use this formula, however, it's a working application and at this point in time, due to various project constaints, it's not possible to rewrite any pieces (If I could, I would change the design to go for an all out ASO to ASO design, but that's a separate discussion.)
    The original formula Before I made any changes:
    "@CALCMODE (BLOCK);@CALCMODE (BOTTOMUP);IF (( @ISMBR (@IDESCENDANTS (\"ADB_Acc_NSign\")) OR @ISMBR (\"DayCount_YTD\") OR @ISUDA (\"Account\", Acct_Gr_Cde_2) OR @ISUDA (\"Account\", Acct_Gr_Cde_4) ) AND NOT (@ISMBR (@MATCH (\"AccountingDate\", \"????-01*\"))) ) IF (@CURLEV (\"AccountingDate\") == 0) \"YTD\" - @prior(@ANCEST(\"AccountingDate\",-1,\"YTD\"),1,@levmbrs(\"AccountingDate\",1)); ELSE IF (@CURLEV (\"AccountingDate\") == 1) \"YTD\" - @prior(\"YTD\"->@CURRMBR(\"AccountingDate\"),1,@levmbrs(\"AccountingDate\",1)); ELSE IF ( @ISMBR (@MATCH (@CURRMBR(\"AccountingDate\"),\"????-Q1\"))) \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"02\")); ELSE IF ( @ISMBR (@MATCH (@CURRMBR(\"AccountingDate\"),\"????-Q2\"),@MATCH (@CURRMBR(\"AccountingDate\"),\"????-H1\"))) \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"05\")) ; ELSE IF ( @ISMBR (@MATCH (@CURRMBR(\"AccountingDate\"),\"????-Q3\"))) \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"08\")); ELSE \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"11\")); ENDIF ENDIF ENDIF ENDIF ENDIF ELSE \"YTD\" ;ENDIF"
    This formula gets built correctly in the outline through existing build process
    The new formula After I made my changes:
    "@CALCMODE(BLOCK);@CALCMODE(BOTTOMUP); IF ( (@ISMBR(@IDESCENDANTS(\"ADB_Acc_NSign\")) OR @ISMBR(\"DayCount_YTD\") OR @ISUDA(\"Account\", Acct_Gr_Cde_2) OR @ISUDA(\"Account\", Acct_Gr_Cde_4) ) AND NOT (@ISMBR(@MATCH(\"AccountingDate\", \"????-01*\")) ) ) IF (@CURLEV(\"AccountingDate\") == 0) IF(@TODATE(\"mm-dd-yyyy\",@name(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),5,10), @CONCATENATE(\"-\",@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,4)) ) ) ) > @TODATE(\"mm-dd-yyyy\",@SUBSTRING(\"2011-09-01\",0,10)) ) \"YTD\" - @prior(@ANCEST(\"AccountingDate\",-1,\"YTD\"),1,@levmbrs(\"AccountingDate\",1)); ENDIF IF (@ISMBR(@MATCH (\"AccountingDate\", \"????-01-31\") , @MATCH(\"AccountingDate\", \"????-03-31\") , @MATCH(\"AccountingDate\", \"????-05-31\") , @MATCH(\"AccountingDate\", \"????-07-31\"), @MATCH(\"AccountingDate\", \"????-08-31\") , @MATCH(\"AccountingDate\", \"????-10-31\") , @MATCH(\"AccountingDate\", \"????-12-31\") , @MATCH(\"AccountingDate\", \"????-04-30\") , @MATCH(\"AccountingDate\", \"????-06-30\") , @MATCH(\"AccountingDate\", \"????-09-30\") , @MATCH(\"AccountingDate\", \"????-11-30\") , @MATCH(\"AccountingDate\", \"2007-02-28\") , @MATCH(\"AccountingDate\", \"2008-02-29\") , @MATCH(\"AccountingDate\", \"2009-02-28\") , @MATCH(\"AccountingDate\", \"2010-02-28\") , @MATCH(\"AccountingDate\", \"2011-02-28\") ,@MATCH(\"AccountingDate\", \"2012-02-29\") , @MATCH(\"AccountingDate\", \"2013-02-28\") ) ) \"YTD\" - @prior(@ANCEST(\"AccountingDate\",-1,\"YTD\"),1,@levmbrs(\"AccountingDate\",1)); ENDIF ELSE IF (@CURLEV (\"AccountingDate\") == 1) \"YTD\" - @prior(\"YTD\"->@CURRMBR(\"AccountingDate\"),1,@levmbrs(\"AccountingDate\",1)); ELSE IF (@ISMBR(@MATCH(@CURRMBR(\"AccountingDate\"),\"????-Q1\"))) \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"02\")); ELSE IF (@ISMBR(@MATCH(@CURRMBR(\"AccountingDate\"),\"????-Q2\"),@MATCH(@CURRMBR(\"AccountingDate\"),\"????-H1\"))) \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"05\")) ; ELSE IF (@ISMBR(@MATCH(@CURRMBR(\"AccountingDate\"),\"????-Q3\"))) \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"08\")); ELSE \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"11\")); ENDIF ENDIF ENDIF ENDIF ENDIF ELSE \"YTD\" ; ENDIF"
    This formula does not get built correctly in the outline through existing build process and errors out as shown in original post
    When I copy and paste this new formula directly in the outline and restructure the outline, it verifies and saves the outline correctly and also gives correct data results. It's the build failure that I am unable to fathom out root cause for.
    My build process involves following simple MaxL commands:
    spool on to ./myapp.log;
    login user pwd on localhost;
    alter database xxxx.yyyy reset data; /* (this is not needed as the target bso does not store any data) */
    alter system unload application xxxx;
    alter system load application xxxx;
    import database xxxx.yyyy dimensions from local text data_file "'TimeSpan.txt'" using local rules_file "'myrule.rul'" suppress verification on error append to "'./build_myapp.err'";
    spool off;
    logout;
    Can you please look at the new formula and suggest any changes?
    Thank you so much in advance.
    P.S. : (Tim Faitsch had an opportunity to work on this formula before he left for better stuff to do !!)

  • Syntax error in the Interactive form methods

    Hi all,
    In one of the method of the interactive form i am using the below statement
    DATA:LS_ZDYN_TBL_FORM type WD_THIS->ELEMENT_ZDYN_TBL_FORM.
    When i use the above statement i am getting the following syntax error
    The type "WDCTX_ZDYN_TBL_FORM" is unknown.          
    Thanks in advance
    Ajay

    Try following thigs:
    1) Make sure that you have created node 'ZDYN_TBL_FORM' in the context
    2) try following code: WD_THIS=>ELEMENT_ZDYN_TBL_FORM.
    3) If you are writting this code in the method of a view, try following code:
      DATA: t_data TYPE if_<view_name>=>elements_ZDYN_TBL_FORM.
    Regards,
    Saket.

  • Syntax error setting the dgmgrl

    DB:11.2.0.1
    OS:Linux
    RAC:11.2.0.2
    Get the error below while trying to set it in the primary side.
    DGMGRL> edit database eioidp1_dal set property DbFileNameConvert = '+DB_ORCL_DAT0098','+DB_ORCL_DAT0099','+DB_ORCL_FRA0098','+DB_ORCL_FRA0099';
    edit database eioidp1_dal set property DbFileNameConvert = '+DB_ORCL_DAT0098','+DB_ORCL_DAT0099','+DB_ORCL_FRA0098','+DB_ORCL_FRA0099';
    ^
    Syntax error before or at ","

    Hi,
    DGMGRL> edit database eioidp1_dal set property 'LogFileNameConvert'='+DB_ORCL_DAT0098,+DB_ORCL_DAT0099,+DB_ORCL_FRA0098,+DB_ORCL_FRA0099';
    Property "LogFileNameConvert" updated
    DGMGRL> edit database eioidp1_dal set property 'DbFileNameConvert'='+DB_ORCL_DAT0098,+DB_ORCL_DAT0099,+DB_ORCL_FRA0098,+DB_ORCL_FRA0099';
    Property "DbFileNameConvert" updated
    DGMGRL> exit
    DGMGRL> show database verbose eioidp1_dal
    Database - eioidp1_dal
    Role: PRIMARY
    Intended State: TRANSPORT-ON
    Instance(s):
    eioidp11
    Warning: ORA-16714: the value of property DbFileNameConvert is inconsistent with the database setting
    Warning: ORA-16714: the value of property LogFileNameConvert is inconsistent with the database setting
    eioidp12
    Warning: ORA-16714: the value of property DbFileNameConvert is inconsistent with the database setting
    Warning: ORA-16714: the value of property LogFileNameConvert is inconsistent with the database setting

  • How to remove syntax error for the method which i deleted?

    Hi,
    I implemented a attribute NAME2 in BP_ADDR/AddressDuplicate , in that i implemented GET_P_NAME2 and later deleted attribute it self now i am getting the error "ZL_BP_ADDR_ADDRESSDUPLICA_CN02CP Method "GET_P_NAME2" does not exist. There is, however, a method with the similar name "GET_BP_NAME"
    how to remove this error?
    regards
    Vinay

    Hi Pankaj,
    I tried that it is giving dump
    The following syntax error occurred in program
    "ZL_BP_ADDR_ADDRESSDUPLICA_CN02CP " in include
    "ZL_BP_ADDR_ADDRESSDUPLICA_CN02CM01D " in
    line 1:
    "Method "GET_P_NAME2" does not exist. There is, however, a method with "
    "the similar name "GET_BP_NAME"."
    any clue how to solve this?
    Vinay

  • Syntax error in the program in the "SAP LZTEST"

    When executing Transaction Code VF01/VF02/VF03, it is not possible to create a billing document. it is showing the error like the above.
    "The data object "ZASD_MAINT" does not have a component called "TIME_Z0" "NE".
    Can you please help me in this issue ASAP.

    Hello Eechaneri,
    May some user exit or custom code is involved in here. Please get it checked by you developers. They would be able to help you out using debugging. ABAP dump analysis also wont be very helpful in this case unless you involve your developers here.
    Regards.
    Ruchit.

  • ALC-FUT-001-007: Syntax error in the regular expression *. from File Utilities - Find in ES2

    Has anyone encountered the above error when trying to use the Foundation - File Utilities service Find?
    This is occuring in ES2, and I have tried using an asterisk, as well as the exact file name I know exists.
    I have tried literals in the Process Properties, as well as passing it in via string variables.
    Any help is appreciated.
    Thanks
    Mark

    Thanks for your response.
    Here is what we have learned:
    We should not put the regular expression value in single quotes - eliminates the error.
    The problem is, the Find operation always returns an empty list no matter what criteria we enter - even C:\ with criteria = *.*
    ES 2 is running on a Windows 2003 machine.
    Thanks Again
    Mark

  • Syntax Error in the Filter

    Hi,
    I created filter and when verifying it, I got the Error: 1054012 Invalid syntax in filter line 1
    Thanks in advance
    Yours, UB
    Edited by: user640496 on Jan 5, 2011 4:22 AM

    Auugh! You're killing me. After I take your filter and break it apart...sigh, posters who answer their own question. :)
    Anyway, this works for me in 11.1.1.3:
    @REMOVE(@IDESCENDANTS("Time Periods"),@LIST(@IANCESTORS(@UDA("Time Periods", "UDA"), 2), @DESCENDANTS(@UDA("Time Periods", "UDA"))))FWIW, I don't know that I would name a UDA "UDA". That's really confusing, at least to me.
    Regards,
    Cameron Lackpour

Maybe you are looking for

  • Not able to see data in the qualifier table of the main tbl , Data Manager

    Hi, I have an issue of not able to see the data of two qualified table after populating them. It is in mdm-5.5 ps4. When populating data first time ,it shows up in those two table slots in the right side of the Data Manager. However subsequently it d

  • HT1449 iTunes library and Computer Library

    After I organize and delete my old iTunes media folder, can I delete my files on my computer that are not iTunes purchases? This would be to conserve space on my cmputer.

  • Help, How to view the error log of oracle Job

    Hi all, I created a job in my database, which clears the archivelog. After the job is executed, it occurs error.Such as : RMAN清理归档日志 1 问题 2010-3-19 下午03时11分00秒 GMT+08:00 PTDB 数据库实例 SYSTEM RMAN 脚本 How to view the error log of oracle Job? Thank you. Er

  • Help Powershell and Wsus Approve Updates By Computer Group

    I've found this script to ApproveUpdatesByComputerGroupt and it works, my problem is now, I only need to approve Classification Critical, because I will not approve service packs for OS / SQL, etc.  I'm using SCCM, but Failover Cluster should I use W

  • 8 and 24 hour calenders

    I have a project with multiple resources. Some are in different countries so I have both the Standard Calendar and also an additional Base calendar for a second country.  Resources for the foreign country are based on the additional calendar.<o:p></o