Data type length mismatch -urgent pls

In the following query i have done a comparision in where clause as follows
OBJECTID         =   itab2-kdauf
(char length = 90)  (char length =10)
it says the error that required same same length.
how to solve this problem, help me pls, very urgent.
select OBJECTCLAS
       OBJECTID
       CHANGENR
       TABNAME
       TABKEY
       FNAME
       CHNGIND
       VALUE_NEW
       VALUE_OLD
       from cdpos into corresponding fields of table ipos
       for all entries in itab2
       where tabname = 'VBAP' and
             fname = 'ABGRU' and
             OBJECTID = itab2-kdauf.
Regards
Rajaram

Hi Rajaram.
If the KDAUF has to match with the First 10 characters of OBJECTID then do like this..
select OBJECTCLAS
<b>OBJECTID(10)</b>
CHANGENR
TABNAME
TABKEY
FNAME
CHNGIND
VALUE_NEW
VALUE_OLD
from cdpos into corresponding fields of table ipos
for all entries in itab2
where tabname = 'VBAP' and
fname = 'ABGRU' and
<b>OBJECTID(10) = itab2-kdauf.</b>
<b>Reward if helpful</b>

Similar Messages

  • TIPS(63) : LONG DATA TYPE의 LENGTH 구하기

    제품 : PL/SQL
    작성날짜 : 1999-04-15
    TIPS(63) : LONG DATA TYPE의 LENGTH 구하기
    =========================================
    PURPOSE
    다음은 function 을 적용할 수 없는 long data type 의 length 를
    구하는 방법을 소개한다.
    Explanation
    Long DataType 에 대해 Length 를 구하려 하는 경우 다음과 같은 Error 가 발생한다.
    SQL> create table TOY
    2 (Toy_ID NUMBER, Description LONG);
    Table created.
    SQL> select LENGTH(Description) from TOY;
    select LENGTH(Description) from TOY
    ERROR at line 1:
    ORA-00932: inconsistent datatypes
    "Inconsistent DataTypes" Error 는 LONG DataType 으로 정의된 Column 에
    Function 을 적용하였기 때문에 발생한다.
    VARCHAR2 Type 을 사용하면 정상 처리할 수 있으나, Oracle7 에서는 VARCHAR2 는
    2,000 Characters 만 저장할 수 있으며, Oracle8 에서는 4,000 Characters 이다.
    Oracle8 에서는 Long Data 를 저장하기 위해 LOB DataType 을 사용할 수 있으며,
    LONG Data Type 은 Oracle7/Oracle8 모두 Support 되므로 LONG Type 에 대해
    Length 를 확인하는 방법을 알아본다.
    Example
    다음은 anonymous PL/SQL Block 을 통해 TOY Table 에서 LONG Column 의
    Length 를 구하는 Script 이다.
    1. Single Record 에 대한 예
    $ vi len_long.sql
    declare
    length_var NUMBER;
    cursor TOY_CURSOR is
    select * from TO;
    toy_val TOY_CURSOR%ROWTYPE;
    begin
    open TOY_CURSOR;
    fetch TOY_CURSOR into toy_val;
    length_var := LENGTH(toy_val.Description);
    DBMS_OUTPUT.PUT_LINE('Length of Description: '||length_var);
    close TOY_CURSOR;
    end;
    SQL> set serveroutput on
    SQL> @len_long
    Length of description : 21
    PL/SQL procedure successfully completed.
    2. Multiple Record 에 대해서는 cursor FOR Loop 를 사용한다.
    $ vi len_long.sql
    declare
    length_var NUMBER;
    cursor TOY_CURSOR is
    select * from TOY;
    toy_val TOY_CURSOR%ROWTYPE;
    begin
    for toy_val in TOY_CURSOR loop
    length_var := LENGTH(toy_val.Description);
    DBMS_OUTPUT.PUT_LINE('ID: '||toy_val.Toy_ID);
    DBMS_OUTPUT.PUT_LINE('Length of Description: '||length_var);
    end loop;
    end;
    SQL> set serveroutput on
    SQL> @len_long
    ID: 1
    Length of Description: 21
    ID: 2
    Length of Description: 27
    PL/SQL procedure successfully completed.
    Reference Document
    ------------------

    Hi Frank,
    I have the exact same scenario where I have huge data coming from DB and its a must that I provide pagination.
    I tried implementing as per the document but the pagination is not working for me too.
    Details of the scenario:
    1. I have a session facade method which takes a searchCriteria (custom criteria) as the input parameter and returns a list of entities.
    a)This is the first method that I call as a default method activity in my taskflow.
    b)The result of this method is dragged and dropped as table in the jsff. (*which created a methodIterator in pageDef unlike the documentation which has accessorIterator*).
    2. I declared 2 class level variables
    a) List<Entity> result: which is set once the method in the (1) above is executed.
    b) long size: which is also set from the method (1) above.
    3. I defined getEntityAll(int index,int range) method which returns List<Entity> as per the index and range using the result (class level variable populated by method in 1)
    4. I defined getEntityAllSize() method which returns the size (class level variable populated by method in 1).
    5. I created the datacontrol on top of the session facade bean.
    6. I made sure to change the DataControlHandler = "oracle.adf.model.adapter.bean.DataFilterHandler"
    7. I've set the rangeSize = 25 in my pagedef.
    Now when I run my page, my default method activity calls the method in (1) above and populates the table, with a scroll bar.
    Once I start scrolling, it calls my method in (1) but it does not call either of the methods (getEntityAll(int index,int range) & getEntityAllSize()) which adds the pagination behavior.
    After this, my table has just 25 rows and further scrolling does not invoke any of the methods from the session bean.
    I'm using jdev : JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923 (11.1.1.4.0).
    Please let me know if I am missing anything.
    Thanks in advance!
    Swapna

  • Change characterestic data type Length

    Hi All,
    Can anyone tell me, how i can change the caracterestic data type length. My characterestic got saved and activated. i can delete and recreate, but i would like to check whether there is any other way.
    Regards,
    Suresh Patipati.

    Hi,
    Unfortunately, a characteristic can be created with a maximum length of 18 characters. The only workaround would be to create an user-defined characteristic of length CHAR18, and then fill it with the first 18 positions of the source field by derivation.
    regards
    Waman

  • Data Type Length --- Urgent

    Hi,
    Can anyone tell me how bits/bytes is one character... Is there any function module to find out the length of a character / string / any other data types in terms of bits/bytes???
    Regards
    Jiku

    Hi Jiku,
    length of a character depends on your system settings, if the system is running on UniCode (2 Byte) or Non UniCode (1 Byte).
    Length of a string: http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb33d9358411d1829f0000e829fbfe/frameset.htm
    Length of other data type look into DESCRIBE syntax.
    Best regards,
      ok
    Message was edited by:
            Oliver Kohl

  • Data type & length in SAP side!!

    Hi all,
    i am working in a R/3 -legacy scenario.
    In R/3 side there exist one table called YMD_ARTICLE...
    now i have to make data type based on the 7 fields of that table YMD_ARTICLE..
    and I have given the field name + type(vachar,timestamp,smaal int..etc..)+filed length....in the data type template...
    Now my question is...wat should i give in type ...for the field...
    i min can i use "xsd:string" for every field..... irespective of what given in the template....
    Do we need to declare the lenght,type...for fileds of a DATA TYPE in XI...
    if the DATA type is already there in the R/3 side.....
    Can any one explain me......
    thanks....

    hi,
    >>> i min can i use "xsd:string" for every field..... irespective of what given in the template....
    string can be used to handle other datatypes as well...but try using the same data type as in R/3...
    when u know e.g the value can only be integer then use data type integer... this will also not allow values other than integer to pass...
    hope it helps,
    regards,
    latika.

  • Key Figure data type/length differs in BI and source system

    Hi all.
    It is a strange question, but we need an explanation to our "strange" client. Why many fields which are DEC 13 in source system became CURR 09 in BI? DEC->CURR type switch seems reasonable, but not the length. I guess the shorter numeric field is the less precise it can keep...
    Does SAP give any explanation for that?

    Hi,
         If you are expecting the data to be aggregated in the cube and if the data is loaded by different requests, then in that case the data wouldnot be aggregated.
    EX:  CHAR1   CHAR2    CHAR3   CHAR4     CHAR5    CHAR6    CHAR7    KF1   KF2   KF3
             A               B              C            D        E              F             G          10     20    30
              A               B              C            D        E              F             G          10     20    30
    sUPPOSE IF THE ABOVE 2 ROWS OF DATA ARE GETTING LOADED IN THE SAME REQUEST, then you can expect the data to be aggregated and the o/p of the KFs will be 20, 40 and 60 respectively.
    In case the loading is done with separate requests, then your data will not be aggregated.
    This is becuse in the cube, Request ID (under the Data Package Dimension)    is one of the dimension and this differs when the requests are different.
    Regards
    Sunil

  • Download data to Excel- very urgent pls help

    Hi  Experts
    Following is my coding. i need to download and save the it_material table as Excel file.
    pls help me out
    REPORT zvio1001 LINE-SIZE 190
               LINE-COUNT 55
               MESSAGE-ID zz
               NO STANDARD PAGE HEADING.
    TABLES: mara,marce,makt,marc,mvke,zmpkg,t005t,cdhdr.
    DATA : BEGIN OF it_mara OCCURS 0,
             mandt LIKE mara-mandt,          "Client
             matnr LIKE mara-matnr,
             meins LIKE mara-meins,
             laeda LIKE mara-laeda,
             aenam LIKE mara-aenam,
           END OF it_mara.
    DATA : BEGIN OF it_marc OCCURS 0,
           matnr LIKE marc-matnr,
           werks LIKE marc-werks,
           END OF it_marc.
    DATA : BEGIN OF it_makt OCCURS 0,
           matnr LIKE makt-matnr,
           maktx LIKE makt-maktx,
           END OF it_makt.
    DATA : BEGIN OF it_zmpkg OCCURS 0,
           matnr LIKE makt-matnr,
           zppqt LIKE zmpkg-zppqt,
           zspqt LIKE zmpkg-zspqt,
           zpmqt_3 LIKE zmpkg-zpmqt_3,
           END OF it_zmpkg .
    DATA : BEGIN OF it_material OCCURS 0,
             mandt LIKE mara-mandt,          "Client
             werks LIKE marc-werks,
             matnr LIKE marc-matnr,
             maktx LIKE makt-maktx,
             meins LIKE mara-meins,
             zppqt LIKE zmpkg-zppqt,
             zspqt LIKE zmpkg-zspqt,
             zpmqt_3 LIKE zmpkg-zpmqt_3,
             laeda LIKE mara-laeda,
             aenam LIKE mara-aenam,
             date LIKE sy-datum,
             time LIKE sy-uzeit,
             user    LIKE sy-uname,
           END OF it_material.
    P a r a m e t e r s                                                 *
    Start of tabbed screens
    SELECTION-SCREEN BEGIN OF TABBED BLOCK list FOR 20 LINES.
    SELECTION-SCREEN TAB (30) gc_gen USER-COMMAND gen_tab
                                        DEFAULT SCREEN 1001.
    SELECTION-SCREEN TAB (30) gc_view  USER-COMMAND view_tab
                                        DEFAULT SCREEN 1002.
    SELECTION-SCREEN TAB (30) gc_outp  USER-COMMAND outp_tab
                                        DEFAULT SCREEN 1003.
    SELECTION-SCREEN END OF BLOCK list.
    SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK box01 WITH FRAME TITLE text-401.
    PARAMETERS : p_werks LIKE marc-werks OBLIGATORY.
    PARAMETERS : p_vkorg LIKE mvke-vkorg OBLIGATORY.
    SELECT-OPTIONS : s_matnr FOR mara-matnr.
    SELECT-OPTIONS : s_mtart FOR mara-mtart.
    SELECT-OPTIONS : s_mmsta FOR marc-mmsta.                           "A01
    SELECT-OPTIONS : s_dispo FOR marc-dispo.
    SELECT-OPTIONS : s_beskz FOR marc-beskz.
    SELECT-OPTIONS : s_lgpro FOR marc-lgpro.
    SELECT-OPTIONS : s_lgfsb FOR marc-lgfsb.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-014.
    PARAMETERS : p_repall RADIOBUTTON GROUP sel2 DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-011.
    PARAMETERS : p_change  RADIOBUTTON GROUP sel2.
    SELECTION-SCREEN COMMENT 36(1) text-013.
    PARAMETERS : p_chgdat LIKE sy-datum DEFAULT sy-datum.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-010.
    PARAMETERS : p_excdel AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END   OF BLOCK box01.
    SELECTION-SCREEN END OF SCREEN 1001.
    View Selection Screen
    SELECTION-SCREEN BEGIN OF SCREEN 1002 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK box05 WITH FRAME TITLE text-403.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(77) text-109.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-021.
    PARAMETERS: p_sales AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 38(20) text-022.
    PARAMETERS: p_mrp  AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-023.
    PARAMETERS: p_store AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 38(20) text-024.
    PARAMETERS: p_accnt AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-025.
    PARAMETERS: p_cost  AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 38(20) text-026.
    PARAMETERS: p_purch AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END   OF BLOCK box05.
    SELECTION-SCREEN END OF SCREEN 1002.
    SELECTION-SCREEN BEGIN OF SCREEN 1003 AS SUBSCREEN.
    extract format selection
    SELECTION-SCREEN BEGIN OF BLOCK box04 WITH FRAME TITLE text-402.
    PARAMETERS : p_vari LIKE ltdxt-variant OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-009.
    PARAMETERS: p_report RADIOBUTTON GROUP sel1 DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-016.
    PARAMETERS : p_repcoo RADIOBUTTON GROUP sel1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-017.
    PARAMETERS : p_reppak RADIOBUTTON GROUP sel1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-008.
    PARAMETERS: p_extun RADIOBUTTON GROUP sel1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-007.
    PARAMETERS: p_extpc RADIOBUTTON GROUP sel1.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: p_pcfile LIKE rlgrap-filename
               DEFAULT 'c:\#ups\CLIENTIDCCYYMMDDHHMMSS.ITM'.
                DEFAULT 'd:\P0121205MMM_YYYYMMDD HHMMSS.XLS'.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(40) text-015.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END   OF BLOCK box04.
    SELECTION-SCREEN END OF SCREEN 1003.
    F i e l d   S y m b o l s                                           *
    FIELD-SYMBOLS: <f>.
    D a t a                                                             *
    common include for file layouts
    INCLUDE zvin1010.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'P_PCFILE'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
                     I N I T I A L I Z A T I O N                         *
    INITIALIZATION.
      gc_gen   = text-401.
      gc_outp  = text-402.
      gc_view  = text-403.
    SET up the file directory depending on the system id.
      GET PARAMETER ID 'WRK' FIELD p_werks.
      GET PARAMETER ID 'VKO' FIELD p_vkorg.
      CLEAR s_mtart.
      s_mtart-sign   = 'E'.
      s_mtart-option = 'EQ'.
      s_mtart-low    = 'ROH'.
      s_mtart-high   =  ''.
      APPEND s_mtart.
      CLEAR s_mtart.
      s_mtart-sign   = 'E'.
      s_mtart-option = 'EQ'.
      s_mtart-low    = 'MFPK'.
      s_mtart-high   =  ''.
      APPEND s_mtart.
      CLEAR s_mtart.
      s_mtart-sign   = 'E'.
      s_mtart-option = 'EQ'.
      s_mtart-low    = 'VERP'.
      s_mtart-high   =  ''.
      APPEND s_mtart.
    START-OF-SELECTION.
    check that the download is active
    PERFORM get_data.
    *&      Form  GET_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM get_data .
    SELECT   mandt matnr meins laeda aenam
    FROM mara
    INTO TABLE it_mara
    WHERE matnr IN s_matnr.
    IF NOT it_mara[] IS INITIAL.
    SELECT matnr werks
    FROM marc
    INTO TABLE it_marc
    FOR ALL ENTRIES IN it_mara
    WHERE matnr = it_mara-matnr
    AND werks = p_werks.
    SELECT matnr maktx
    FROM makt
    INTO TABLE it_makt
    FOR ALL ENTRIES IN it_marc
    WHERE matnr = it_marc-matnr
    AND spras = 'E'.
    SELECT matnr zppqt  zspqt zpmqt_3
       INTO TABLE    it_zmpkg
       FROM zmpkg
       FOR ALL ENTRIES IN it_marc
    WHERE matnr = it_marc-matnr
    AND  werks = p_werks.
    ENDIF.
    LOOP AT it_mara.
    READ TABLE it_marc WITH KEY matnr = it_mara-matnr.
    IF sy-subrc EQ 0.
    READ TABLE it_makt WITH KEY matnr = it_mara-matnr.
    IF sy-subrc EQ 0.
    READ TABLE it_zmpkg WITH KEY matnr = it_mara-matnr.
    IF sy-subrc EQ 0.
    it_material-mandt = it_mara-mandt.
    it_material-matnr = it_mara-matnr.
    it_material-maktx = it_makt-maktx.
    it_material-meins = it_mara-meins.
    it_material-laeda = it_mara-laeda.
    it_material-aenam = it_mara-aenam.
    it_material-werks = it_marc-werks.
    it_material-zppqt = it_zmpkg-zppqt.
    it_material-zspqt = it_zmpkg-zspqt.
    it_material-zpmqt_3 = it_zmpkg-zpmqt_3.
    it_material-date = sy-datum.
    it_material-time = sy-uzeit.
    it_material-user = sy-uname.
    APPEND it_material.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDLOOP.
    ENDFORM.                    " GET_DATA

    Hi Kumar,
         After building your it_material internal table, try using GUIO_DOWNLOAD to load the data into an excel sheet.
    check this sample code.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                = SELECT_FILE   " Filename
          FILETYPE                = 'ASC'
          APPEND                  = ' '
        TABLES
          DATA_TAB                = ITAB_STR_1
        EXCEPTIONS
          FILE_WRITE_ERROR        = 1
          NO_BATCH                = 2
          GUI_REFUSE_FILETRANSFER = 3
          INVALID_TYPE            = 4
          NO_AUTHORITY            = 5
          UNKNOWN_ERROR           = 6
          HEADER_NOT_ALLOWED      = 7
          SEPARATOR_NOT_ALLOWED   = 8
          FILESIZE_NOT_ALLOWED    = 9
          HEADER_TOO_LONG         = 10
          DP_ERROR_CREATE         = 11
          DP_ERROR_SEND           = 12
          DP_ERROR_WRITE          = 13
          UNKNOWN_DP_ERROR        = 14
          ACCESS_DENIED           = 15
          DP_OUT_OF_MEMORY        = 16
          DISK_FULL               = 17
          DP_TIMEOUT              = 18
          FILE_NOT_FOUND          = 19
          DATAPROVIDER_EXCEPTION  = 20
          CONTROL_FLUSH_ERROR     = 21
          OTHERS                  = 22.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        EXIT.
      ENDIF.
    Hope this is helpful to you. If you need further information, revert back.
    Reward all the helpful answers.
    Regards
    Nagaraj T

  • Data-type length

    Hi guys,
    While I creating the characteristic infoobject in datatype lengh.Maximum how much length I can give .

    Hi Mahendra,
    Check out this blog showing the screen shots of how to increase the infoobject length from 60 to about 240 chars wherever you hav longer descriptions,
    /people/sap.user72/blog/2006/05/27/long-texts-in-sap-bw-modeling
    Regards,
    Mani
    Message was edited by:
            Manikandan  A

  • Short Dump when loading data (Runtime Error ITAB_DUPLICATE_KEY) Urgent Pls

    Dear Guru
    We are loading data into (2 ODS and ! Cube) from one Infopkg.
    When i do delta update it throws following error
    (for one ODS it is green) and for another ODS and CUBE it is red.
    Runtime Error          ITAB_DUPLICATE_KEY                                                                               
    What happened?                                                                               
    Error in ABAP application program.                                                                               
    The current ABAP program "GP229LMXTFYDS5X6UC3ND03NIV2" had to be terminated 
    because one of the                                                         
    statements could not be executed.
    Please suggest me some solution, i am with client..its a serious issue now.
    Hope you understand
    Thanks in Adv
    Dev

    hi,
    hope if you retrigger the load it would be successful.
    force the request status to red and delete from the all target and retrigger the load.
    else chk if in the detail tab u could find the data upto PSa. if so delete the red request alone and pull the records to tohose records from PSA.
    Ramesh

  • 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

  • How to save blob data (variable length string) in a customized table?

    Dear Friends
    I have written a very simple program to update table with 2 fields which
    looks as follows.
    ========================================================
    Table name ZTESTBLOBDATA
    Field         Key          Init    Data Element   Data Type  Length  
    ID          Checked                 ZID                 NUMC        2
    BLOB                                   ZBLOB           STRING       0
    =========================================================
    FOllowing is the sample program that I have written (Transaction SE38).
    =========================================================
    REPORT ZTESTBLOBPROG
    TABLES: ZTESTBLOBDATA
    data :  itab like ZTESTBLOPDATA occurs 1 with header line.
    select * from ztestblobdata into table itab.
    ztestblobdata-id  =   sy-dbcnt +1.
    ztestblobdata -blob = 'abcdefghijklmnopqrstuvwxyz.'.
    insert ztestblobdata.
    =========================================================
    When I try to save and activate the program, I get the following
    error message
    'ztestblopdata' must be a flat structure. You cannot use internal
    tables, strings, references, or structures as components.
    ==========================================================
    Using the data type STRING is a must since it is a variable length
    data which varies from few characters to few gig.
    How can go around this problem.
    Any feedback will be highly appreciated.
    PS. I have checked old postings on SDN, spoken to my ABAP contacts and also couple of instructors from SAP when I took XI courses but didn't get a satisfactory answers.
    Edited by: Ram Prasad on Oct 15, 2008 12:28 PM

    Thanks a lot for the response.
    The string that we are getting is from another application via netweaver XI integration and is being sent as a string which has to be saved in an SAP table. I am not sure if IDOC option will suit our needs, but will definitely read more about it.
    If there is any other suggestion of feedback I would appreciate it a lot.;
    Tks
    Ram

  • Data type could be same base on source table for blank column

    We have an employee table as mentioned structure.
    EMPNO NUMBER(4),
    ENAME VARCHAR2(10),
    JOB VARCHAR2(9),
    MGR NUMBER(4),
    HIREDATE DATE,
    SAL NUMBER(7,2),
    COMM NUMBER(7,2),
    DEPTNO NUMBER(2)
    I want to create a view base on the same/exact structure data type-length. So is there any way we can define Data type while creating view.
    Actually, I need to create a view base on above structure but only want to get deptno and sum of salary column from emp table and rest of column will remain blank.
    Thanks

    Something like this???
    CREATE OR REPLACE VIEW v_tmp AS
         SELECT NULL empno,
                NULL ename,
                NULL job,
                NULL mgr,
                NULL hiredate,
                sal sal,
                dept_no
           FROM employees
       GROUP BY dept_no;
       Cheers,
    Manik.

  • Data Type change.

    Hi Expert.
    Please help me,   I have create Z table here create one Field like Below.
    APPROVED_STATUS
    CHAR
    1
    0
    Source
    then i was change pre-define data type length CHAR 1 to 10. as below
    APPROVED_STATUS
    CHAR
    10
    0
    Source
    Now When We save data through program 10 char is saved properly.
    Problem : When I Use SE16N t-code for changes related field data. At that time only 1 char inserted.
    Also Use SE14 for Regenerate Table Structure. but Result is none.
    Thanks & Regards.
    Pradip Patel.

    Hi Sachin Dandekar.
    I have already do this and also check Z table is Active.
    but result none.
    Thanks.
    Pradip Patel.

  • Checking table columns and data type before inserting

    I have some data coming from different sources and want to insert the data from those files into multiple tables.
    Before inserting the data I like to perform a check on data type, length, null etc so that I can avoid errors at the time of insert. If there is any problem with the data then I do not want to perform the insert and report the problems.
    Thanks

    If you have 10gR2 (10.2.0.4) you could use DML_ERROR_LOGGING.
    Read about it here, see the examples: http://tkyte.blogspot.com/2005/07/how-cool-is-this.html
    In short: it avoids errors during your transactions, afterwards you know which records failed and why.
    It's more or less the same functionality:
    your goal:
    check before transactions and avoid the insert of 'bad' records. (extra code, extra maintenance, more chance of bugs)
    dml_err_logging:
    insert 'bad' records during transaction automatically into a dedicated error table including error message.
    Edited by: hoek on Mar 24, 2009 6:56 PM

  • 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

Maybe you are looking for

  • How do I find and agree to the End User License Agreement

    I can't download any PDF's, I get a message that says open Adobe Reader and agree to the End User License Agreement. How do I access this??

  • Unable to create/use Java 1.3.1 library in JDev 10.1.2.1 and 10.1.3 EA

    Hi ! I'm working on a project that uses jdk1.3.1_03. I use Jdev 10.1.2 and want to migrate to either JDev 10.1.2.1 (latest production version) or 10.1.3 EA (Early Access). With JDev 10.1.2, I have no issue. However, with JDev 10.1.2.1 or 10.1.3 EA, i

  • How does RMA work

    Hi !! I'm about to buy a ZEN Vision:M but i'm worried about possible RMA problems. Some reviews i've read say some units have had HDD or battery issues that required RMA. I'm from Argentina but i'm going to buy the player in the US as it is not being

  • Oracle Enterprise Management Console doesn't work

    Hi, there, I meet a strange problem. I use JDeveloper to make jsp project. the database is oracle 9i. I install JDeveloper and database on the same machine. at first, everything is ok. but suddenly I found that I can't run Enterprise Manager Console.

  • MAC address access control default?

    I'm still using old graphite ABS, and all of them are using MAC address access control. Just by accident I connected a PB G4 with an internal extreme Airport card. The MAC address of this AirPort card wasn't in the access list of the ABS. It looks li