Symptom
- The job SM_CCLM:LUSG_XXX_* cancels with the following error log:
Internal session terminated with a runtime error ITAB_DUPLICATE_KEY (see ST22)
Job cancelled
- In TCODE ST22 you observe the following dump:
Runtime Errors ITAB_DUPLICATE_KEY
ABAP Program CL_AGSCCL_COLL_LASTUSAGE======CP
Application Component SV-SMG-CCM
Short Text
A row already exists with this key
Error analysis
An attempt was made to insert an entry into table
"\CLASS=CL_AGSCCL_COLL_LASTUSAGE\METHOD=EXTRACT\DATA=LT_USED_TRANS". Updating
unique table key "PRIMARY_KEY" resulted in a duplicate entry however. The key
in
question could be either the primary key or a secondary key.
"ITAB_DUPLICATE_KEY"
"CL_AGSCCL_COLL_LASTUSAGE======CP" bzw. CL_AGSCCL_COLL_LASTUSAGE======CM002
"EXTRACT"
Information on where terminated
The termination occurred in ABAP program "CL_AGSCCL_COLL_LASTUSAGE======CP",
in "EXTRACT". The main program
was "AGSCCL_COLL_EXECUTION".
In the source code, the termination point is in line 100 of (Include)
program "CL_AGSCCL_COLL_LASTUSAGE======CM002".
Program "CL_AGSCCL_COLL_LASTUSAGE======CP" was started as a background job.
98 SORT lt_used_trans BY system_id pgmid obj_type obj_name.
99 DELETE ADJACENT DUPLICATES FROM lt_used_trans.
>>> INSERT LINES OF lt_used_trans INTO TABLE lt_used_trans.
101 SORT _mt_lusg_data BY system_id pgmid obj_type obj_name.
102
103 DESCRIBE TABLE _mt_lusg_data LINES count.
Read more...
Environment
Solution Manager 7.2 SP04
Product
Keywords
CCM, Custom Code Mangement, ST22 Dump, ABAP Program, CL_AGSCCL_COLL_LASTUSAGE======CP, Runtime Error, ITAB_DUPLICATE_KEY, SM_CCLM:LUSG, SM37, ST22, CL_AGSCCL_COLL_LASTUSAGE , KBA , SV-SMG-CCM , Custom Code Management , 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.