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

Update temination error on coding user exit - EXIT_SAPLCOIH_009

Former Member
0 Likes
960

HI All,

I am working on approval of a work order in IW32 for which I am coding within a user exit EXIT_SAPLCOIH_009 which gets triggerred at the time of saving the work order. This will update the AUFK table and send a mail to a recipient. But when I save the work order after approving it, it gives me an error saying "Update Termination error". I checked within the SM13 transaction and ST22 for dump analysis, it says "The ABAP/4 Open SQL array insert results in duplicate database records.". Can anyone tell me what could have gone wrong and how I can rectify this. Your help is greatly appreciated.

Thanks in Advance

Edited by: Jeyakanthan A on Aug 4, 2011 11:53 AM

HI All,

I am working on approval of a work order in IW32 for which I am coding within a user exit EXIT_SAPLCOIH_009 which gets triggerred at the time of saving the work order. This will update the AUFK table and send a mail to a recipient. But when I save the work order after approving it, it gives me an error saying "Update Termination error". I checked within the SM13 transaction and ST22 for dump analysis, it says "The ABAP/4 Open SQL array insert results in duplicate database records.". Can anyone tell me what could have gone wrong and how I can rectify this. Your help is greatly appreciated.

Thanks in Advance

Edited by: Jeyakanthan A on Aug 4, 2011 11:53 AM

5 REPLIES 5
Read only

JL23
Active Contributor
0 Likes
854

do you manipulate key fields in the user exit?

Read only

Former Member
0 Likes
854

No I am not manipulating the key field (AUFNR). I have created a customised include within AUFK and I am only updating those fields.

Read only

Former Member
0 Likes
854
ABAP/4 Open SQL array insert results in duplicate database records.".

Error is due to inserting duplicate record in table which is already existing.Take help of abaper,debug,analyze

code which may be cause of error using ST22.If it is application error,apply appropriate sap note.

Read only

0 Likes
854

In this exit, I am first updating a structure CAUFVD and then using this structure values, I am updating other similar structures and the table using PERFORM caufv_upd(saplcobh) USING caufvd_imp. I have not modified this perform. It already exists. Is this perform creating this error

Read only

Former Member
0 Likes
854

It is appropriate to move this thread from ERP MM to [Enhancements and Modifications |; for getting suitable responses.