Error in activating Sqlscript Calculation view - Data type mismatch

Hi All,
I am trying to create a Calculation view using sql script. When I try to activate the calculation view I get the below error., Could you please help.
Error
Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: transaction rolled back by an internal error: column store error: [34011] failed to save calculation scenario : The following errors occured: Inconsistent calculation model (34011)nDetails (Errors):n- CalculationNode (_ELECTION_ANALYTICAL_VIEW) -> attributes -> attribute (VOTE):
Datatype int of VOTE does not match to datatype fixed18.0(9) in datasource.
nnnSet Schema DDL statement: set schema "_SYS_BIC"nType DDL: create type "_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_SQL_CA/proc/tabletype/VAR_OUT" as table ("VOTE" INTEGER, "NAME_1" VARCHAR(250), "NAME_4" VARCHAR(250))nProcedure DDL: create procedure "_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_SQL_CA/proc" ( OUT var_out "_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_SQL_CA/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as  n /********* Begin Procedure Script ************/ n BEGIN n n election_analytical_view = CE_OLAP_VIEW("_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_RESULTS_ANA",[VOTE,NAME,NAME_1,NAME_3,NAME_4]);n n var_out = CE_PROJECTION(:election_analytical_view,[VOTE,NAME_1,NAME_4]);nnnnEND /********* End Procedure Script ************/n
SQL Script
/********* Begin Procedure Script ************/
BEGIN
election_analytical_view = CE_OLAP_VIEW("_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_RESULTS_ANA",[VOTE,NAME,NAME_1,NAME_3,NAME_4]);
var_out = CE_PROJECTION(:election_analytical_view,[VOTE,NAME_1,NAME_4]);
END /********* End Procedure Script ************/

Hi Logesh,
You have to use at least one aggregation while using CE_OLAP_VIEW. You can not use the same with out aggregation of at least on of the available measures .
page 96 of SQL Script reference says
Note you must have at least one <aggregation_exp> in the attributes.
where
<aggregate_exp> ::= <aggregate_func>(<aggregate_column> [AS <column_alias>])
Specifies the required aggregation expression for the key figure.
<aggregate_func> ::= COUNT | SUM | MIN | MAX
Specifies the aggregation function to use. Supported aggregation functions are:
●count("column")
●sum("column")
●min("column")
●max("column")
Sreehari

Similar Messages

  • SAP HANA: Error while activating Graphical Calculation Views

    Hello,
    I am receiving the below error while activating a Graphical Calculation View.
    I am getting this error lately. Not sure what is causing this because the calculation views worked just fine before.
    It is failing at the Repository Activation step with the Activation ID 2146.
    It says - Repository: Revalidation failed for at least one object.
    MDXRuntime: Internal deployment of object failed: Internal Error:Create Scenario: failed aCalcEngine.createScenario(): The following errors occured: Could not create repository entry for scenario (34053)nnprinting XML <?xml version="1.0" encoding="UTF-8" standalone="no"?><cubeSchema defaultLanguage="EN" defaultSchema="_SYS_BIC" operation="createCalculationScenario" version="3"><calculationScenario name="sflight/GC_AGENCY_REVENUE" schema="_SYS_BIC"><dataSources><tableDataSource name="SBOOK" schema="SFLIGHT" table="SBOOK"><attributes><allAttribute /></attributes></tableDataSource><tableDataSource name="STRAVELAG" schema="SFLIGHT" table="STRAVELAG"><attributes><allAttribute /></attributes></tableDataSource></dataSources><calculationViews><join name="Join_1" type="inner"><viewAttributes><viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="MANDT" /><viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="AGENCYNUM" /><viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="FORCURAM" /><viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="LOCCURAM" /><viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="NAME" /></viewAttributes><inputs><input name="SBOOK"><mapping source="MANDT" target="MANDT"/><mapping source="AGENCYNUM" target="AGENCYNUM"/><mapping source="FORCURAM" target="FORCURAM"/><mapping source="LOCCURAM" target="LOCCURAM"/></input><input name="STRAVELAG"><mapping source="MANDT" target="MANDT"/><mapping source="AGENCYNUM" target="AGENCYNUM"/><mapping source="NAME" target="NAME"/></input></inputs><joinAttributes><joinAttribute excludeFlag="false" name="MANDT" /><joinAttribute excludeFlag="false" name="AGENCYNUM" /></joinAttributes></join><aggregation name="finalAggregation" defaultViewFlag="true"><inputs><input name="Join_1"><mapping source="NAME" target="NAME"/><mapping source="AGENCYNUM" target="AGENCYNUM"/><mapping source="MANDT" target="MANDT"/><mapping source="LOCCURAM" target="LOCCURAM"/><mapping source="FORCURAM" target="FORCURAM"/></input></inputs><viewAttributes><viewAttribute name="NAME"/><viewAttribute name="AGENCYNUM"/><viewAttribute name="MANDT"/></viewAttributes><keyfigures><keyfigure name="LOCCURAM" aggregationType="sum"/><keyfigure name="FORCURAM" aggregationType="sum"/><keyfigure name="row.count" datatype="int" isVisible="false" aggregationType="count"/></keyfigures><calculationNodeHints countStarAttribute="row.count"/></aggregation></calculationViews></calculationScenario></cubeSchema>nVersion: 33n
    I am using the SFLIGHT schema which is provided by SAP.
    Any pointer is appreciated.

    Hi Murali
    I met the exactly same issue when I try to activate a graphical calculation views.
    I created a new user in HANA db,  then create a simple graphical calculation view(just from one table from this user). It doesn't work. All attribute views work fine. There's no related column view under _sys_bic.
    HANA database version is 1.00.31 runs on HP DL580 512GB. And here's the error message -
    "MDXRuntime: Internal deployment of object failed: Internal Error:Create Scenario: failed aCalcEngine.createScenario(): The following errors occured: Could not create repository entry for scenario (34053)nnprinting XML <?xml version="1.0" encoding="UTF-8" standalone="no"?><cubeSchema defaultLanguage="EN" defaultSchema="_SYS_BIC" operation="createCalculationScenario" version="3"><calculationScenario name="co-pc-river/CALC_TEST1" schema="_SYS_BIC"><dataSources><tableDataSource name="JEST" schema="GLR" table="JEST"><attributes><allAttribute /></attributes></tableDataSource></dataSources><calculationViews><projection name="finalProjection" defaultViewFlag="true"><inputs><input name="JEST"><mapping source="MANDT" target="MANDT"/><mapping source="OBJNR" target="OBJNR"/><mapping source="STAT" target="STAT"/><mapping source="INACT" target="INACT"/></input></inputs><viewAttributes><viewAttribute name="MANDT"/><viewAttribute name="OBJNR"/><viewAttribute name="STAT"/><viewAttribute name="INACT"/></viewAttributes></projection></calculationViews></calculationScenario></cubeSchema>nVersion: 64n"
    Best Regards
    Mao Mingqi

  • Error in Information Steward when viewing data on Views (Data Insight)

    Hello
    In SAP Information Steward -> Data Insight ->
    Project -> Views -> for example
    selecting "Customer Master Company Code KNB1" -> view data
    brings this error message:
    Data Services execution failed for CUSTOMER MASTER COMPANY CODE KNB1.
    Error :
    (14.2) 05-14-14 13:37:08 (R) (1536:4256) R3C-150605: |Data flow
    vviewdf_434_f39d42a2_e2ba_4ee3_add3_b4fa4ae25dad|Embedded Dataflow
    EDF_VIEW434|Reader EID_2_EABAPDF_VIEW434_0|Transform
    EID_2_EABAPDF_VIEW434_0__Driver The SAP job was canceled for host < >,
    job name <ZISCUSTOMERMASTERCOMPANYC 05/14/14 13:36:40>, job count
    <13364100>, job log from SAP < 14.05.2014 13:36:42 Job started
    14.05.2014 13:36:42 Step 001 started (program ZW09148001, variant
    &0000000000000, user ID REBERLE) 14.05.2014 13:36:44 Internal session
    terminated with a runtime error RAISE_EXCEPTION (see ST22) 14.05.2014
    13:36:44 Job cancelled >.(14.2) 05-14-14 13:37:08 (E) (1536:4256) R3C-
    150605: |Data flow
    vviewdf_434_f39d42a2_e2ba_4ee3_add3_b4fa4ae25dad|Embedded Dataflow
    EDF_VIEW434|Reader EID_2_EABAPDF_VIEW434_0|Transform
    EID_2_EABAPDF_VIEW434_0__Driver The SAP job was canceled for host
    <*****>, job name <ZISCUSTOMERMASTERCOMPANYC 05/14/14 13:36:40>, job
    count <13364100>, job log from SAP <*****>. This message contains some
    internal system details which have been hidden for security. If you
    need
    to see the full contents of the original message, ask your
    administrator
    to assign additional privileges to your account. (COR-10690)
    OR
    Data Services execution failed for GENERAL MATERIAL DATA MARA. Error :
    (14.2) 05-14-14 17:48:18 (E) (1256:6164) RES-020106: |SESSION JOB_VView_427_cc24f0fc_5063_4c78_8069_9284f1b90848|DATAFLOW EABAPDF_VIEW427_0|STATEMENT <GUID::'c653fd4c-0efa-473f-b280-f4430440939e::40f26e19-6a6d-4def-838c-c27f60f8fd49::3f2886f5-6c62-42af-8a97-cf3be217727a' READ TABLE ICCDS_92."".MARA OUTPUT(IS_VIEW_RDR_222_0)> Table <MARA> for owner <> was not found in the repository for datastore <ICCDS_92>. Import this table from the external source. If the name is case-sensitive in the database (and not all uppercase), enter the name as it appears in the database and use double-quotation marks around the name to preserve the case. (COR-10690)
    Im not sure if the rfc connection to the SAP ERP is functional because this error appears:
    Error Details ERROR: program SAPDS not registered
    Error Details LOCATION: SAP-Gateway on host xxxxxxx /
    sapgw00
    Error Details DETAIL: TP SAPDS not registered
    Error Details COMPONENT: SAP-Gateway
    Viewing data from tables is working but viewing data from views gives errors above.
    Any ideas ?
    Best regards,
    Robert Eberle

    Hi
    well that makes sense, I did't see the transport files you mentioned in the Transport Queue in the
    ERP system.
    But, in KB 1971036 it is explained that the newer transport files should be imported from
    OSS Note 1916294 after deleting the functions /BODS/BODS. (see attachment)
    Do you think I should import first the transport files from the Admin
    directory, then reimport those from note 1916294 or not ?
    Regards,
    Robert

  • SQL Insert Statement Data Type Mismatch Error

    I am doing a very simple web application that has a Microsoft Access database as the data source. I have been able to sucessfully create update and query statements using parameters but am having issues with an insert statement. I am using JSTL 1.1.2
    The following code creates the data type mismatch error.
    <sql:update
         sql="insert into tblTtoF(TFToolID,TFFeatID) values(?,?)">
            <sql:param value='$(ID}'/>
         <sql:param value='${feature}'/>
            </sql:update>The table has NUMBER as the data type for both of these fields and the variables I am feeding into it are both numbers. If I hard code the first number into the sql statement then it works. I have tried swapping the variables around and as long as the first one is hard coded the parameter for the second one works no matter which is first or second.
    However I can get the following code to work, which of course leaves me vulnerable to sql injection attacks which is not really a good thing.
    <sql:update>
         insert into tblTtoF(TFToolID,TFFeatID) values('<c:out value="${ID}"/>','<c:out value="${feature}"/>')
            </sql:update>So I am just looking for any suggestions as to why my first piece of code doesn't work seeing as it is the simplest of SQL statements and the most standard syntax.
    Thanks

    I changed it to the following
         <c:set var="featurenew" value="${0 + feature}"/>
         <c:set var="IDnew" value="${0 + param.toolID}"/>
              <sql:update
              sql="insert into tblTtoF(TFToolID,TFFeatID) values(?,?)">
              <sql:param value='$(IDnew}'/>
              <sql:param value='${featurenew}'/>
              </sql:update>And got the following error in the localhost.log
    31/07/2006 09:31:41 org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.sql.SQLException: SQL Exception : [Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setObject(JdbcOdbcPreparedStatement.java:1437)
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setObject(JdbcOdbcPreparedStatement.java:1072)
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setObject(JdbcOdbcPreparedStatement.java:1063)
         at org.apache.taglibs.standard.tag.common.sql.UpdateTagSupport.setParameters(UpdateTagSupport.java:254)
         at org.apache.taglibs.standard.tag.common.sql.UpdateTagSupport.doEndTag(UpdateTagSupport.java:156)
         at org.apache.jsp.dataUpdated_jsp._jspx_meth_sql_update_1(dataUpdated_jsp.java:975)
         at org.apache.jsp.dataUpdated_jsp._jspx_meth_c_if_0(dataUpdated_jsp.java:879)
         at org.apache.jsp.dataUpdated_jsp._jspx_meth_c_forEach_0(dataUpdated_jsp.java:680)
         at org.apache.jsp.dataUpdated_jsp._jspService(dataUpdated_jsp.java:151)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
         at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
         at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
         at java.lang.Thread.run(Thread.java:595)
    I have also tried the following in the past with no luck
    <fmt:parseNumber value="${ID}" type="number" var="IDnew"/>
    AND......
    <sql:query
       sql="select TFToolID from tblTtoF where TFToolID = ?"
       var="toolresults">
       <sql:param value="${ID}"/>
    </sql:query>
    <c:forEach var="getID" items="${toolresults.rows}">
         <c:set var="theID" value="${getID.TFToolID}"/>
    </c:forEach>
    AND when that didn't work, added this....
    <fmt:parseNumber value="${theID}" var="IDnew"/>

  • Data type mismatch in criteria expression. What am I not seeing??

    Once again I'm stuck! I have included the query I'm trying to run below.  I have also indicated the data types of my fields.
    <cfquery name="qGetOrders" datasource="manna_premier">
    SELECT DISTINCT Count(ID) AS CountOfID,   - number
                                 TMName,   -text
                                 Sum(Quantity) AS SumOfQuantity,   - number
                                 Count(NewExisting) AS CountOfNewExisting -number
    FROM Users, Orders, ProductOrders
    WHERE SaleDate BETWEEN #CreateODBCDate(FORM.Start)# AND #CreateODBCDate(FORM.End)#
    GROUP BY UserZone, TMName
    </cfquery>
    When run it returns this error message....
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
    The error occurred in D:\Inetpub\mannapremier\zvp_report2.cfm: line 11
    9 :                     Count(NewExisting) AS CountOfNewExisting
    10 : FROM Users, Orders, ProductOrders
    11 : WHERE SaleDate BETWEEN #CreateODBCDate(FORM.Start)# AND #CreateODBCDate(FORM.End)#
    12 : GROUP BY UserZone, TMName
    13 : </cfquery>
    SQLSTATE
      22018
    SQL
       SELECT DISTINCT Count(ID) AS CountOfID, TMName, Sum(Quantity) AS SumOfQuantity, Count(NewExisting) AS CountOfNewExisting FROM Users, Orders, ProductOrders WHERE SaleDate BETWEEN {d '2009-10-01'} AND {d '2009-10-31'} GROUP BY UserZone, TMName
    VENDORERRORCODE
      -3030
    DATASOURCE
      manna_premier
    I use the where clause on several other pages and it works. I don't understand where my data type is mismatched.
    Can anyone point me in the right direction?

    4) If you indeed need to select from the 3 tables Users,
    Orders, ProductOrders, then you should qualify the columns
    names like this, Users.ID, productOrders.Quantity, and so
    on.
    You also need to join on the related columns. If you forget to do that the resultset will be a massive cartesian table (huge number of records):
    rows in Table1 * #rows in Table2 * #rows in Table3

  • Help its really urgent.....Data type mismatch in criteria expression.

    hello everyone....
    I m trying to retrive an int value from Access database with query
    String query = "SELECT * FROM M_PROCESS WHERE PROCESS_NAME = '"+selected_process+"' ";
    Here selected_process is the string retrived from a JSP page using request.getparameter and it may retrive value with multiple spaces in it.
    i m able to retrive selected_process correctlly but when i call another servlet method to execute query with statement
    ResultSet rs = dbcon.execQuery(query);
    I get an error
    Error in connection in execution[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
    can anyone help.....
    note: the datatype of PROCESS_NAME is TEXT . dbcon is the object of servlet connection manager which is responsible for connection establishment and query execution.

    Hi Nix,
    If its an Interger value use "+xxxx+" if string then use ' " ++"'
    or else try to convert the string value to interger...
    it will work

  • Data type mismatch when inserting into text field

    Hello all,
    Using VB script and ASP.
    I have a page that inserts into a field (casenum) in a table (clientsw) in a database. The field (casenum) in the table is data type TEXT :
    I create a recordset and then an insert statement which the following is part of:
    Code to insert the casenum into the field
    rsClients("Casenum")=Right(Date(),2) & "E-100" & rsCasenumber("countervalue")
    It inserts a number like 09E-1004500
    I then have code that takes that string and passes it to the next page as a variable
    Session("UserID")=rsClients("CASENUM")
    response.redirect "done3.asp"
    When it gets to the next page it is assigned as UserID
    Dim svuserid
    svuserid = "0"
    if (Session("UserID") <> "") then svuserid = Session("UserID")
    %>
    My information inserts into the database exactly as I want it, but when it gets to the next page I get an error that is displayed that says the following:
    Microsoft JET Database Engine error '80040e07'
    Data type mismatch in criteria expression.
    /done3.asp, line 16
    My code on the second page is as follows:
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="Connections/connNewdatabase1.asp" -->
    <%
    Dim svuserid
    svuserid = "0"
    if (Session("UserID") <> "") then svuserid = Session("UserID")
    %>
    <%
    set rsClients = Server.CreateObject("ADODB.Recordset")
    rsClients.ActiveConnection = MM_connNewdatabase_STRING
    rsClients.Source = "SELECT *  FROM CLIENTSW WHERE CASENUM=" + Replace(svuserid, "'", "''") + "  ORDER BY CASENUM"
    rsClients.CursorType = 0
    rsClients.CursorLocation = 2
    rsClients.LockType = 3
    rsClients.Open()
    rsClients_numRows = 0
    %>
    Line 16 is the one that says rsClients.Open()
    If I take the concatenation out of rsClients("Casenum")=Right(Date(),2) & "E-100" & rsCasenumber("countervalue") and have only rsClients("Casenum")=rsCasenumber("countervalue") and change the table field to number, I don't get the "datatype mismatch error"
    What do I change to enable me to leave the above statement concatenated and insert into the table correctly and complete the stuff on the next page?

    >This is an access database, varchar is not an option for a datatype.
    Sorry. In another thread I thought you mentioned using SQL Server
    >I changed the + signed to ampersands instead and it doesn't make a difference.
    I didn't think that was the problem. I was just pointing out that it's a bad practice. If you use the '+' on two strings that can evaluate as numeric, it will actually add rather than concat them.

  • Data type mismatch problem

    Hello:
    I have an sql query that works just fine when I run it
    directly in Access but when I run it on a web site, it gives me an
    error "Data type mismatch in criteria expression".
    I am working with transactions and this is an update of a
    table within a transaction.
    Here is the code:
    con.execute "UPDATE tblWells SET API_Number='" &
    Request.Form("API_Number") & "', Well_Name='" &
    Request.Form("Well_Name") & "', Drill='" &
    Request.Form("Drill") & "', Reenter='" &
    Request.Form("Reenter") & "', horizontal='" &
    Request.Form("horizontal")& "', Duration='" &
    Request.Form("Duration") & "', OilWell='" &
    Request.Form("OilWell") & "', GasWell='" &
    Request.Form("GasWell") & "', Other='" &
    Request.Form("Other") & "', SingleZone='" &
    Request.Form("SingleZone") & "', MultipleZone='" &
    Request.Form("MultipleZone")& "', NumAcresLease='" &
    Request.Form("NumAcresLease") & "', LeaseSerialNumber='" &
    Request.Form("LeaseSerialNumber") & "', LeaseName='" &
    Request.Form("LeaseName") & "', WellNumber='" &
    Request.Form("WellNumber") & "', state='" &
    Request.Form("state") & "', county='" &
    Request.Form("county") & "', wellheadElevation='" &
    Request.Form("wellheadElevation") & "', groundElevation='"
    & Request.Form("groundElevation") & "', ProposedDepth='"
    & Request.Form("ProposedDepth") & "',
    DistanceTownPostOffice='" &
    Request.Form("DistanceTownPostOffice") & "',
    DirectionTownPostOffice='" &
    Request.Form("DirectionTownPostOffice") & "',
    Distance_Nearest_Property_Line='" &
    Request.Form("Distance_Nearest_Property_Line") & "',
    DistanceNearestWell='" & Request.Form("DistanceNearestWell")
    & "', UnitSpacing='" & Request.Form("UnitSpacing") & "'
    WHERE WellID=1"
    I can't figure why the query would work fine in Access and
    not on the webpage.
    Thanks.

    A Checkbox does not exist as a form value if it empty which
    is why your SQL
    script is failing. What you need to do is create a variable
    and then assign
    it with the value. Assuming you are using ASP then taking one
    element on
    your SQL statement
    SingleZone='" & Request.Form("SingleZone")
    you would change it to
    SingleZone = strSingleZone
    Above the actual start of your SQL statement you would define
    your variables
    and set their empty values, and then assign them to the form
    values
    Dim strSingleZone = 0
    if Request.Form("SingleZone") <> "" then
    strSingleZone = Request.Form("SingleZone")
    End if
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "zavidp" <[email protected]> wrote in
    message
    news:eo9554$dd0$[email protected]..
    > Okay, I have worked further. I have isolated the fields
    that are causing
    > trouble and they are checkbox fields.
    >
    > I have been pulling my hair out all day trying to figure
    out how to set
    > access
    > and asp so that the on/off, true/false or whatever is
    passed correctly.
    >
    > Can anyone help?
    >
    > Dave
    >

  • Data type mismatch while writing a code in BADi

    Hi Experts,
    While writing a code in BADi, I am facing data type mismatch.
    Scenario:
    I have created the Infospoke based on one ODS and inside BADi i am looking up the other ODS fields.
    Two ODS's having 4 common key fields but one key field having the data type mismatch.
    While selecting the data from other ODS table in where condition it's giving the error data type mismatch.
    Could you please advice the same please.
    Thanks.
    Gana.

    Any update please....
    Thanks in advance.
    Edited by: Gananadha Lenka on Jun 18, 2010 1:57 PM

  • Data Type mismatch in for all entries.

    Dear Friends,
    I have a problem...please advice me for that..... I m using code as following...actually the isse is when ever i am using
        WHERE docno = it_j_1iexchdr-rdoc (along with FOR ALL ENTRIES IN) the error is occured data type mismatch.
    becoz DOCNO is field of(j_1iexchdr) and RDOC is a character field of same table...but i want to get reference data..so i need to compare both field...u can undersdand my requirement in following coding.. Error line is denoted by (<----
      DATA: BEGIN OF it_j_1iexchdr OCCURS 0,
            bukrs LIKE j_1iexchdr-bukrs,               " Company Code.
            exnum LIKE j_1iexchdr-exnum,               " Excise Invoice No.
            exdat LIKE j_1iexchdr-exdat,               " Excise Invoice Dt.
            kunag LIKE j_1iexchdr-kunag,               " Sold-to-party
            kunwe LIKE j_1iexchdr-kunwe,               " Ship-to-party
            rdoc  LIKE j_1iexchdr-rdoc,
           rdoc  TYPE j_1iexchdr-docno,
            addldata1 LIKE j_1iexchdr-addldata1,       " Reason for Issueing Excise Invoice
            exbed LIKE j_1iexchdr-exbed,               " Excise Duty
            ecs   LIKE j_1iexchdr-ecs,                          " 2%Cess
            exaddtax1 LIKE j_1iexchdr-exaddtax1,       " Shec
            trntyp LIKE j_1iexchdr-trntyp,                   " OTHR
            END OF it_j_1iexchdr.
      DATA: wa_j_1iexchdr LIKE it_j_1iexchdr.
      DATA: BEGIN OF it_j_1iexchdr1 OCCURS 0,
            trntyp LIKE j_1iexchdr-trntyp,
           docno LIKE j_1iexchdr-rdoc,
            rdoc LIKE j_1iexchdr-rdoc,
            END OF it_j_1iexchdr1.
      DATA: wa_j_1iexchdr1 LIKE it_j_1iexchdr1.
    SELECT bukrs exnum exdat kunag kunwe rdoc
             addldata1 exbed ecs exaddtax1 trntyp
      FROM j_1iexchdr
      INTO CORRESPONDING FIELDS OF TABLE it_j_1iexchdr
      WHERE  bukrs IN v_bukrs
      AND   exdat IN v_exdat
      AND   trntyp = 'OTHR'.
    IF it_j_1iexchdr[] IS NOT INITIAL.
         SELECT trntyp docno rdoc
        FROM  j_1iexchdr
        INTO CORRESPONDING FIELDS OF table it_j_1iexchdr1
        FOR ALL ENTRIES IN it_j_1iexchdr
        WHERE docno = it_j_1iexchdr-rdoc  <----
    I
        AND   trntyp = 'DLFC'.
      ENDIF.
    Pl help me as soon as possible...
    Thanks & Regards,
    Swapnika Panse

    Hi,
    In table j_1iexchdr, there are two fields
    RDOC     J_1IRDOC1     CHAR     10      Reference Document 1
    DOCNO     J_1IDOCNO     NUMC     10      Internal Excise Document Number
    RDOC is of character type and DOCNO is of numeric type.
    Your declaration for fields is :
    docno LIKE j_1iexchdr-rdoc,
    rdoc LIKE j_1iexchdr-rdoc,
    And in the select query you are trying to fetch docno which is of type j_1iexchdr-rdoc. SO, change your declaration from
    docno LIKE j_1iexchdr-rdoc,
    to
    docno LIKE j_1iexchdr-docno,
    This should solve your problem.
    Thanks,
    Archana

  • Data type mismatch in criteria expression

    When i execute a sql i get the following message:
    java.sql.QDLExeption.......Data type mismatch in criteria expression...
    I use MS access.
    I use java.sql.Date to this format 04-09-2003
    I use boolean
    Is the date format correct?
    Is the boolean format correct?
    I try to debug for 3 hours and i didn't succeed..
    Thanks for any responses

    Try a couple of things:
    (1) Make sure that your Access database column type is Date for the columns you think it should be. Should the boolean column be type yes/no in Access? I'm not 100% sure, but that's my guess.
    (2) Use PreparedStatement, not Statement, if you aren't already. Set the variable values in your SQL using the setXXX() methods in PreparedStatement. That will make sure that all conversions are done properly.
    MOD

  • Error when trying to set a date type edit field

    Hi all
    I have an edit text field in a form which is bounded to a date type
    database field using dbDataSource.
    When i try to set the edit text field value with Today's date by code.
    I recieve an error message that the value which
    i'm trying to set is not legal. the  error number is [131-183].
    I use the following code to set the edit field:
    If oEditText.Value.Trim = String.Empty Then
                Dim strDate As String
                Dim sboBob As SAPbobsCOM.SBObob =
                 oCompany.GetBusinessObjec(SAPbobsCOM.BoObjectTypes.BoBridge)
                 rs = sboBob.Format_DateToString(Microsoft.VisualBasic.Today)
               strDate = rs.Fields.Item(0).Value.ToString().Trim()
    Try 
           oEditText.Value = strDate
    Catch ex As Exception
        SBO_Application.MessageBox("error setting
    current date: " & ex.Message)
    End Try
    End If
    My question is how can i set the edit field with a valid value?

    Hi!
    When writing to EditText.Value you must always use the B1 "DB-Format" as String.
    The following examples are assuming (it's a must!) that the EditText-Fields are bound to a corrosponding DataSource (Type Date, Price etc...)
    MyDateEditTxt.Value="20080207"
    MyPriceEditTxt.Value="1341.79"
    The best of it: It's Windows and SBO-GUI-Language independent.
    EditText.String must always be written with the format of the actual Language of the SBO-GUI, which can be changed by the user....
    You may also have a look at my statements regarding these problems near the end of this thread:
    [How to pass date value to an UDF;
    Cheers,
    Roland

  • On ECC, got these ERROR messages ACTIVATING a created View. Any hints?

    Hi,
    In creating a view on ECC, I got these messages while activating the View:
    VIEW ZVIEWXXX was not activated
    Check view ZVIEWXXX (MARK001/09.01.10/19:18)
    View allows read-only access only. Maintenance not possible.
    'Display using Data Browser only' was set automatically
    The view ignores client-dependency of the base tables
    Key field MBEWH-BWKEY missing
    Key field MBEWH-BWTAR missing
    Key field MBEWH-LFGJA missing
    Key field MBEWH-LFMON missing
    All fields are evaluated as key field
    Field name MATNR not unique
    Field MARA-LAEDA (Type conflict in selection condition)
    Operator   is not allowed in a selection condition.
    Field MARA-AENAM (Type conflict in selection condition)
    Link the selection conditions with AND or OR
    Operator   is not allowed in a selection condition.
    1.  Any hints to help  fix these problems?
    Ok, I went ahead and added the following fields in the error message :
    MBEWH-BWKEY
    MBEWH-BWTAR
    MBEWH-LFGJA
    MBEWH-LFMON
    2. Now, after this, the error reduced to the following below. But why am I being forced to add fields that I do not need?
        (I also removed the condition)
    VIEW ZVIEWXXX was not activated
    Check view ZVIEWXXX (MARK001/09.01.10/19:18)
    View allows read-only access only. Maintenance not possible.
    'Display using Data Browser only' was set automatically
    Field name MANDT not unique
    View ZVIEWXXX is not consistent
    ============================================================
    End of activation of worklist
    ============================================================
    3. Ok, So, why do I still have the above errors, the view is still not activating.
    Thanks
    Edited by: AmandaBaah on May 10, 2010 1:43 AM
    Edited by: AmandaBaah on May 10, 2010 2:05 AM

    Hi Lynn,
        Found your problem.
    View Field Table Field Data Element
    MANDT MARA MANDT MANDT
    MATNR MARA MATNR MATNR
    ERSDA MARA ERSDA ERSDA
    ERNAM MARA ERNAM ERNAM
    LAEDA MARA LAEDA LAEDA
    AENAM MARA AENAM AENAM
    MANDT MBEWH MANDT MANDT
    MATNR MBEWH MATNR MATNR
    STPRS MBEWH STPRS STPRS
    PEINH MBEWH PEINH PEINH
    VKSAL MBEWH VKSAL VKSAL
    BWKEY MBEWH BWKEY BWKEY
    BWTAR MBEWH BWTAR BWTAR_D
    LFGJA MBEWH LFGJA LFGJA
    LFMON MBEWH LFMON LFMON
    The basic function of a view is to join two or more tables. So when you join tables, the common data based on your join condition is fetched. Therefore if you have mapped mandt from mara to mandt to mbewh, then data will be fetched from both tables on the same condition. Therefore in your final result, you will have only 1 mandt field.
    In your view, there are several problems. You only need to have 1 MANDT and 1 MATNR.
    What the view will do is that it will fetch all records from MARA and then fetch all records from MBWEH where MANDT and MATNR match.
    So the revised view should be
    MANDT MARA MANDT MANDT
    MATNR MARA MATNR MATNR
    ERSDA MARA ERSDA ERSDA
    ERNAM MARA ERNAM ERNAM
    LAEDA MARA LAEDA LAEDA
    AENAM MARA AENAM AENAM
    MANDT MBEWH MANDT MANDT delete
    MATNR MBEWH MATNR MATNR delete
    STPRS MBEWH STPRS STPRS
    PEINH MBEWH PEINH PEINH
    VKSAL MBEWH VKSAL VKSAL
    BWKEY MBEWH BWKEY BWKEY
    BWTAR MBEWH BWTAR BWTAR_D
    LFGJA MBEWH LFGJA LFGJA
    LFMON MBEWH LFMON LFMON
    This should solve your problems.
    Regards.

  • Error While Activating BI Web service data source based on MDM XI.

    Dear experts,
    Need help with an error that i am getting for a BI data source based on XI MDM. An extra field was added in the data source as part of business requirement and it works fine in dev environment but when we transported the changes to Q environment it is always giving following error.
    The web-service based communication structure in the data source in QA is not getting updated with the new field in the target system.
    Any inputs or pointers would be appreciated.
    Thanks,
    Abhishek

    Many thanks for your help.  This solved the issue for our .NET code, however the leak is still present in the report designer.  I was also wondering if you could help further: because of the limits on the java memory process is there a way to ensure that a separate java process is started for each report that is loaded in my report viewers collection?  Essentially the desktop application that i have created uses a tab control to display each type report, so each tab goes through the following code when displaying a report and closing a tab:
    Is there a way to ensure that a different Java process is kicked off each time that I display a different report?  My current code in c# always uses the same Java process so the memory ramps up.  The code to load the report and then dispose of the report through closing the tab (and now the Java process) looks like this:
        private void LoadCrystalReport(string FullReportName)
          ReportDocument reportDoc = new ReportDocument();
          reportDoc.Load(FullReportName, OpenReportMethod.OpenReportByTempCopy);
          this.crystalReportViewer1.ReportSource = reportDoc;
        private void DisposeCrystalReportObject()
          if (crystalReportViewer1.ReportSource != null)
            ReportDocument report = (ReportDocument)crystalReportViewer1.ReportSource;
            foreach (Table table in report.Database.Tables)
              table.Dispose();
            report.Database.Dispose();
            report.Close();
            report.Dispose();
            GC.Collect();
    Thanks

  • Error when activating an analytic view

    Hi All,
    I am getting the below error when trying to activate an analytic view:
    An internal error occurred. Assertion failed with error message JoinManager::convertLogicalToPhysicalJoin(), cannot retrieve attribute for: CA_BNFPO in dimension: ECC-COMMON-AT_VIEWS/AT_STXH
    In the analytic view , I am doing an inner join between table  EBAN  , fields MANDT,BANFN,BANFO with an attribute view created on STSXH ,fields MANDT,CA_BNFN,CA_BNFPO.
    CA_BNFN and CA_BNFPO are the calculated columns in the attribute view AT_STXH .
    Can anyone please let me know how to resolve this.
    Thanks,
    Goutham

    Hi Raj,
    Thanks for your response.
    I have created joins using calculated columns in other analytic views and I didn't face any issues doing that.
    Thanks,
    Goutham

Maybe you are looking for

  • GR/IR clearing account showing wrong values (F.19)

    Hello, At my company, they run the MR11 to check for GR/IR variances and then clear these variances using the F.13 transaction. However, when the F.19 transaction is run to analyze the GR/IR clearing account, there are some old PO's belonging to year

  • Fraudulent Activity

    My visa card seems to be getting charged a monthly fee of around $13 to $14 and it recurs at the end of each month. I rang my bank and they told me to try to sort it out first with Skype. However, everytime I try to follow the link to report this fra

  • UEFI Vbios requests for N760 2GD5/OC ITX

    Here is the serial number: 602-V284-59SB1311081936 My BIOS version is : 80.04.C4.00.AA (P2004-0010) Quote NVIDIA Firmware Update Utility (Version 5.142) Adapter: GeForce GTX 760      (10DE,1187,1462,284E) H:--:NRM B:01,PCI,D:00,F:00 The display may g

  • Why can I not get internet access today?

    I was not able to get internet access at home this morning and now I can't get it at the office. G-mail says the mail server is not responding. Also, none of my apps are loading. Verizon, please fix this!

  • Itunes crashes when i try to view burning preferences

    When i open preferences and click on advance everything is working fine for the general and importing tabs, but when i click on the burning tab, itunes freezes. i have the most recent version of itunes