Symptom
Short dump ITAB_DUPLICATE_KEY is displayed during the execution of ATC check.
Category ABAP programming error
Runtime Errors ITAB_DUPLICATE_KEY
ABAP Program CL_SATC_AC_RESULT_DB_ACCESS===CP
Application Component BC-DWB-TOO-ATF
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Short Text |
| A row already exists with this key |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Error analysis |
| An attempt was made to insert an entry into table |
| "\CLASS-POOL=CL_SATC_AC_RESULT_DB_ACCESS\CLASS=LCL_DB_ITM_FND\METHOD=PROCESS_F |
| INDINGS_BY_OBJECT\DATA=EX_FND_RECS". Updating |
| unique table key "ITEM_ID" resulted in a duplicate entry however. The key in |
| question could be either the primary key or a secondary key. |
| |
| The key components of the duplicate entry have the values |
| "{021D765DCA061EECB18BC01DCAA2792A}" " " " " |
| " ". |
| |
| With primary keys and unique secondary keys, termination can occur |
| during block insert operations. The can affect numerious statements, |
| for example |
| |
| (1) MOVE |
| |
| (2) INSERT/APPEND ... LINES OF ... INTO/TO |
| |
| (3) SELECT ... INTO/APPENDING ... |
| |
| (4) SCAN ... ABAP-SOURCE ... TOKENS INTO ... STATEMENTS INTO ... |
| |
| With secondary keys, termination can also occur due to a single record |
| insert operation. In particular, the following modifying statements can |
| cause the system to terminate due to duplicate key values as soon as |
| the key is used again (delayed update): |
| |
| (1) "<fs> = ..." or "<fs>-comp = ...", if the assignment to a field |
| symbol or to a component of a field symbol modifies a component of a |
| unique secondary key. |
| |
| (2) "ref->* = ..." or "ref->comp = ...", if the assignment to a field |
| symbol or to a component of a field symbol modifies a component of a |
| unique secondary key. |
| |
| (3) "MODIFY ... [TRANSPORTING comp_1 ... comp_n] ...", if transporting |
| the components to be changed modifies a component of a unique secondary |
| key. |
| |
| (4) "COLLECT ... INTO ...", if adding up the columns of a numeric type |
| modifies a component of a unique secondary key. |
| |
| (5) "READ TABLE ... INTO <fs> ...[TRANSPORTING comp_1 ... comp_n] ...", |
| if the field symbol points to a row of a table with unique secondary |
| keys and transporting the values read modifies a component of a unique |
| secondary key. |
----------------------------------------------------------------------------------------------------
Read more...
Environment
SAP Netweaver Release >= 751
Product
Keywords
ATC, ITAB_DUPLICATE_KEY, CL_SATC_AC_RESULT_DB_ACCESS===CP, CL_SATC_AC_RESULT_DB_ACCESS===CCIMP, GET_EXISTING_FND_ITM_RECS, A row already exists with this key , KBA , BC-DWB-TOO-ATF , ABAP Check Frameworks - ABAP Test Cockpit, Code Inspector , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.