DBSQL_DUPLICATE_KEY_ERROR is an ABAP runtime error which you may come across when using or developing within an SAP system. See below for the standard details explaining what it means and how you can avoid or fix this runtime error.
Short Dump Classification: A - ABAP Programming Error
You can view further information about a runtme error by using transaction code ST22 which will show you this and all runtime erros that have happen in your SAP system.
Also check out the Comments section below to view or add related contributions and example screen shots.
Open SQL array insert should only be used if it is certain that none of
the records specified already exists on the database. If this cannot be
guaranteed, exception CX_SY_OPEN_SQL_DB should be intercepted, and the
error must be resolved.
Please see search hints for more details about the possible cause of this runtime error and how it could be avoided.
Please see send to sap for more details about the possible cause of this runtime error and how it could be avoided.
Open SQL array insert produces duplicate records in the database.
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.
When an Open SQL array insert is performed, trying to insert a record
into the database table <runtime parameter> causes the function to terminate if a
record with the same key already exists.
(When an Open SQL individual record insert is performed, this situation
does not cause the function to terminate. SY-SUBRC is set to 4 instead.)
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.
DBSQL_DUPLICATE_KEY_ERROR - dbsql duplicate key error DBSQL_DBSL_NO_MEMORY - dbsql dbsl no memory DBSQL_DBSL_LENGTH_ERROR - dbsql dbsl length error DBSQL_DBSL_CONVERSION_ERROR - dbsql dbsl conversion error DBSQL_DBPRT_UNSUPPORTED_TABLE - dbsql dbprt unsupported table DBSQL_DBPRT_NO_MEMORY - dbsql dbprt no memory