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

Similar Messages

  • 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

  • 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

  • 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

  • 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.

  • 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

  • Without delete PDP table entry, I want to Order PO in R/3. How can I do it?

    Hi SRM Gurus,
    I am using SRM 5.5 with Extended Classic Scenario and Plan Driven Procurement(PDP).
    My question is: I was unable to create PO with reference PR/RFQ/Manually  in R/3.System is giving an error message 'you can order locally(SRM)'. Which material group and Purchasing groups are maintained in PDP table. If I delete this entry I can Order PO in R/3.
    Now I don't want to delete PDP table entry and I want to Order PO in R/3. How can I do it?.
    Please focuses light on this issue. Highly appreciate.
    Regards,
    John.

    Hi
    I think you can do in both sides
    let me know your scenario too well.
    I am in classic scenario
    i can create a PR - if i have valid unique source of supply , PO will be created in ECC
    If i have more than one source of supply , my PR will get EPRTRANS TABLE ENTRY with EPROFILE updated in EBAN table and my ECC pr wil be transfered to SRM and create  a sc and this cart will be in cockpit.
    I believe your PR has EPROFILE , thats why you could not create a PO in ECC side.
    confirm me.
    How to you assign a source of supply for PRs ? I wanted to know. so i can expalin easilyand any jobs you create to create a Auto POS in ECC after assign a source of supplt to your Purchase request.
    br
    muthu

  • How to transport a Deleted Table entry

    is there a way of transporting deletions of table entries.
    For example. I'm dealing with a table say such as T529U. So we already have value there for active, inactive, retiree, withdrawn. Say I wanted to delete retiree from the selection list.
    I go to our DEV and make the deletion. I manually create a transport of the entire table and transport it to our QA system. When I do so, the table still remains the same. The only way the record would be changed would be if it was new or had the same key (thus overwriting). How do you remove and transport (so you don't have to do it in all instances).
    any help would be much appreciated.
    Thanks

    Hello
    A delete should be a change just like any other change and should be recorded on a change request.  After releasing the change request you should be able to transport that delete to your QA and PRD systems as needed.
    As a general rule I would not transport the complete table.  There is too much risk that unintended changes get transported. 
    Are other changes to your table being recorded on a transport request?
    If you have another environment(sandbox or project?)  try the delete in that environment to convince yourself that it does(or does not )work.
    Regards
    Greg Kern

  • Check who's deleted table entries without SCU3

    Hi,
    we need to find out which program or user deleted some table entries. The Where-used-list doesn't show anything, so it must be a dynamic call. The table has 'Log data changes' switched on, but we don't have the system logging set due to performance reasons. Is there nevertheless a chance to find out who deleted the entries?
    Regards
    Nicola

    Regarding where-used-list, maybe the table is part of a maintenance view, you should check this as well.
    If there is no table logging and the changes are not recorded in transport requests, then I'm afraid there is no way to find out.
    Thomas

  • Marking Z table entry for Deletion

    Hi All,
    Based on some condition in my program,
    I am entrying one entry in Custom Z table.
    Also for some other condition,
    I need to mark the Table entry for deletion only, but it should not Delete.
    So pls guide me for:
    1) How to make Custom table entry as Mark for Deletion?
    2) When I put Select Query on table, how  can I write that do not Select those
        Records which are marked for  Deletion ?
    Rishi

    Hi Rishi,
    Create a new field of type 'CDXFELD' (Data Type) in the Custom Z table. Now populate that new field with 'X' if it is marked for deletion. Then you can select all those entries which that field 'CDXFELD' = Space.
    i.e., if the field 'CDXFELD' = 'X' then it is marked for deletion else not.
    Select *
      from Zcustom talbe
      in to IT_TAB
      where  CDXFELD = space.
    Hope this will help..
    Regards,
    Ravi..

  • Deleting Table Entry

    Hi
    How can I delete a table entry which was entered in the Table through a Std Txn?
    I have heard that there are 3 ways:
    1) SM30
    2) SE16
    3) Debugger
    What are the necessary requirements for using each of the above methods? Please guide me through the steps on each.
    Thx

    Hi Santo,
    1) To Delete a entry form SM30 Transaction .
    GOTO SM30 - > Enter the table name -> display -> display / change push button ->
    Click on entry which u want to delete -> click the delete button.
    2)SE16 -> table name -> click execute -> double click on the required entry which u want to delete ->
    on command field enter  /h -> enter ->in debugging mode -> Change the value of code to 'DELE' -> Enter
    Be careful before deleting any entry.
    Regards,
    Sachin

  • While deleting project from CJ20N entries are not deleted from table PRPS

    Hi,
    I am deleting project from CJ20N then from PROJ table entries are getting deleted but WBS element entries are not deleted from table PRPS.
    Any deletion Flag should also be checked?
    Thanks in advance!
    Regards,
    Jyoti

    Hello,
    Thanks for reply !
    My problem is I am deleting project and WBS Elements from CJ20N but WBS element entries are not deleted from PRPS table.
    Why they are appearing in PRPS table and how it can be deleted?
    Thanks !

Maybe you are looking for

  • How do you override global variable values when calling oraxsl or xsl.exe?

    I am a newbie to oracle xslt. I have down loaded the latest version of xdk (10.1.0.2...). (Jan 2, 2009). In the past I haveI used micorsoft's "msxsl.exe" to perform my transformations. I am looking for a more up-to-date transformation tool. I found O

  • Cannot connect to iTunes Store after Upgrade to 7.6.1.9

    Ever since I upgraded to the newest version, I can no longer connect to the iTunes store or the update server. Yes its a d@mn dialup connection, but you think it wouldn't matter to iTunes. I've tried thru the Bellsouth Accelerator and straight shot o

  • How to activate wastebasket service in KW?

    Hi Gurus, we are just starting to use KM - i found out, that we can use a waste basket, so that we first can transfer files which we would likt to delete to the wastebasket. Could you please explain me the functionality and also, how we can activate

  • CRM ---- XI

    Hi Expets, I have couple of issues related with CRM to XI Integration . Please provide the solution for following :- 1. How can we make use of XI deleiverd content while integrating to CRM ? 2. I have to pass the CRM Activity ( order ) to XI whenever

  • Export did not complete successfully

    Got this for the first time doing a web gallery. "export did not complete successfully, jpegs files were generated using the best pixel data available from the image cache" When I look at the web gallery preview it seems ok. What does this all mean?