Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error SAPSQL_ARRAY_INSERT_DUPREC

Former Member
0 Likes
1,823

Hi,

Hi am writing some code in an exit. During execution after the execution of the exit, I am getting dump issue at the line like this:

INSERT afru FROM TABLE afru_i.

and dump showing as SAPSQL_ARRAY_INSERT_DUPREC.

How this can be avoided.

Regards,

Jeetu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,597

hai,

waiting for ur reply.

shan.

Edited by: shan palani on Sep 24, 2008 10:04 AM

9 REPLIES 9
Read only

Former Member
0 Likes
1,597

use modify instead of Insert.

Read only

0 Likes
1,597

Insert code by the system not custonized code.

Read only

0 Likes
1,597

Jeetu,

You are trying to insert a record with duplicate entry. Either modify the existing entry if your key fields are right. Or change the key fields so that insertion is not duplicate while considering the key fields

Regards

Farzan

Read only

Former Member
0 Likes
1,597

Hi

are you appending records to internal table afru_i in the USER EXIT

Regards

MD

Read only

0 Likes
1,597

No I am not appending to the table.

Read only

Former Member
0 Likes
1,597

Hi,

This error means that ayou are attempting to commit

information to the database that would result in a duplicate entry in a table with primary key.

Regards,

Surinder

Read only

Former Member
0 Likes
1,597

Inserting records to a standard SAP table is very dangerous. There could well be data integrity and synchronization issues.

Rob

Read only

Former Member
0 Likes
1,597

hai,

check the internal table,

---it should be like that of database table

---check weather it is having any duplicate entries, if duplicate entries is there then use addition statement ACCEPTING DUPLICATE KEYS should be provided.

Read only

Former Member
0 Likes
1,598

hai,

waiting for ur reply.

shan.

Edited by: shan palani on Sep 24, 2008 10:04 AM