Skip to Content

RSZDELETE: Runtime error ITAB_DUPLICATE_KEY during unused query deletion

I have executed this transaction in background and it has returned a runtime error ITAB_DUPLICATE_KEY.

How can I solve this problem?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on May 28, 2013 at 01:53 AM

    Hi,

    Check the SAP Note 1164904. It is a new revision of the transaction so should help you to fix all issues with older versions.

    Cheers,
    Arindam

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2013 at 04:31 AM

    Hi Lara,

    This error occurs when you have duplicate entries in the internal table. Consider you have a internal table(name and userid) with a key field where userid is the key field.

    Now if you try to insert the value in this empty internal table with userid = 'Lara' and name 'Lara David', then it fine there is no issue. Now you have one record in internal table.

    Now if you try to insert the record with userid = 'Lara' and name 'David', here it gives you an error saying ITAB_DUPLICATE_KEY at runtime since userid field is the key field it cannot have duplicate entries.

    This problem especially occurs when you have a internal table of type sorted table and with unique key declaration as:

    DATA: itab TYPE SORTED TABLE OF ztab WITH UNIQUE KEY id.

    Hope you understood the problem.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 27, 2013 at 05:39 PM

    Hi Lara,

    it looks like a bug, maybe open a call with SAP

    regards

    Fred

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 28, 2013 at 01:07 AM

    Hello,

    You can apply the SAP Note 1793119 and see if it helps.

    Regards,

    David

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 28, 2013 at 12:03 PM

    The biggest problem to this issue was running the transaction in background. This should be executed in dialog.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.