Numbers, Formel-Editor division creates syntax-error

Good morning everyone. Am sorry, but I face a problem in Numbers that is beyond my ability to grasp: Using Number ´08 Version 1.0.3 I created a rather vast Datasheet from A1 to BU368 The data in this sheet is derived from aprox fourty different sheets. The data is numeric.
Now I would like create the simple formula eg.: Q362/P362. Using the Formula-edtior and doing the up to now always working procedure: Open Formula-editor, clicking Q363 then adding a / then clicking P362 creates an "Syntax error"
If I do the same by manually writing: Q362/P362 into the formula-editor, it works. Until I have the idea to chage the format of the collum from "automatic" to "numbers" then the formula has a syntaxerror as well.
Now, what is the difference between the two formulas below? I can´t find any.
and:
The latter one works.
Please help me, I should have handed in this sheet by today and there is quite some money involved for me.
Warm greetings
William

William,
I don't have Numbers '08, so the version I have may behave differently, but I have a few observations that may be useful to you or another helper.
Your procedure does seem correct and should work.
The formula editor would be much easier to read if you turned off the preference to  “Use header cell names as references.”
The example with the syntax error does not highlight anything, so it isn't seeing any cell references (which it should if you entered them by clicking the cells). It is just trying to divide two strings.
There are single quotes and spaces in both the working and non-working examples that I don't see the reason for. Maybe it's a localization thing.
Since you are on a deadline, wouldn't it work to copy the working formula and paste it into the cell with the non-working one?
Jeff

Similar Messages

  • DreamWeaver CS4-CS5 Creates Syntax Errors

    I cannot seem to find any info on this online but my DreamWeaver CS4 and a trial of DreamWeaver CS5 both create PHP and SQL queries that are loaded with syntax errors. I use XAMPP on my computer as I have done for years, and it works fine with phpMyAdmin and Komodo Edit. DreamWeaver has been a nifty app to quickly knock out simple applications in that past, but now I spend too much time manually correcting syntax errors in PHP page queries.
    Has anyone there heard of a fix for this? Several other web developers have told me that they entirely abandoned DW CS* series and moved on to other IDE's rather than try to fix the problem.
    EXAMPLE:
    Here is what it wrote:
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE `mysite` SET about-yn=%s, about-h1=%s, about-p1=%s, about-p2=%s, about-p2-img=%s, about-p3=%s, about-p3-img=%s, about-p4=%s, about-p4-img=%s WHERE siteID=%s",
                           GetSQLValueString($_POST['aboutyn'], "text"),
                           GetSQLValueString($_POST['abouth1'], "text"),
                           GetSQLValueString($_POST['aboutp1'], "text"),
                           GetSQLValueString($_POST['aboutp2'], "text"),
                           GetSQLValueString($_POST['aboutp2img'], "int"),
                           GetSQLValueString($_POST['aboutp3'], "text"),
                           GetSQLValueString($_POST['aboutp3img'], "int"),
                           GetSQLValueString($_POST['aboutp4'], "text"),
                           GetSQLValueString($_POST['aboutp4img'], "int"),
                           GetSQLValueString($_POST['siteID'], "int"));
    Here is what it should have written:
    f ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
       $updateSQL = sprintf("UPDATE `mysite` SET  `about-yn`=\"%s\", `about-h1`=\"%s\", `about-p1`=\"%s\", `about-p2`=\"%s\", `about-p2-img`=\"%s\",  `about-p3`=\"%s\", `about-p3-img`=\"%s\", `about-p4`=\"%s\", `about-p4-img`=\"%s\" WHERE  `siteID`=\"%s\"",
                            GetSQLValueString($_POST['aboutyn'], "text"),
                            GetSQLValueString($_POST['abouth1'], "text"),
                            GetSQLValueString($_POST['aboutp1'], "text"),
                            GetSQLValueString($_POST['aboutp2'], "text"),
                            GetSQLValueString($_POST['aboutp2img'], "int"),
                            GetSQLValueString($_POST['aboutp3'], "text"),
                            GetSQLValueString($_POST['aboutp3img'], "int"),
                            GetSQLValueString($_POST['aboutp4'], "text"),
                            GetSQLValueString($_POST['aboutp4img'], "int"),
                            GetSQLValueString($_POST['siteID'], "int"));
    [email protected]

    Dreamweaver will not produce such a mess when using column names which comply with the MySQL Naming Conventions and don´t contain (often quite problematic) hyphen characters.
    That said, you´ll be on the safe side when renaming your columns by using underscores instead, example:
    about_p3_img
    Several other web developers have told me that they entirely abandoned DW CS* series and moved on to other IDE's rather than try to fix the problem.
    Dreamweaver is certainly not a "perfect" PHP development IDE, but other IDEs (I use Komodo or Aptana at times and like them a lot...) aren´t perfect either. This may seem strange, but IMO Dreamweaver did do the - sort of - right thing by not letting the user get away with using such problematic characters, and that´s what those other IDEs I work with regretfully don´t pay attention to.

  • PreparedStatment creating Syntax Error.

    The poblem is in the first prepared statment if I enter the value straight into the statement string everying works fine. However, when I use a ? for placeholder and then supply the same sting value i would have entered in the statement string I get a sytax error.
    import java.sql.*; import javax.swing.*; import java.awt.BorderLayout; import java.awt.event.*; public class Exercise34_5 extends JFrame { private JTextField jtfInput = new JTextField(10); private JButton jbShowTable = new JButton("Show Table"); private JTextArea jta = new JTextArea(); private PreparedStatement pstmt1; private PreparedStatement pstmt2; private PreparedStatement pstmt3; public Exercise34_5() { JPanel northPanel = new JPanel(); northPanel.add(new JLabel("Table Name")); northPanel.add(jtfInput); northPanel.add(jbShowTable); add(northPanel, BorderLayout.NORTH); add(new JScrollPane(jta)); try { Class.forName("com.mysql.jdbc.Driver"); Connection connection = DriverManager.getConnection("jdbc:mysql://localhost/test" , "root", "root"); pstmt1 = connection.prepareStatement("describe ?"); pstmt2 = connection.prepareStatement("select count(*) from enrollment"); pstmt3 = connection.prepareStatement("select * from enrollment"); }catch(Exception ex) { ex.printStackTrace(); } jbShowTable.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String table = jtfInput.getText(); try{ pstmt1.setString(1, "enrollment"); /*pstmt2.setString(1, "enrollment"); pstmt3.setString(1, "enrollment");*/ ResultSet rset1 = pstmt1.executeQuery(); ResultSet rset3 = pstmt3.executeQuery(); int count = 0; while(rset1.next()) { jta.append(rset1.getString(1) + "\t"); count++; } jta.append("\n"); System.out.println(count); while(rset3.next()) { for(int i = 1; i <= count; i++) { jta.append(rset3.getString(i) + "\t"); } jta.append("\n"); } }catch(Exception ex) { ex.printStackTrace(); } } }); } public static void main(String[] args) { Exercise34_5 frame = new Exercise34_5(); frame.setSize(400, 200); frame.setLocationRelativeTo(null); frame.setDefaultCloseOperation(EXIT_ON_CLOSE); frame.setVisible(true); } }
    java.sql.SQLException: Syntax error or access violation message from server: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''enrollment'' at line 1"
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1997)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1167)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1278)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:2251)
    at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1586)
    at Exercise34_5$1.actionPerformed(Exercise34_5.java:47)

    Alyosha wrote:
    I don't understand.You can't just put a ? parameter any old place in a prepared statement. It's just just a simple string substitution. For instance, you cannot use a ? parameter for a table name or a column name.
    // wrong
    ps = conn.prepareStatement("select * from ? where ? = ?");
    ps.setString(1, tableName);
    ps.setString(2, columnName);
    ps.setString(3, columnValue);
    // right
    ps = conn.prepareStatement("select * from " + tableName = " where " + columnName + " = ?");
    ps.setString(1, columnValue);

  • Help! RDBMSCodeGenerator creates syntax errors!

    We have recompiled our Weblogic 8.1 product on Weblogic 9.2, and while re-deploying
    our EJBs one of our CMP beans curiously and unusually failed to deploy. The failure to deploy
    stems from syntax errors generated by RDBMSCodeGenerator!
    When we turn off use-select-for-update, the offending code is no longer
    generated and the EJB deploys, but we need and depend on this feature being enabled, so simply
    leaving this off is not a viable solution.
    Here's the header, so you know I'm not hallucinating.
    * This code was automatically generated at 10:43:37 AM on May 30, 2007
    * by weblogic.ejb.container.cmp.rdbms.codegen.RDBMSCodeGenerator -- do not edit.
    * @version WebLogic Server 9.2 MP1  Sun Jan 7 00:56:31 EST 2007 883308
    * @author Copyright (c) 2007 by BEA Systems, Inc. All Rights Reserved.
    */The offending code occurs in nine separate methods, all in the same line of code: an if statement.
    The if statement has two opening parentheses, and three closing parentheses!!
    if (!__WL_pkMap.containsKey(__WL_pk))) {(One such broken method is at the bottom of this post.)
    The seventh instance of this syntax error contains a second syntax error. It appears
    that the code generator corrupted the variable name as well:
    if (!WL_pkMap.containsKey(__WL_pk))) {(The two underscores at the beginning of the variable are missing.)
    Now, when use-select-for-update is removed, the compiler generates a slightly different if clause,
    but with no syntax errors. The __WL_pkMap variable is also written correctly.
    Has anyone encountered this? Can anyone surmise what might be going on??
    I think this might need to be posted as a bug. What do you think?
    Torin...
    Attached: One offending method (of nine) with the error highlighted and underscored is (about two-thirds of the way down):
    public java.util.Collection ejbFindByReturnValue(java.lang.String param0) throws javax.ejb.FinderException
        if(__WL_debugLogger.isDebugEnabled()) {
          __WL_debug("called findByReturnValue");
        java.sql.Connection __WL_con = null;
        java.sql.PreparedStatement __WL_stmt = null;
        java.sql.ResultSet __WL_rs = null;
        int __WL_offset = 0;
        __WL_pm.flushModifiedBeans();
        int updateLockType = __WL_pm.getUpdateLockType();
        java.lang.String __WL_query = null;
        switch(updateLockType) {
          case DDConstants.UPDATE_LOCK_AS_GENERATED:
          __WL_query = "SELECT  WL0.JOB_ID, WL0.COMPONENT_ID, WL0.HOSTNAME, WL0.LAST_EVENT, WL0.MESSAGE, WL0.PARAMETER, WL0.PARENT_JOB_ID, WL0.PID, WL0.PROGRESS, WL0.RETURN_VALUE, WL0.STATUS  FROM JOB_QUEUE WL0 WHERE ( WL0.RETURN_VALUE = ? ) FOR UPDATE ";
          break;
          case DDConstants.UPDATE_LOCK_TX_LEVEL:
          __WL_query = "SELECT  WL0.JOB_ID, WL0.COMPONENT_ID, WL0.HOSTNAME, WL0.LAST_EVENT, WL0.MESSAGE, WL0.PARAMETER, WL0.PARENT_JOB_ID, WL0.PID, WL0.PROGRESS, WL0.RETURN_VALUE, WL0.STATUS  FROM JOB_QUEUE WL0 WHERE ( WL0.RETURN_VALUE = ? ) FOR UPDATE ";
          break;
          case DDConstants.UPDATE_LOCK_TX_LEVEL_NO_WAIT:
          __WL_query = "SELECT  WL0.JOB_ID, WL0.COMPONENT_ID, WL0.HOSTNAME, WL0.LAST_EVENT, WL0.MESSAGE, WL0.PARAMETER, WL0.PARENT_JOB_ID, WL0.PID, WL0.PROGRESS, WL0.RETURN_VALUE, WL0.STATUS  FROM JOB_QUEUE WL0 WHERE ( WL0.RETURN_VALUE = ? ) FOR UPDATE NOWAIT ";
          break;
          case DDConstants.UPDATE_LOCK_NONE:
          __WL_query = "SELECT DISTINCT WL0.JOB_ID, WL0.COMPONENT_ID, WL0.HOSTNAME, WL0.LAST_EVENT, WL0.MESSAGE, WL0.PARAMETER, WL0.PARENT_JOB_ID, WL0.PID, WL0.PROGRESS, WL0.RETURN_VALUE, WL0.STATUS  FROM JOB_QUEUE WL0 WHERE ( WL0.RETURN_VALUE = ? )";
          break;
          default:
          throw new AssertionError(
          "Unknown update lock type: '"+updateLockType+"'");
        if(__WL_debugLogger.isDebugEnabled()) {
          __WL_debug("Finder produced statement string " + __WL_query);
        try {
          __WL_con = __WL_pm.getConnection();
        catch (java.lang.Exception e) {
          __WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
          throw new javax.ejb.FinderException("Couldn't get connection: " + EOL +
          e.toString() + EOL +
          RDBMSUtils.throwable2StackTrace(e));
        try {
          __WL_stmt = __WL_con.prepareStatement(__WL_query);
          // preparedStatementParamIndex reset.
          if (param0 == null) {
            __WL_stmt.setNull(1,java.sql.Types.VARCHAR);
          } else {
            __WL_stmt.setString(1, param0);
            if (__WL_debugLogger.isDebugEnabled()) {
              __WL_debug("paramIdx :"+1+" binded with value :"+param0);
          __WL_rs = __WL_stmt.executeQuery();
        catch (java.lang.Exception e) {
          __WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
          throw new javax.ejb.FinderException(
          "Exception in findByReturnValue while preparing or executing " +
          "query: '" +
          __WL_query + "': " + EOL +
          "statement: '" + __WL_stmt + "'" + EOL +
          e.toString() + EOL +
          RDBMSUtils.throwable2StackTrace(e));
        try {
          java.util.Collection __WL_collection = new java.util.ArrayList();
          com.quickplay.mmp.ingestionservices.ejb.JobQueue_r6lr5u__WebLogic_CMP_RDBMS __WL_bean = null;
          Object __WL_eo = null;
          Object __WL_eo_rc = null;
          Map __WL_pkMap = new HashMap();
          while (__WL_rs.next()) {
            Integer __WL_offsetIntObj = new Integer(0);
            Object __WL_pk = __WL_getPKFromRS(__WL_rs, __WL_offsetIntObj, __WL_classLoader);
            __WL_eo = null;
            if (__WL_pk != null) {
              if (!__WL_pkMap.containsKey(__WL_pk))) {
                RSInfo __WL_rsInfo = new RSInfoImpl(__WL_rs, 0, 0, __WL_pk);
                __WL_bean = (com.quickplay.mmp.ingestionservices.ejb.JobQueue_r6lr5u__WebLogic_CMP_RDBMS)__WL_pm.getBeanFromRS(__WL_pk, __WL_rsInfo);
                __WL_eo = __WL_pm.finderGetEoFromBeanOrPk(__WL_bean, __WL_pk, __WL_getIsLocal());
                if (__WL_debugLogger.isDebugEnabled()) __WL_debug("bean after finder load: " + ((__WL_bean == null) ? "null" : __WL_bean.hashCode()));
                if( __WL_bean == null || ( __WL_bean != null && !__WL_bean.__WL_getIsRemoved()))
                  __WL_collection.add(__WL_eo);
                Object __WL_retVal = __WL_pkMap.put(__WL_pk, __WL_bean);
            } else {
              if (__WL_pm.isFindersReturnNulls()) {
                __WL_collection.add(null);
          return __WL_collection;
        } catch (java.sql.SQLException sqle) {
          throw new javax.ejb.FinderException(
          "Exception in 'findByReturnValue' while using " +
          "result set: '" + __WL_rs + "'" + EOL +
          sqle.toString() + EOL +
          RDBMSUtils.throwable2StackTrace(sqle));
        } catch (java.lang.Exception e) {
          throw new javax.ejb.FinderException(
          "Exception executing finder 'findByReturnValue': " + EOL +
          e.toString() + EOL +
          RDBMSUtils.throwable2StackTrace(e));
        } finally {
          __WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
      }

    Dreamweaver will not produce such a mess when using column names which comply with the MySQL Naming Conventions and don´t contain (often quite problematic) hyphen characters.
    That said, you´ll be on the safe side when renaming your columns by using underscores instead, example:
    about_p3_img
    Several other web developers have told me that they entirely abandoned DW CS* series and moved on to other IDE's rather than try to fix the problem.
    Dreamweaver is certainly not a "perfect" PHP development IDE, but other IDEs (I use Komodo or Aptana at times and like them a lot...) aren´t perfect either. This may seem strange, but IMO Dreamweaver did do the - sort of - right thing by not letting the user get away with using such problematic characters, and that´s what those other IDEs I work with regretfully don´t pay attention to.

  • Certain characters create SQL Syntax error?

    I am trying to insert a string into a database that is written in a JTextArea, however if the string contains certain characters it causes a syntax error. Can anyone tell me what characters will create syntax errors? I assume a single quote will but what other characters should I be aware of? Is there anything I can do so I can keep the characters without getting syntax errors. I saw something called Regex that may help but I am unsure exactly how to use it and if it is the appropriate action. Any help would be appreciated. Thank you in advance.

    Thanks for all the feedback. I have tried implementing a preparedstatement as follows:
    String insertNew = "INSERT INTO MyMovies VALUES (?,?,?,?,?,?,?)";
                                PreparedStatement preStatement = databaseConnection.prepareStatement(insertNew);
                                preStatement.setString(1,addTitle);
                                preStatement.setString(2,addDescr);
                                preStatement.setInt(3,year);                       
                                preStatement.setString(4,addGenre);
                                preStatement.setString(5,addRating);
                                preStatement.setDouble(6,stars2);
                                preStatement.setInt(7,runtime);
                                preStatement.executeUpdate();
                                preStatement.close();But I get the error -- Number of query values and destination fields are not the same.
    It sure looks like there the same. Am I missing something? I have looked over some material containing prepared statements and I seem to be doing what has been shown as examples.

  • Execute SQL Task Editor: The query failed to parse. Syntax error, permission violation, or other nonspecific error.

    Environment: SQL Server 2008 R2
    Code:
    CREATE TABLE dbo.PkgAudit
    PkgAuditID INT IDENTITY(1, 1),
    PackageName VARCHAR(100),
    LoadTime DATETIME ,
    NumberofRecords VARCHAR(50),
    Status1 VARCHAR(50),
    Status2 VARCHAR(50),
    The following code is inserted in the SQL Task Execute Editor
    INSERT INTO dbo.PkgAudit(PackageName
    ,LoadTime
    ,NumberofRecords
    ,Status1
    ,Status2
    ) VALUES(?,?,?,?,?)
    Screen Shot (Parameter Mapping):
    Problem: an error Message occurred when I hit Parse Query Button in the Execute SQL Task Editor, "Execute SQL: Task Editor: The query failed to parse. Syntax error, permission violation, or other nonspecific error". How I could Solve this
    problem  

    Different connection providers require different Parameter syntax. E.g. ADO @ParameterName notatoin, not just an offset of 0,1 etc.
    Arthur My Blog

  • Syntax error in Numbers.

    I try typing in this "=4,67+log(A2/(24,63-A2))" and get a syntax error.

    Update.
    Which LOG function do you mean? From the Function Button in Numbers:
    Choose Show Function Browser.
    The LOG function returns the logarithm of a number using a specified base.
    LOG(pos-num, base)
    pos-num:  A positive number. pos-num is a number value and must be greater than 0.
    base:  An optional value specifying the base of the logarithm. base is a number value and must be greater than 0. If base is 1, a division by zero will result and the function will return an error. If base is omitted, it is assumed to be 10.
    The LOG10 function returns the base-10 logarithm of a number.
    LOG10(pos-num)
    pos-num:  A positive number. pos-num is a number value and must be greater than 0.
    The LN function returns the natural logarithm of a number, the power to which e must be raised to result in the number.
    LN(pos-num)
    pos-num:  A positive number. pos-num is a number value and must be greater than 0.
    From the Help Menu in Numbers, download the Numbers User Guide and the Formulas and Functions User Guide.
    Regards,
    Ian.

  • I am using iWeb '08 2.0.4 to create a web page...since I will not be able to publish to Mobileme I am trying to publish to another server...I keep getting this error message " Parse error: syntax error, unexpected T_STRING"  I have no idea what to do????

    I am using iWeb '08 2.0.4 to create a web page...since I will not be able to publish to Mobileme I am trying to publish to another server...I keep getting this error message " Parse error: syntax error, unexpected T_STRING"  I have no idea what to do???? Any Suggestions?

    This is to do with the .htaccess file on your server.
    You either need to deal with this and open it with an html editor or change your web host.
    Do a search of this forum and there are plenty of posts that relate to parse error and .htaccess pages.  Have a look on the right hand side of this post and you will see similar ones like yours.

  • Syntax error while creating a standard order

    Hi All,
    I created a projet in CMOD and than added the enhancement  V45A0002.The components shown as EXIT_SAPMV45A_002(Predefined sold to party when making the standard order),i double click on the exit and entered into the function module.After that i double clicked on the include ZXVVZU04 and entered in and wrote E_KUNNR=100171
    While activating i got error msg 'The last statement is not complete (period missing)." & i have saved inspite the error .After that i tried to create a order and program terminated error came after entering sold to party no. in sales order
    so now i have deactivated the project which i created in CMOD & deleted it aswell,than also i am getting the syntax error while making the order thru VA01.I want to come out of this please.
    I would be great ful if somebody helps me *** out of this syntax error.
    Thanks
    Rishi

    Hi Rishi
    As you are getting message that "The last statement is not complete (period missing)", check in your assigned project in CMOD the last statement , what is the last statement maintained in that project
    Secondly also check the closing period and the current period. as it is giving in the message that "The last statement is not complete (period missing)".So check the  current period and check the period maintained in the CMOD
    It would be better if you take ABAP'ers help . So  post in ABAP forum
    Regards
    Srinath

  • SYntax error while creating a formula for %

    Hi All,
    I have to calculate Growth percentage and creating formula.  But its giving me a syntax error.
    I am writing like this:-
    (Month to Date Sales-MTD PRior Year Sales)/ MTD PRior Year Sales*100 %
    Can anyone please tell me where I am making a mistake.
    Regards

    Syntex for Percentage Deviation (%)
    Plan Sales % Actual Sales (this will give the percentage deviation between Planned Sales and Actual Sales)
    this is identical to formula
    100 * (Planned Sales - Actual Sales) / (Actual Sales)
    please check the space in your foumula
    Dev

  • Syntax error while creating Calculation view script based

    Hi Folks,
    I'm creating Calc view based on script and drafted a simple code but I'm getting syntax error.
    Its just fetching few coloumns from two tables products and purchaseorderitem.
    /********* Begin Procedure Script ************/
    BEGIN
      var_out = select productid , category, nameid, currency, grossamount, quantity
      FROM sap.hana.democontent.epm.data.products AS P , sap.hana.democontent.epm.data.purchaseorderitem AS B
      where P.productid = B.productid;
    END /********* End Procedure Script ************/
    Could you pls take a look and let me know what wrong I'm doing?
    Error logs are:-
    sap.hana..package.project.folder.mytest.CALCSCRIPTVIEWInternal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: incorrect syntax near "democontent": line 5 col 18 (at pos 439)nSet Schema DDL statement: set schema "SYSTEM"nType DDL: create type "_SYS_BIC"."sap.hana..package.project.folder.mytest/CALCSCRIPTVIEW/proc/tabletype/VAR_OUT" as table ("PRODUCTID" NVARCHAR(10), "CATEGORY" NVARCHAR(2), "NAMEID" NVARCHAR(10), "CURRENCY" NVARCHAR(5), "GROSSAMOUNT" DECIMAL(15,2), "QUANITYT" DECIMAL(13,3))nProcedure DDL: create procedure "_SYS_BIC"."sap.hana.package.project.folder.mytest/CALCSCRIPTVIEW/proc" ( OUT var_out "_SYS_BIC"."sap.hana.package.project.folder.mytest/CALCSCRIPTVIEW/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as n /********* Begin Procedure Script ************/ n BEGIN n t var_out = select productid , category, nameid, currency, grossamount, quantityn t FROM sap.hana.democontent.epm.data.products AS P , sap.hana.democontent.epm.data.purchaseorderitem AS Bn t where P.productid = B.productid;nnEND /********* End Procedure Script ************/n

    Hi Rubane,
    I don't have EPM installed here but based on this Table User Defined Functions( Table UDF ) in HANA  you are not properly defining the source table.
    In your case missing 1) schema of EPM, 2) not using double quotes, 3) separation of package and view, 4) missing camel case on purchaseOrderItem:
    FROM sap.hana.democontent.epm.data.products AS P , sap.hana.democontent.epm.data.purchaseorderitem AS B
    On blog:
    from "SAP_HANA_EPM_DEMO"."sap.hana.democontent.epm.data::businessPartner" as a
    SAP_HANA_EPM_DEMO is the schema
    sap.hana.democontent.epm.data is the package
    businessPartner is the view
    Start simple... before the seletion try it out on Studio SQL.
    Regards, Fernando Da Rós

  • Getting a syntax error while creating the simple OData service.

    Hi Folks,
    That is what I typed in a in .xsodata file but it is giving me a syntax error..any idea why this can be?
    Thank you for your help.
    service namespace "sap.hana.test.service"
    { "SYS" , "AFL_AREAS_" as "TEST";

    Hi,
    I tried creating the same. I was able to activate all three files i.e. .xsapp,.xsaccess,*.xsodata. The three file contents are mentioned below. The data might not be displayed in the browser due to privileges issue as it is SYS table.
    .xsapp contains
    .xsaccess contains
      "exposed" : true
    *.xsodata contains
    service
    "SYS"."AFL_AREAS_" as "mytable";

  • Syntax error when creating a user-defined table type in SQL Server 2012

    Why am I getting a syntax error when creating a user-defined table type in SQL Server 2014?
    CREATE TYPE ReportsTableType AS TABLE 
    ( reportId INT
    , questionId INT
    , questionOrder INT );
    Results:
    Msg 156, Level 15, State 1, Line 1
    Incorrect syntax near the keyword 'AS'.

    Hope these posts could help, 
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/37a45a9a-ed8c-4655-be93-f6e6d5ef44be/getting-incorrect-syntax-while-creating-a-table-type-in-sql-server-2008-r2?forum=transactsql
    Regards, Dineshkumar,
    Please Mark as Answer if my post answers your question and
    Vote as Helpful if it helps you

  • Syntax error while creating tax codes for sales n purchases

    Hi all,
    While creating the tax codes for sales and purchases, i got the below error:
    Report RB13A003 has a syntax error.
    What should be done?
    Thank you

    Hi,
    I believe, it's RV13A003 report and not RB13A003... What is the exact error message (or is it a dump)?
    Regards,
    Eli

  • Syntax error in Logical database created by copying standard PGQ

    Hi guys.
    I created a logical database ZMPQ_PGQ using the copy option from SE36 with the input PGQ (logical database used by QA33).
    But it showing some syntax error Field "PGQ_SP" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
    How to resolve this?
    Thanks in advance.

    When checking the syntax of the LDB source code, go to the location of the syntax error (in include DBZMPQ_PGQSXXX), and change all internal table references of PGQ_SP to ZMPQ_PGQ_SP.

Maybe you are looking for

  • How do i get more memory for my macbook pro?

    I've been getting messages that my start up disk is almost full.  What should I do?

  • How can I get my old apple id?

    I need to find my old Apple ID because I need to change some things. How do I find it? Thanks!

  • Force file download

    I am trying to create a page with downloadable pdf documents. The link should open a download dialog box to prompt the user to save or open the file, notjust open the file in the browser. I am using the code below which seems to work, except the file

  • UWL Workitem attachments

    Hi,     When we click the attachments in UWL workitem for leave or travel, the link opens in a SAP GUI for HTML screen. Can we change this to display in a webdynpro screen? Can you please provide any link to documentation in this regard. Thanks, Anan

  • Bt Home Hub 5 new update 4.7.5.1.83.8.204

    Hi i just noticed my home hub 5 was upgraded to version 4.7.5.1.83.8.204. i noticed the speeds went up a bit and wifi fixed a bit. i also noticed the icons changed in the home network. but one major thing is ipv 6 was enabled on the home hub 5 but gl