SAPSQL_ARRAY_INSERT_DUPREC 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.
Only use Open SQL array insert if you can be sure that none of the
records specified already exists on the database.
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 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.)
The database table was <runtime parameter>.
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.
SAPSQL_ARRAY_INSERT_DUPREC - sapsql array insert duprec SAPSQL_ANNEX_ILLEGAL_CODE - sapsql annex illegal code SAPSQL_AMBIGUOUS_TABNAME - sapsql ambiguous tabname SAPSQL_AMBIGUOUS_FIELDNAME - sapsql ambiguous fieldname SAPSQL_ALIASNAME_TOO_LONG - sapsql aliasname too long SAPSQL_AGGREGATE_NOT_ALLOWED - sapsql aggregate not allowed