Deletion of duplicated table entry (SAP DB)

Hi!
I am facing with the following error after the system copy of SAP ERP 2005 on Windows migrated from MS SQL to SAP DB.
By entering into the db-relevant tcodes (DB13, dbacockpit, etc.) the following error appears:
Runtime Errors ITAB_DUPLICATE_KEY
Date and Time 24.05.2008 14:01:23
Short text
A row with the same key already exists.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_DB6_SYS====================CP" had to be
terminated because it has come across a statement that unfortunately cannot be executed.
Error analysis
An entry was to be entered into the table "\CLASS=CL_DB6_SYS\DATA=SYSTEMS"
(which should have had a unique table key (UNIQUE KEY)).
However, there already existed a line with an identical key.
The insert-operation could have ocurred as a result of an INSERT- or
MOVE command, or in conjunction with a SELECT ... INTO.
The statement "INSERT INITIAL LINE ..." cannot be used to insert several
initial lines into a table with a unique key.
My questions:
1) How can I identify which DB-table is relevant?
2) How can I delete the duplicated entry?
a) with SAP tcodes
b) on DB level (what is the procedure)
Thank you very much!
regards
Thom

Hello Thom
> Error in the ABAP Application Program
> The current ABAP program "CL_DB6_SYS====================CP" had to be
> terminated because it has come across a statement that unfortunately cannot be executed.
> Error analysis
> An entry was to be entered into the table "\CLASS=CL_DB6_SYS\DATA=SYSTEMS"
> (which should have had a unique table key (UNIQUE KEY)).
Apparently there is a duplicate entry in the static private attribute SYSTEMS of this class.
If you look at the definition of type DB6CC_SYSTEMS you see where the error cause lies:
TYPE-POOLS: DB6CC. " DB6: Central Type Declarations for CCMS Monitoring
  db6cc_systems type hashed table of db6admsys
                   with unique key sysid,
I check the Where-Used-List for data element DB6DBREL of structure DB6ADMSYS which is used in DB table DB6NAVSYST. Thus, my guess is here is your table you are searching for.
However, you need to find out where the duplicated entries in the class (instance) come from.
Regards
  Uwe

Similar Messages

  • Deletion of duplicated table entry

    Hi!
    I am facing with the following error after the system copy of SAP ERP 2005 on Windows migrated from MS SQL to SAP DB.
    By entering into the db-relevant tcodes (DB13, dbacockpit, etc.) the following error appears:
    Runtime Errors ITAB_DUPLICATE_KEY
    Date and Time 24.05.2008 14:01:23
    Short text
    A row with the same key already exists.
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "CL_DB6_SYS====================CP" had to be
    terminated because it has come across a statement that unfortunately cannot be executed.
    Error analysis
    An entry was to be entered into the table "\CLASS=CL_DB6_SYS\DATA=SYSTEMS"
    (which should have had a unique table key (UNIQUE KEY)).
    However, there already existed a line with an identical key.
    The insert-operation could have ocurred as a result of an INSERT- or
    MOVE command, or in conjunction with a SELECT ... INTO.
    The statement "INSERT INITIAL LINE ..." cannot be used to insert several
    initial lines into a table with a unique key.
    My questions:
    1) How can I identify which DB-table is relevant?
    2) How can I delete the duplicated entry?
    a) with SAP tcodes
    b) on DB level (what is the procedure)
    Thank you very much!
    regards
    Thom

    Hi Thom,
    from one side you can look in the WP log file where the short dump occured. The failed SQL statement is rather often logged there.
    From the other side as the issue is reproducable you can take the SQL trace and see which SQL statement failed.
    On the DB level you can delete the stamente with the usual DELETE statement. This exact description you will find in our documentation please follow the path from the SAP note 767598 in depend of your DB version.
    Best regards,
    Oksana

  • Transport table entries sap to sap using rfc

    Hi Guru's,
               I want to write a program for update one table entries of sap system  to onother table of sap system using RFC establishment.
    If you have any example code kindly give it to me.
    Thanks & Regards,
    Lakshman.annamaneni

    Hi,
    POST - 1
    Fisrt create RFC Destination in SM59 between sender & receiver system.
    *Sender System:*
    FUNCTION XX_RFC_READ_SPFLI.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(CARRID) LIKE  SPFLI-CARRID
    *"     VALUE(CONNID) LIKE  SPFLI-CONNID
    *"  EXPORTING
    *"     VALUE(EX_SPFLI) LIKE  SPFLI STRUCTURE SPFLI
    *"     VALUE(SYS) LIKE  SY-SYSID
    *"  EXCEPTIONS
    *"      INVALID_DATA
      SELECT SINGLE * FROM spfli INTO spfli_workarea
             WHERE  carrid      = carrid
             AND    connid      = connid.
      IF sy-subrc EQ 0.
        ex_spfli = spfli_workarea.
      ELSE.
        RAISE invalid_data.
      ENDIF.
      Sys   = sy-sysid.
    ENDFUNCTION.
    *NEXT: create a Prog.*
    REPORT XX_RFC_Tutorial.
    Global Data Declaration
    TABLES: spfli.
    PARAMETERS: p_carrid LIKE spfli-carrid DEFAULT 'LH',
                p_connid LIKE spfli-connid DEFAULT '400'.
    DATA: SYSTEM LIKE SY-SYSID.
    * Calling the Function
    CALL FUNCTION 'XX_RFC_READ_SPFLI'
       EXPORTING
             carrid       =  p_carrid
             connid       =  p_connid
       IMPORTING
             ex_spfli     =  spfli
             sys          =  system
       EXCEPTIONS
             invalid_data =  1.
    * Handling Exceptions
    CASE sy-subrc.
       WHEN 1.
          WRITE 'No data available'.
           EXIT.
    ENDCASE.
    * Displaying Results
    WRITE: spfli-carrid,
           spfli-connid,
           spfli-cityfrom,
           spfli-cityto,
           spfli-deptime,
           spfli-arrtime.
    See the next post for Receiver System:
    Anil.

  • Transport deletion of a table entry

    Hi,
    I want to delete one entry from a (system) table and transport it.
    How can I do this? I tried to make a manual entry in the transport of type TABU, but how to tell it to be a delete.
    Thanks
    Bruno

    Hi,
    If you are using ECC 6.0.
    GOTO se16n --> Give the table Name -> Type &SAP_EDIT>Now it will be editable mode.
    Now you can add, delete, modify the table manually.
    Regards
    Arbind

  • How to Edit Key Fields or Delete Lines from Table Entries

    Hi Experts
    While releasing Transport Request Number we are getting an error during release. This seems to be as a result of improper data feed while running of eCATT's . The dates in the all these fields have been entered as "  .   .0101" which is in the wrong format ( eg. Table T811F u2013u201CSDATEu201D field). "SDATE" seems to the key field of the table . Can you please guide on how we may delete these lines or edit the field in the table.
    Regards
    Ananda

    Hello,
    I dont think its a good idea to delete the records from those standard tables. You rather re-run your ecatt and edit/update the existing records and try.
    regds,
    Kiran

  • Deletion of table entries(without maintenance view)  in production

    Hi Sap All.
    here i have got a task to change the data type of one particular field and to delete all the table entries of this table in production.
    so in Dev I have tired with z program saved in local object  (DELETE FROM Table).
    i just want to know how i can delete all the entries of table in production.
    regards.
    Varma

    Hello,
    You can also use transaction SE14.
    Start SE14
    Enter the table name
    Select the radio button "Delete data".
    Push the button "Activate and adjust database".
    This will drop your table in the DB and recreate it as well as all related indexes.
    Indexes are not impacted when you do a regular DELETE statement unless you rebuild your indexes.
    Of course you can only do this if data can be deleted for a specific table in ALL clients.
    Wim

  • How to delete table entries with SE16 in debugging mode?

    We are trying to delete some table entries which cause our InfoPackage short dumps in BW system.  The problem is that we can only see the Display menu item with SE16 and the Delete menu item is dimmed that we are unable to conduct the deletion.  SAP Support suggest to use debug with SE16 to do the deletion, but we can't figure out how!
    Anyone's idea is greatly appreciated!

    Then you are not at the right place.   Lets start at the begining.
    Go to SE16.
    Enter table name.
    Hit F7.
    Enter selection criteria.
    hit F8.
    Double click the specific record that you want to delete.
    In the transaction code field at the top, enter  "/H" and hit enter.  Debug is switch on.
    Now hit enter again. 
    You should now be in debug and you should see this code..
    form set_status_val tables ntab structure x031l           
                        using code name next for_lines.       
      field-symbols: <field>.                                                                               
    refresh exclude_tab.                                    
      if code = 'SHOW'.                                       
        set titlebar 'TAB' with name 'anzeigen'(100).         
      elseif code = 'EDIT'.                                   
        set titlebar 'TAB' with name 'ändern'(101).           
      elseif code = 'INSR'.                                   
        set titlebar 'TAB' with name 'einfügen'(102).         
      elseif code = 'ANVO'.                                   
        set titlebar 'TAB' with name 'einfügen'(102).         
      elseif code = 'DELE'.                                   
        set titlebar 'TAB' with name 'löschen'(103).          
    Notice that there is a field called CODE in the IF statement.
    Now enter the word "CODE" in the field names list,  change the value to DELE and click the pencil.  Hit F8.  Now you can delete the entry.
    Regards,
    Rich Heilman

  • Table Entry Deletion

    Dear Sap Guru's ,
    In the Taxes SD there are county codes which are present in the Development server.  The same entries are there in the production server.
    But in production I have more county codes which I do not want.
    My Production is not modifiable how can I delete the County codes from the table.
    regards,
    SAP SD

    HI,
      u can do a request in Development that create the entries in which u want to remove in the production server and then delete the entries in the development and do this activity in another request and move the second request to the production ur problem will be solved.
    If it hepls reward me.
    Regards,
    kishore.

  • KPI's for SAP-Table entries.

    Hi Guys,
    I am eager to know whether there are some tools in SAP to check the KPI's of SAP-Tables. Let us say we are having a Table where we insert in every 3 seconds 10 entries in this Table and delete them in every 3 minutes and it can also happen that these entries also remain in the table untill the errors are rectified. It means we insert entires and once they are sucessfull a batch job deletes them and when they fail to process sucessfully then they remain in the table.
    So I would like to know where there is way or tool to find out how many entries are inserted resp. how many are sucessfully deleted in this table in a day and how many entires remain failure ?
    Cheers
    Sanjeev

    Hi Sanjeev,
    >
    Sanjeev Kumar Kedarshetty wrote:
    > Hi,
    >
    > Thanks for your input, but this is not really what I am searching for.  I am searching for how many entires are totally inserted into a table in a day.
    > Sanjeev.
    On SAP level we have some stats like nr. of changes per table... .
    On DB02 you can analyze how much space a table allocates...
    On database level (e.g. on ORACLE) one can analyze the nr. of INSERTS / UPDATES / DELETES per table... .
    And the database statistics will not help as well since they are not updated daily...
    If you really need that information you have to do something on your own.... .
    Kind regards,
    Hermann

  • Query regarding Standard table vs Z-table in SAP about deletion of data?

    Dear Experts,
    Can we delete the data form the standard table in SAP. If yes than will it ask for the request to make them effective itself, because when we delete the data from any ztable, it will not ask for the request to make them effective at the produstion server ?  If possible plz update me with yr elaborate and detailed concerneds.
    Regards,
    Akg

    Sorry to intervene here Dhina but that is just halfways correct.
    If delivery class NOT = C then it is NOT a customizing table and therefore you wont get any transport request updating or deleting data from it.
    But if it is a customizing table then you got to look for the recording routine. You can see this by viewing your table in SE11, then using the menu like following:
    utilities->table maintainance generator.
    Then look at the info in the bottowm frame. if "standard recording routine" is tagged, then you get a transport request.
    If the other option is tagged you wont get it. What again means you can customize this table directly in the system where you need those entries.
    why is that?
    well assume there is a customizing for e.G. materials, depending on materialnumber. If that table would have a standard recording routine you would need ALL your materials in your development system which would be quite unusual.
    Edited by: Florian Kemmer on Jun 9, 2011 2:00 PM
    some typos corrected, left some for sure

  • Open HUB ( SAP BW ) to SAP HANA through DB Connection data loading , Delete data from table option is not working Please help any one from this forum

    Issue:
    I have SAP BW system and SAP HANA System
    SAP BW to SAP HANA connecting through a DB Connection (named HANA)
    Whenever I created any Open Hub as Destination like DB Table with the help of DB Connection, table will be created at HANA Schema level ( L_F50800_D )
    Executed the Open Hub service without checking DELETING Data from table option
    Data loaded with 16 Records from BW to HANA same
    Second time again executed from BW to HANA now 32 records came ( it is going to append )
    Executed the Open Hub service with checking DELETING Data from table option
    Now am getting short Dump DBIF_RSQL_TABLE_KNOWN getting
    If checking in SAP BW system tio SAP BW system it is working fine ..
    will this option supports through DB Connection or not ?
    Please follow the attachemnet along with this discussion and help me to resolve how ?
    From
    Santhosh Kumar

    Hi Ramanjaneyulu ,
    First of all thanks for the reply ,
    Here the issue is At OH level ( Definition Level - DESTINATION TAB and FIELD DEFINITION )
    in that there is check box i have selected already that is what my issue even though selected also
    not performing the deletion from target level .
    SAP BW - to SAP HANA via DBC connection
    1. first time from BW suppose 16 records - Dtp Executed -loaded up to HANA - 16 same
    2. second time again executed from BW - now hana side appaended means 16+16 = 32
    3. so that i used to select the check box at OH level like Deleting data from table
    4. Now excuted the DTP it throws an Short Dump - DBIF_RSQL_TABLE_KNOWN
    Now please tell me how to resolve this ? will this option is applicable for HANA mean to say like , deleting data from table option ...
    Thanks
    Santhosh Kumar

  • Re:How can we delete the concurrent node entry from the FND_NODE table

    HI ,
    11.5.10.2 on Oracle Solaris on SPARC (64-bit) .
    How can we delete the concurrent node entry from the FND_NODES table without running Autoconfig.
    Currently we are having 3 nodes RAC and we are deciding to remove one node from the RAC and all 3 nodes are registered as concurrent node with application but concurrent manager is running only on one node.
    Lot of the custom configuration we did it at application web tire level. If we run the Autoconfig at that time we need to redo those changes again that we are trying to avoid.
    Regards .

    we are trying to avoid to run FND_CLONE.setup_clean because it will delete all the nodes entries from the FND_NODES.If those entries are invalid then they should be deleted.
    Running AutoConfig after purging the table will populate it with the correct entries.
    In order to populate the nodes entries again we need to run autoconfig and it will change the server id in fnd_nodes and then we need to redo the ADI client configuration on users PC and redo all the changes that we made in jserv and webserver.For ADI Clients, you should use the correct server ids which will be populated in the table for you once you run AutoConfig.
    For jserv configuration, you can refer to (Customizing an AutoConfig Environment [ID 270519.1]) to make the preserve all your custom setup/configuration after running AutoConfig.
    If there any custom script to delete only one node from the fnd_node so that we don't need to run autoconfig after that, then I really appreciate.No.
    Thanks,
    Hussein

  • Table entries got deleted  ,how can we find who has deleted these entries

    Hi Team,
    We are using ECC6 /Oracle,few days back 2000 entries got deleted from one table.
    How can we get the log for deleted entries with all the details like User ID ,Date and time of Deletion.
    I have already checked STAD and DBACOCKPIT for SQL queries of deletion of records but could not find any log .
    Kindly help me to resolve this issue.

    Yes, under controlled situation, you can find some information(at least date and time with what was deleted) even if deleted from SQL level.
    You can use ORACLE's log miner - Using LogMiner to Analyze Redo Log Files
    Or have a look at this note: 1128990 - Using Oracle Logminer with Oracle >= 10g
    Regards,
    Divyanshu

  • Transporting table entries present in standard SAP R/3 table u201CTMCEXCFZu201D.

    Hi All,
    We have a requirement where in we need to capture a table entry in transport request in R/3.
    The table "TMCEXCFZ" is a standard SAP R/3 table.
    The" transport entries" option under the "table entry" in menu bar is disabled in our case.
    Is there an alternative way to capture the table entries in the transport request?
    Thanks for your help in advance.
    Thanks and Regards
    Arun Ail

    Hi Arun
    Try to go to object changeability in the table....assign the table in a package.....then try to save this...it should ask for a transport...
    Hope this helps
    Cheers
    Chanda

  • Table entries deleted in Customized table.

    Respected Guru's
    table entries in a customized table were deleted in production system, no transports pertaining it was found.
    Table entries were updated using bapi.
    Please help me to know how the table entries were deleted.
    Daya.
    Edited by: Dayananadan Anandan on Nov 12, 2009 11:35 AM

    Hi Johnson,
    you might have to restore the DB Backup for the table to gt back the data....
    Furthermore, if you want to track how the entried were deleted then there are 2 ways to go about it:
    If the Deletion of the records was through an application (FM,Program call) then there should be Chande Documents available for them and you can search them by hitting tables CDHDR and CDPOS...
    If the Deletion of the records was done physically the you can try looking into the tables UASE16N_CD_KEY and UASE16N_CD_DATA (deletion from transaction UASE16N) or tables SE16N_CD_KEY and SE16N_CD_DATA(Deletion from SE16). This will give change pointer documents if the records were deleted using these transactions...
    Another option might be that somebody has used the Database utility and selected the option Delete Data. In this case you can have a look at the object log....
    Hope this helps....
    Regards,
    Sitakant.

Maybe you are looking for

  • How to lock a partition on an external hard drive?

    I have an external hard drive, formatted GUID, Mac OS X Extended (journaled); Can I lock the drive to require a password to open it? If I Get Info, I seem to have the ability to give Staff and Everyone Read & write, Read only or Drop Box access. I do

  • Configuring ADS in CE 7.2 SP03

    Hi, I am working on CE 7.2 configuration where I need to configure ADS and have to work on Adobe Interactive forms using Webdynpro Java. Please suggest what are the configurations (and installations if any) to work on ADS. Thanks, Patana

  • We need a good battery monitoring app

    We really need an app that monitors battery usage and breaks the usage down by each individual item--cpu, screen, each app, etc. It's a real pain to figure out what newly installed app may be causing excessive battery drain when you have many apps in

  • Epson vs. HP

    Hi, I am currently in the market for a printer and have found the whole experience quite overwhelming since it is hard to find any really good comparisons online. So i thought that asking here would be my best bet. I am a student interested in purcha

  • App store Error -  NSURLErrorDomain error -1012?

    App store problem, occured today. I have a mid 2012 Macbook pro retina,15" with 256 SSD. thanks!