Import Error - IMPORT hist FROM DATABASE MONI(DB) ID MONIKEY

Hi,
   Iin my program I am using the statement
IMPORT hist FROM DATABASE MONI(DB) ID MONIKEY.
and Internal table structure of HIST is
DATA: BEGIN OF HIST OCCURS 0,
          DATE LIKE SY-DATUM,
          TIME LIKE SY-UZEIT,
          SIZE      TYPE P,
          FREE      TYPE P,
          USED      TYPE I,
          TABLES    TYPE I,
          INDICES   TYPE I,
          TSIZE     TYPE I,
          ISIZE     TYPE I,
         END OF HIST.
This IMPORT STatement is giving dump :
Runtime Errors         CONNE_IMPORT_WRONG_COMP_TYPE
Except.                CX_SY_IMPORT_MISMATCH_ERROR
Is that any way to check before this IMPORT statement,that HIST structure should be like this or like that.If I can find out the correct structure.I can change the HIST's structure and avoid the dump.
Guide me on this.
Regards,
Ashok

please refer to the  SAP note 1000275
i got the same error so i rectified it by changing  fields type of hist2 .
below declaration of hist2 data is giving error
data: begin of hist2 occurs 0,
        date like sy-datum,
        time like sy-uzeit,
        size      type p,     "Changed to 'p'
        free      type p,     "Changed to 'p
        used      type i,
        tables    type i,
        indices   type i,
        tsize     type i,
        isize     type i,
      end of hist2.
error rectified with below hist2 data( tsize and isize type is changed to p)
data: begin of hist2 occurs 0,
        date like sy-datum,
        time like sy-uzeit,
        size      type p,     "Changed to 'p'
        free      type p,     "Changed to 'p
        used      type i,
        tables    type i,
        indices   type i,
        tsize     type p,
        isize     type P,
      end of hist2.

Similar Messages

  • Import from database moni

    hi all
    i want to write a report like tcode st03n.
    so , i want to extract data from table moni.
    i have read some information about
    IMPORT <f1> [TO <g1>] <f2> [TO <g2>] ...   FROM DATABASE dbtab <ar>  ID <key>
    i have tried some statement like
    IMPORT xxx  FROM DATABASE moni(DD)
    ID '--TOTAL   H*MONT200808'.
    but, i could not extract the data.
    someone said, the structure of <f1> and the data in table moni  must have the same format to import  
    how can i know the data format in table moni ?

    please refer to the  SAP note 1000275
    i got the same error so i rectified it by changing  fields type of hist2 .
    below declaration of hist2 data is giving error
    data: begin of hist2 occurs 0,
            date like sy-datum,
            time like sy-uzeit,
            size      type p,     "Changed to 'p'
            free      type p,     "Changed to 'p
            used      type i,
            tables    type i,
            indices   type i,
            tsize     type i,
            isize     type i,
          end of hist2.
    error rectified with below hist2 data( tsize and isize type is changed to p)
    data: begin of hist2 occurs 0,
            date like sy-datum,
            time like sy-uzeit,
            size      type p,     "Changed to 'p'
            free      type p,     "Changed to 'p
            used      type i,
            tables    type i,
            indices   type i,
            tsize     type p,
            isize     type P,
          end of hist2.

  • IMPORT  x TO y FROM DATABASE dbtab(ar) ID Key

    Hi Experts,
    I'm upgrading me version of SAP to ECC6, so when I execute a program an error triggered when importing object "ADDONS".
    I got this message :
    An exception occurred that is explained in detail below.  
    The exception, which is assigned to class 'CX_SY_IMPORT_MIS not caught in procedure "ISU_BILLPRINT_INTERVALS_CLOSED"
    "(FUNCTION)", no by a RAISING clause.                                     
    Since the caller of the procedure could not have anticipate exception would occur, the current program is terminated. 
    The reason for the exception is: When attempting to import data, the structure of the complex object h1 _ "ADDONS"_h1 was not compatible with the target object. The error occurred with component no. 0.  
    When I launch the ABAP Debugger, It stops at this part of code :
    * Read basics and addons from database
      import basics to l_basics
             addons to RED_PARAMS
             from database rfdt(kk) id l_runkey.
    I realised a small research on the net to get an idea about The ABAP statement IMPORT  x TO y FROM DATABASE dbtab(ar) ID Key, I found this :
    TABLES INDX.
    DATA: INDXKEY LIKE INDX-SRTFD,F1(4),
    F2 TYPE P,BEGIN OF TAB3 OCCURS 10, CONT(4),
    END OF TAB3.
    INDXKEY = 'INDXKEY'.
    IMPORT F1 F2 TAB3 FROM DATABASE INDX(ST) ID INDXKEY.
    But I didn't understand what's  ST?
    So can any guru tell me what's the meaning of ST, and how can I resolve the above problem.
    I know that my problem consists on a difference between the structure of ADDONS and RED_PARAMS.
    NB: The structure of  RED_PARAMS is as follows :
    R_VKONT               
    R_PARTNER        
    R_PORTION             
    R_ABRVORG  
    R_FIKEY                    
    R_ERGRD            
    R_DRUCKDAT    
    SIMU                      
    INVOICED               
    TOBRELSD            
    GENPARA               
    TEST_PR                
    XSTR_PRINTPAR  
    EXLOG          
    PS: I don't have access to ADDONS (Which I don't know what is it?!!!)    
    Regard
    SMAALI Achraf

    We've encountered a very similar issue in an upgrade scenario. The same error message regarding missing or incorrect ADDONS ...
    Our issue was an inconsistency when passing 'old' parameters / program variants to 'mass activities' programs for transactions such as 'FPSCHEDULER' and/or 'EL16' ...
    We did also open an OSSmsg to raise awareness with SAP.
    However, a simple workaround/test would be to identify the related programs that are affected by the issue. The variants or relevant setting to these 'mass activities' programs are stored in the cluster table (such as 'DBTAB' or in our case 'RFDT') mentioned in the shortdump message.
    Due to upgrade-changes our stored input did not match the new structure for the upgrade environment.
    When you've identified the relevant program and their variants / parameters, simply recreate the variant or create a new one, so the cluster table stores a new record in the cluster table ...
    In our scenario, we were able to surpass the shortdump.
    This might be only one of few methods to solve related issues. In any case, this simple test can prove to be a good addition for your analysis when posting an OSS.

  • How to pass the Dynamically table name and RELID in IMPORT  x TO y FROM DATABASE dbtab(ar) ID Key

    Hello Expert,
    I wanted to know is there any way through which we can dynamically pass the table name in IMPORT condition.
    For e.g.
    DATA : PCLT TYPE DD03L-TABNAME.
    DATA: SET_RELID TYPE T52RELID-RELID.
    DATA: key TYPE PCLKEY.
    DATA: text_version TYPE PVRSN.
    DATA: BEGIN OF ptext OCCURS 132.
    DATA: line(132).
    DATA: END OF ptext.
    SET_RELID = 'TX'.
    PCLT = 'PCL1'.
    KEY = '00001000004005     9999123119960101000'.
    TEXT_VERSION = '01'.
    IMPORT TEXT_VERSION PTEXT FROM DATABASE <PCLT>(<SET_RELID>) ID KEY.
    If i use this then it gives me error message "The Dictionary structure or table "<PCLT>" is either not active or does not exist."
    Kindly help me in this matter.
    Thanks
    Srikanth

    Hi Srikanth
    I dont know if there is another solution, but this is what i did using a dynamic subroutine, please check it
    just add this lines to your code
    DATA: prog  TYPE c LENGTH 8,
           mess TYPE string,
           sid  TYPE string,
           wrd  TYPE string,
           dir  TYPE trdir,
           OFF(3).
    DATA: lt_code TYPE TABLE OF rssource-line.
    DATA: ls_code TYPE rssource-line.
    perform call_import using pclt set_relid key.
    form call_import USING p_pclt p_set_relid p_key.
       ls_code = 'PROGRAM SUBPOOL.'.
       append ls_code to lt_code.
       ls_code = 'form get_text tables ptext using p_key changing text_version.'.
       append ls_code to lt_code.
       ls_code = 'IMPORT text_version ptext from database'.
       append ls_code to lt_code.
       concatenate p_pclt '(' p_set_relid ')' into ls_code.
       append ls_code to lt_code.
       ls_code = 'id p_key.'.
       append ls_code to lt_code.
       ls_code = 'endform.'.
       append ls_code to lt_code.
       generate subroutine pool lt_code
                           name prog
                           message mess
                           SHORTDUMP-ID sid
                           WORD WRD
                           OFFSET OFF.
       IF SY-SUBRC EQ 0.
         perform GET_TEXT IN PROGRAM (prog) tables ptext
                                              USING p_key
                                              CHANGING text_version .
       ENDIF.
    endform.
    Hope this help
    Regards
    MC

  • Error retrieving data from database

    my problem is i cant connect my eclipse to database
    it display this error
    Error parsing data org.json.JSONException: Value <html><body><h2>Checking of type java.lang.String cannot be converted to JSONObject
    my apps can run correctly before...but last night i cant open it when want to retrieve any data from database
    can somebody help me?

    This doesn't seem to have anything to do with Eclipse, but I'd guess that a server-side error message is being returned a HTML rather than the JSON you expect.

  • Import from database an internal table with generic Type : Web Dynpro ABAP

    Hi everyone,
    i have a requirement in which i'm asked to transfer data flow between two frameworks, from WD Component to another. The problem is that i have to transfer internal tables with generic types. i used the import/ export from database approache but in that way i get an error message saying "Object references and data references not yet supported".
    Here is my code to extract a generic internal table from memory.
        DATA l_table_f4 TYPE TABLE OF REF TO data.
      FIELD-SYMBOLS: <l_table_f4> TYPE STANDARD TABLE.
      DATA lo_componentcontroller TYPE REF TO ig_componentcontroller .
      DATA: ls_indx TYPE indx.
      lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
      lo_componentcontroller->fire_vh_search_action_evt( ).
      ASSIGN l_table_f4 TO <l_table_f4>.
    *-- Import table for Help F4
      IMPORT l_table_f4 TO <l_table_f4> FROM DATABASE indx(v1) TO ls_indx ID 'table_help_f4_ID'.
    The error message is desplayed when last instruction is executed " IMPORT l_table_f4...".
    I saw another post facing the same problem but never solved "Generic Type for import Database".
    Please can anyone help ?
    Thanks & Kind regards.

    hi KIan,
    go:
    general type
    TYPE : BEGIN OF ty_itab,
               field1 TYPE ztab-field1,
               field2 TYPE ztab-field2,
    *your own fields here:
               field TYPE i,
               field(30) TYPE c,
               END OF ty_itab.
    work area
    DATA : gw_itab TYPE ty_itab.
    internal table
    DATA : gt_itab TYPE TABLE OF ty_itab.
    hope this helps
    ec

  • IMPORT from database with dynamic parameter list

    Hi Gurus,
    Iu2019m having problems during import from a cluster table.
    I wanu2019t to do an import with a dynamic parameter list, but I cannot get it to work.
    Sample code ********
    DATA: BEGIN OF st_key,
    report LIKE rsvar-report,
    variant LIKE rsvar-variant,
    END OF st_key.
    DATA dirtab1 LIKE cdir OCCURS 10 WITH HEADER LINE.
    DATA dirtab2 LIKE cdir OCCURS 10 WITH HEADER LINE.
    st_key-report = 'ZPRG'.
    st_key-variant = 'VAR1'.
    IMPORT DIRECTORY INTO dirtab1 FROM DATABASE vari(vb) ID st_key.
    IMPORT DIRECTORY INTO dirtab2 FROM DATABASE vari(va) ID st_key.
    DATA: tmp_var(100)   TYPE c.
    This works - P_BWTAR is a parameter from the selection screen registred in VARI
    I'm getting the content of the field in tmp_var
    IMPORT p_bwtar TO tmp_var FROM DATABASE vari(va) ID st_key.
    This does not work - the parameter P_BWTAR is in the dirtab2-name
    I'm not getting the content
    LOOP AT dirtab2.
        IMPORT dirtab2-name FROM DATABASE vari(va) ID st_key.
      ENDIF.
    ENDLOOP.
    I have tried the syntax IMPORT (dirtab2-name) ........
    but this fails the syntax check.
    Please - if you have any suggestions  :o)
    Best Regards,
    Vibeke

    Dear Vibeke,
    Could you please explain us how you solved the problem because you have the same issue ?
    thanks a lot
    KR
    véronique

  • Import/Export   From database

    Hi,
    I am trying to use "FKK_SAMPLE_1720" FM in my program .
    And this FM has a statement 
    Pick up add-on parameters
      IMPORT addons TO h_addons FROM DATABASE rfdt(kk) ID h_runkey.
    1. If want to export values to this id, can any tell me how i can give the code to export the values to this ID? (little more detailed with at least one value appending into structure.)
    2. This FM is calling in other SAP transactions(FPCOPARA) , when other programs also export values to this ID is it going to effect any way when I execute  my program?( like is this export ID is local to every ABAP program?) ..
    Please let me assp.
    Thanks in advance for ur time..
    Rajesh.

    Hi,
    Any one got a chance to look at this issue?
    thanks.

  • IMPORT ... FROM MEMORY

    Hi,
    I would like to know if there is a way to <b>generically</b> import an object stored into memory.
    Indeed, IMPORT.. FROM MEMORY doesn't seem to accept any reference of field-symbols or anything of that sort.
    The class CL_ABAP_EXPIMP_MEM looks like it only provides description of the content.
    Thanks in advance.
    Best regards,
    Guillaume

    Hai
    Check the following Code
    IMPORT - Get data
    Variants
    1. IMPORT f itab FROM MEMORY.
    2. IMPORT f itab FROM DATABASE dbtab(ar) ID key.
    3. IMPORT DIRECTORY INTO itab FROM DATABASE dbtab(ar) ID key.
    4. IMPORT f itab FROM DATASET dsn(ar) ID key.
    Variant 1
    IMPORT f itab FROM MEMORY.
    Additions
    1. ... TO g (for each field f to be imported)
    2. ... ID key
    Effect
    Imports data objects (fields or tables) from the ABAP/4 memory (see EXPORT ). Reads in all data without an ID that was exported to memory with "EXPORT ... TO MEMORY." . In contrast to the variant IMPORT FROM DATABASE , it does not check that the structure matches in EXPORT and IMPORT .
    The return code value is set as follows:
    SY-SUBRC = 0 The data objects were successfully imported.
    SY_SUBRC = 4 The data objects could not be imported, probably
    because the ABAP/4 memory was empty.
    The contents of all objects remain unchanged.
    Addition 1
    ... TO g (for each field f to be imported)
    Effect
    Takes the field contents stored under f from the global ABAP/4 memory and places them in the field g .
    Addition 2
    ... ID key
    Effect
    Imports only data stored in ABAP/4 memory under the ID key .
    The return code value is set as follows:
    SY-SUBRC = 0 The data objects were successfully imported.
    SY_SUBRC = 4 The data objects could not be imported, probably
    because an incorrect ID was used.
    The contents of all objects remain unchanged.
    Variant 2
    IMPORT f itab FROM DATABASE dbtab(ar) ID key.
    Additions
    1. ... TO g (for each field f to be imported)
    2. ... MAJOR-ID maid (instead of ID key )
    3. ... MINOR-ID miid (together with MAJOR-ID maid )
    4. ... CLIENT h (after dbtab(ar) )
    5. ... USING form
    Effect
    Imports data objects (fields, field strings or internal tables) with the ID key from the area ar of the database dbtab (see also EXPORT )
    The return code value is set as follows:
    SY-SUBRC = 0 The data objects were successfully imported.
    SY_SUBRC = 4 The data objects could not be imported, probably
    because an incorrect ID was used.
    The contents of all objects remain unchanged.
    Example
    Import two fields and an internal table:
    TABLES INDX.
    DATA: INDXKEY LIKE INDX-SRTFD,
          F1(4), F2 TYPE P,
          BEGIN OF TAB3 OCCURS 10,
            CONT(4),
          END OF TAB3.
    INDXKEY = 'INDXKEY'.
    IMPORT F1 F2 TAB3 FROM DATABASE INDX(ST) ID INDXKEY.
    Notes
    The structure of fields, field strings and internal tables to be imported must match the structure of the objects exported to the dataset. In addition, the objects must be imported under the same name used to export them. If this is not the case, either a runtime error occurs or no import takes place.
    Exception: You can lengthen or shorten the last field if it is of type CHAR , or add/omit CHAR fields at the end of the structure.
    Addition 1
    ... TO g (for each field f to be imported)
    Effect
    Takes the field contents stored under the name f from the database and places them in g .
    Addition 2
    ... MAJOR-ID maid (instead of ID key )
    Addition 3
    ... MINOR-ID miid (together with MAJOR-ID maid )
    Effect
    Searches for a record with an ID that matches maid in the first part (length of maid ) and - if MINOR-ID miid is also specified - is greater than or equal to miid in the second part.
    Addition 4
    ... CLIENT h (after dbtab(ar) )
    Effect
    Takes the data from the client h (only with client-specific import/export databases).
    Example
    TABLES INDX.
    DATA F1.
    IMPORT F1 FROM DATABASE INDX(AR) CLIENT '002' ID 'TEST'.
    Addition 5
    ... USING form
    Effect
    Does not read the data from the database. Instead, calls the FORM routine form for each record read from the database without this addition. This routine can take the data key of the data to be retrieved from the database table work area and write the retrieved data to this work area schreiben; it therefore has no parameters.
    Note
    Runtime errors
    Depending on the operands or the datsets to be imported, various runtime errors may occur.
    Variant 3
    IMPORT DIRECTORY INTO itab FROM DATABASE dbtab(ar) ID key.
    Additions
    1. ... CLIENT h (after dbtab(ar) )
    Effect
    Imports an object directory stored under the specified ID with EXPORT into the table itab .
    The return code value is set as follows:
    SY-SUBRC = 0 The directory was successfully imported.
    SY_SUBRC = 4 The directory could not be imported, probably because an incorrect ID was used.
    The internal table itab must have the same structure as the Dictionary structure CDIR (INCLUDE STRUCTURE ).
    Addition 1
    ... CLIENT h (after dbtab(ar) )
    Effect
    Takes data from the client h (only with client-specific import/export databases).
    Example
    Directory of a cluster consisting of two fields and an internal table:
    TABLES INDX.
    DATA: INDXKEY LIKE INDX-SRTFD,
          F1(4), F2 TYPE P,
          BEGIN OF TAB3 OCCURS 10,
            CONT(4),
          END OF TAB3,
          BEGIN OF DIRTAB OCCURS 10.
            INCLUDE STRUCTURE CDIR.
    DATA  END OF DIRTAB.
    INDXKEY = 'INDXKEY'.
    EXPORT F1 F2 TAB3 TO
           DATABASE INDX(ST) ID INDXKEY.    " TAB3 has 17 entries
    IMPORT DIRECTORY INTO DIRTAB FROM DATABASE INDX(ST) ID INDXKEY.
    Then, the table DIRTAB contains the following:
    NAME OTYPE FTYPE TFILL FLENG
    F1 F C 0 4
    F2 F P 0 8
    TAB3 T C 17 4
    The meaning of the individual fields is as follows:
    NAME : Name of stored object OTYPE : Object type ( F : Field, R : Field string / Dictionary structure, T : Internal table) FTYPE : Field type ( C : Character, P : Packed, ...)
    Field strings and internal tables have the type C. TFILL : Number of internal table lines filled FLENG : Length of field in bytes
    With internal tables: Length of header line.
    Variant 4
    IMPORT f itab ... FROM DATASET dsn(ar) ID key.
    Note
    This variant is not to be used at present.
    IMPORT DYNPRO - Import a screen
    Basic form
    IMPORT DYNPRO h f e m ID id.
    Effect
    Imports the screen specified in the field id . Loads the screen information into the structure h (screen header, structure D020S ) and into the internal tables f (field list, structure D021S ), e (flow logic, structure D022S ) and m (matchcode information, structure D023S ).
    The return code value is set as follows:
    SY-SUBRC = 0 The screen was successfully imported.
    SY_SUBRC = 4 The screen does not exist.
    Thanks & regards
    Sreeni

  • Export and import UTF8 data between different databases

    Hi,
    I want to know how to do the following:
    export data from database 1 and then import the data to database 2
    I export user, without grants, with table data, without compress extents
    database 1:
    machine: SunOS 5.8 Generic_108528-14 sun4u sparc SUNW,Sun-Fire-280R
    oracle version: 8.1.7
    charset: SIMPLIFIED CHINESE_CHINA.UTF8
    database 2:
    machine: SunOS 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-2
    oracle version: 8.1.6
    charset: AMERICAN_AMERICA.UTF8
    Question:
    1. how to do it by using exp and imp command?
    2. Before exporting, what NLS_LANG should I set?
    3. Before importing, what NLS_LANG should I set?
    I can export data but got errors when importing as follow:
    Export file created by EXPORT:V08.01.07 via conventional path
    import done in UTF8 character set and UTF8 NCHAR character set
    IMP-00069: Could not convert to environment national character set's handle
    IMP-00000: Import terminated unsuccessfully
    Thanks a lot.
    Regards,
    Kenny

    Hi, Nat,
    Thanks for your post:
    I have tried the following:
    Case 1:
    - set environment NLS_LANG="SIMPLIFIED CHINESE_CHINA.UTF8" in machine 1
    - export data from machine 1
    - ftp the export from machine 1 to machine 2 in binary mode
    - set environment NLS_LANG=AMERICAN_AMERICA.UTF8 in machine 2
    - import the data to machine 2
    Result:
    Export file created by EXPORT:V08.01.07 via conventional path
    import done in UTF8 character set and UTF8 NCHAR character set
    IMP-00069: Could not convert to environment national character set's handle
    IMP-00000: Import terminated unsuccessfully
    Case 2:
    - set environment NLS_LANG="SIMPLIFIED CHINESE_CHINA.UTF8" in machine 1
    - export data from machine 1
    - ftp the export from machine 1 to machine 2 in binary mode
    - set environment NLS_LANG="SIMPLIFIED CHINESE_CHINA.UTF8" in machine 2
    - import the data to machine 2
    Result:
    Export file created by EXPORT:V08.01.07 via conventional path
    import done in UTF8 character set and UTF8 NCHAR character set
    IMP-00069: Could not convert to environment national character set's handle
    IMP-00000: Import terminated unsuccessfully
    Case 3:
    - set environment NLS_LANG=AMERICAN_AMERICA.UTF8 in machine 1
    - export data from machine 1
    - ftp the export from machine 1 to machine 2 in binary mode
    - set environment NLS_LANG=AMERICAN_AMERICA.UTF8 in machine 2
    - import the data to machine 2
    Result:
    Export file created by EXPORT:V08.01.07 via conventional path
    import done in UTF8 character set and UTF8 NCHAR character set
    IMP-00069: Could not convert to environment national character set's handle
    IMP-00000: Import terminated unsuccessfully
    Case 4:
    - set environment NLS_LANG=AMERICAN_AMERICA.UTF8 in machine 1
    - export data from machine 1
    - ftp the export from machine 1 to machine 2 in binary mode
    - set environment NLS_LANG="SIMPLIFIED CHINESE_CHINA.UTF8" in machine 2
    - import the data to machine 2
    Result:
    Export file created by EXPORT:V08.01.07 via conventional path
    import done in UTF8 character set and UTF8 NCHAR character set
    IMP-00069: Could not convert to environment national character set's handle
    IMP-00000: Import terminated unsuccessfully
    database 1:
    machine: SunOS 5.8 Generic_108528-14 sun4u sparc SUNW,Sun-Fire-280R
    oracle version: 8.1.7
    charset: SIMPLIFIED CHINESE_CHINA.UTF8
    database 2:
    machine: SunOS 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-2
    oracle version: 8.1.6
    charset: AMERICAN_AMERICA.UTF8
    I cannot successfully import the exported data from database 1 to database 2. What is the correct procedure and setting in NLS_LANG in both machines?
    Can I import 8.1.7 exported data to 8.1.6 database?
    Please help.
    Regards,
    Kenny

  • IMPORT DIRECTORY +IMPORT f1

    how does thestatement:-
    IMPORT DIRECTORY INTO <dirtab>
                     FROM DATABASE <dbtab>(<ar>)
                     [CLIENT <cli>] ID <key>.
    differentiates with :-
    IMPORT <f1> [TO <g1>] <f2> [TO <g2>] ...
           FROM DATABASE <dbtab>(<ar>)
           [CLIENT <cli>] ID <key>|MAJOR-ID <maid> [MINOR-ID <miid>].

    hi,
    first statement:
    a table of contents of all data objects of a data cluster that was written to the database table
    second statement:
    some fields of contents of all data objects of a data cluster that was written to the database table

  • JDBC adapter missed data from database

    Hello Experts
    We have a repeatative issues in JDBC sender adapter .While it is reading data from database sometimes we are facing the problem tat all the data is not read by adapter but PI read date is generated for all the records.
    Some times the issue happened like PI processed first three and last three data but missed 2-3 records from the middle portion.
    Please help me to know the reason for this error and how to resolve this types of error.
    Thanks in advance .
    Somenath

    Hello Stefan ,
    Thanks a lot for your reply .
    We have used the below  Select and update statement
    I am not expert in select query .Please suggest if the query is okay or it can be the error.
    SELECT * FROM [database].[dbo].[table]  WHERE [Delivery_Number] = (SELECT TOP 1 [Delivery_Number] FROM [database].[dbo].[table] where [PI_Read_Date] IS NULL ORDER BY [Delivery_Number] ASC) AND [PI_Read_Date] IS NULL ORDER BY [Transaction_ID] ASC
    UPDATE [database].[dbo].[table] SET [PI_Read_Date] = getdate() WHERE [Transaction_ID] in ( SELECT [Transaction_ID] FROM [database].[dbo].[table] WHERE [Delivery_Number] = (SELECT TOP 1 [Delivery_Number] FROM [database].[dbo].[table] where [PI_Read_Date] IS NULL) AND [PI_Read_Date] IS NULL)
    Please let me know what new features we can get if we set the the advanced parameter serializable.
    Hello Navin,
    We are using toad at data base side .If the lock occurs in the database side is it possible to generate tHe PI read date as the data is not read by PI?
    Thank you once again for you help.
    BR.
    somenath

  • OBIEE Error while importing table from database

    Hi
    I am getting the following error when i am trying to import table from database.
    [nQSError: 16001]ODBC error state: IM004 code:0 message:
    [Microsoft][ODBC Driver Manager] Driver`s SQLAllocHandle on SQL_HANDLE_ENV failed.
    Any idea y such error.
    Thanks and Regards,
    Andy

    Looks like an error in the ODBC driver, not OBIEE as such.
    Have you tried googling it?
    Can you post details about your OS and DB.

  • Import error on Oracle Database Express 10.2.0.1.0

    Hi,
    I try to import data from oracle V10.01.02 running on SUSE10 Linux to
    oracle 10g (10.1.0.2.0) running on Windows Server 2003.
    I am able to import the big part from my ata, but not all data.
    The begin of my log file is:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0
    - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V10.01.00 via conventional path
    And after some time I receive:
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "SAFCI"."EMP"."NAME"
    (actual: 65, maximum: 64)
    Column 1 1000005025
    Column 2 ??????? ???????
    Column 3 19-SEP-2002:00:00:00
    Column 4 9089
    Column 5 ??. ?????
    Column 6 1.9828
    Column 7 377.77
    Column 8 75.55
    Column 9 ???????????? ???????? ? ??? ???? ? 32 ??.
    Column 10 19-SEP-2002:00:00:00
    Column 11 ?????? ?????, ?.?. 172747675, ???. 23.11.200?
    Column 12 ????????? ?????????
    Column 13 ? ????
    Column 14 T
    Column 15
    Column 16 F
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "SAFCI"."EMP"."NAME"
    (actual: 65, maximum: 64)
    Column 1 1000006408
    Column 2 ??????? ???????
    Column 3 05-NOV-2002:00:00:00
    Column 4 9089
    Column 5 ??. ?????
    Column 6 1.939
    Column 7 82
    Column 8 16.4
    Column 9 ?????????? ? ???? ???? ? 40 ??.
    Column 10 05-NOV-2002:00:00:00
    Column 11 ?????? ?????, ?.?. 172747675, ???. 23.11.200?
    Column 12 ????????? ?????????
    Column 13 ? ????
    Column 14 T
    Column 15
    Column 16 F 36943 rows imported
    I can not understand this problem, because I exported the hole user and
    also try to import the hole user in my new system.
    Pls., can some one point me to some paper about this problem or help me
    to solve the problem.
    Thanks
    configuration Oracle10g (EXP source)
    SQLWKS> select * from nls_database_parameters
    2>
    PARAMETER VALUE
    NLS_LANGUAGE BRAZILIAN PORTUGUESE
    NLS_TERRITORY BRAZIL
    NLS_CURRENCY R$
    NLS_ISO_CURRENCY BRAZIL
    NLS_NUMERIC_CHARACTERS ,.
    NLS_CHARACTERSET WE8ISO8859P1
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD/MM/RR
    NLS_DATE_LANGUAGE BRAZILIAN PORTUGUESE
    NLS_SORT WEST_EUROPEAN
    NLS_TIME_FORMAT HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT DD/MM/RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT DD/MM/RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY Cr$
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.1.0.2.0
    configuration Oracle10g Express (IMP destination)
    SQL> select * from nls_database_parameters;
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET AL32UTF8
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.2.0.1.0

    Hi
    Your import database use a multibyte characterset, your export db a singlebyte cs.
    This means, a char can need more than 1 byte.
    Try this before import (and before create tables!!):
    alter system set nls_length_semantics=char;Greetings
    Sven

  • IMPORT FROM DATABASE doesn't work in Web Dynpro

    Hi all, I want to use the code at the bottom to get the last packages visited by a user I specify.
    But I'm getting this error:
    IMPORT var_1 ... var_N FROM DATABASE is not supported in the OO
    context. Use IMPORT name_1 TO var_1 ... name_n TO var_n FROM DATABASE
    ... instead. var_n DATABSE ... insted var_n FROM DATABASE.
    Could someone please show me how I can resolve this?
      TYPES : BEGIN OF ty_key,
                uname  TYPE euf4values-uname,
                object TYPE euf4values-object,
              END OF ty_key.
      TYPES : BEGIN OF ty_value_table,   " Last F4 Values
                obj_name    TYPE tadir-obj_name,
                encl_object TYPE tadir-obj_name,
                position    TYPE i,
              END OF ty_value_table.
      DATA : gs_key TYPE ty_key,
             f4_last_values TYPE TABLE OF ty_value_table,
             gs_value_table TYPE ty_value_table.
      gs_key-uname  = item_user.
      gs_key-object = 'K'.
      IMPORT f4_last_values FROM DATABASE euf4values(eu) ID gs_key.

    Did you check the online documentation ? [http://help.sap.com/abapdocu_70/en/ABAPIMPORT_MEDIUM.htm#&ABAP_ALTERNATIVE_4@4@]
    I see your code has differences from the example provided in the standard documentation.

Maybe you are looking for

  • FAQ: I found a bug. How do I write a useful bug report? Or send bug files to Adobe?

    If you think you've found a bug in Photoshop CS6, please post your findings here on the forums. Here is a list of the information we'll want for you to gather at a minimum: Clear and concise steps so that someone who isn't in front of your comptuer c

  • Bluetooth phone connection with car

    i have nokia n70 mobile , when i am trying to connect my mobile to my volkswagen car phone via bluetooth i get a massage ( no compatable phone found ) but when i try another mobile it is working . but i can connect my mobile with other bluetooth devi

  • Connecting Nokia to a dictating machine

    I would like to connect my Nokia 6600 to a Sony dictating machine to record calls that I recieve for refrence . , is there a cable that connects to Nokia and have a lead ( Mic and/or Ear ) If there is such a lead available , what is called, where I c

  • Return order has more quantity than original order - one item

    Gurus, In one of the original sales order (VA01 tcode) having quantity as 1 (ie one line item) and then when return order is posted against that original order using order idoc . Return order idoc has only one quantity for that item. But return sales

  • JAXB cannot unmarshall and previous posts do not seem to be related

    Hello, Recently, we had to change some of our XSDs, so I went and downloaded the latest Java web services pack (v1.6) and made the changes to the schema (only one new element). First, I realized we were using a 0.75 EA1 release of JAXB and that I wou