05-27-2013 6:27 PM
I have executed this transaction in background and it has returned a runtime error ITAB_DUPLICATE_KEY.
How can I solve this problem?
05-28-2013 2: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
05-27-2013 6:39 PM
Hi Lara,
it looks like a bug, maybe open a call with SAP
regards
Fred
05-28-2013 2:07 AM
Hello,
You can apply the SAP Note 1793119 and see if it helps.
Regards,
David
05-28-2013 2: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
05-28-2013 5: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
05-28-2013 1:03 PM
The biggest problem to this issue was running the transaction in background. This should be executed in dialog.