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

ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC error on co02

Former Member
0 Likes
2,144

hi expert.

i have many change in read pp master data in co02.

when i want to save i one message comes with  "Update was terminated with user xx" .when i go and see the description i see this error.

ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC

how can i fix it?

thanks

16 REPLIES 16
Read only

0 Likes
2,031

Hi,

I believe the information provided by you is not enough. Attach the whole short dump, or at least its Sections "Information on where terminated" and "Source Code Extract".

Best regards,

Maurício Grisa.

Read only

0 Likes
2,031

hi thanks for your reply.

when i click on read pp master data in co02 and then release operation and then save every thing is ok .when my system comes to main screen co02 after 1 on 2  second one email page poup with tittle "update was terminated with user xx" that this youser is my user that login.

when come to email box see this:

Update was terminated

Update was terminated

System ID....   R3D
Client....... 101
User..... xx
Transaction..   CO02
Update key... 9654521D298F4B5DB81B1F2A9D1C68F3
Generated....   15.09.2013, 20:14:43
Completed....   15.09.2013, 20:14:43
Error info...   ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC


Read only

paul_bakker2
Active Contributor
0 Likes
2,031

Hi,

I assume you know that 'DUPREC' means duplicate record? In other words, a program is trying to write an entry to a database table, but an entry with that key already exists.

This can usually be fixed by checking before writing.

good luck

Paul

Read only

0 Likes
2,031

sorry. i  want to explain my scenario,

we have an option in co02 for non pcnf orders ,with the name 'read pp master data'.

i change it .

my work was let pcnf orders use this option .after release operation  everything be ok but after save i see the message of order xx save and then system comes to page co02 but after 2 second i see this message .

i check it with one order non pcnf every thing is same .

help me

Read only

Former Member
0 Likes
2,031

i found that this update key first check in table VBMOD . i have this field because my status before this was "REL  PCNF PRC  CSER MANC SETC" and after this again "REL  PCNF PRC  CSER MANC SETC".

am i right ? how can i fix it ?

Read only

former_member188251
Active Participant
0 Likes
2,031

Hi Maryam,

Try doing  update debugging .

When you open CA02, give /h before Save.

To trigger update debugging, in the debugging screen after typeing /h, Then , press Save. The debgguer will start. Now  goto,

System-->Display/Change Debugger Settings-->Update Debugging (tick the check box).

Then do F8.

At this point , all the update tasks are triggered and your debugging will stop at the first FM/subroutine that is triggered in update task. Most likely, the data base update that is giving the error is in one your update FMs.

BR,

Shankar.

Read only

0 Likes
2,031

hi thank you but i can not see Display/Change Debugger Settings

Read only

0 Likes
2,031

Hi Maryam,

Use the new debugger , you can see it.

BR,

Shankar.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,031

Call transaction SM13, there look for the failed update FM.

(Read also Update Management at help.sap.com, look for Analyzing Canceled Updates.)

Regards,

Raymond

Read only

0 Likes
2,031

hi the fm is CO_VB_ORDER_POST

Read only

former_member219338
Participant
0 Likes
2,031

Have a look at SAP hint 196113 - SAPSQL_ARRAY_INSERT_DUPREC

Regards,

Damian

Read only

SujeetMishra
Active Contributor
0 Likes
2,031

Hi,

Please send the Dump's screen shot where exactly program is getting terminated?

Regards,

Sujeet

Read only

0 Likes
2,031

exactly after back to firs screen co02

Read only

0 Likes
2,031

hi the messages comes exactly after system comes to main window of co02

Read only

Former Member
0 Likes
2,031

This dump can occurs if you use INSERT statement for internal table with duplicate rows. Are you using this in your code? Please, go to ST22 and find exact place in code where the problem occurs (it will be marked with ">>>>>>").

Read only

former_member298409
Participant
0 Likes
2,031

Hello Maryam,

To know why it is giving Error:

Put a break point in enhancement and debugger mode change the System-->Display/Change Debugger Settings-->Update Debugging (tick the check box).

Root Cuase:


In this FM there is old values and new values was there so ur doing updating so make sure that updat indicatiors like RESB-VBKZ = 'U'

and give your BADI or Exit name so that I will update you more where it is getting trubble

Thanks,

Sekhar