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

SM13 update request for accounting document

Former Member
0 Likes
512

Hi

We are using BAPI_ACC_DOCUMENT_POST to post the accounting document.

We are posting through a Java application using SAP XI.

All the documents are getting sucessfully posted.

But recently we found that the Java application got the sucess response from SAP stating document posted succefully.

But the document is not updated in the BKPF and BSEG table.

I was able to see the update termination details on that particular date using SM13 transation.

When i try to do repeat update.

I am getting the following error "SAPSQL_ARRAY_INSERT_DUPREC"

Can you pls help, how to sort out this issue

Regards

Madhan D

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
439

Hi,

The dump SAPSQL_ARRAY_INSERT_DUPREC comes when a record already exists in the table with the same key and hence a duplicate record cannot be created.

Check if the document already exists and analyse your code to find out the reason for creation of a duplicate entry.

Regards,

Ankur Parab

1 REPLY 1
Read only

Former Member
0 Likes
440

Hi,

The dump SAPSQL_ARRAY_INSERT_DUPREC comes when a record already exists in the table with the same key and hence a duplicate record cannot be created.

Check if the document already exists and analyse your code to find out the reason for creation of a duplicate entry.

Regards,

Ankur Parab