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

Short Dump!

Former Member
0 Likes
1,115

Hello all,

I am trying to process an idoc using the program RDBAPP01 and got the following error message:-

Short text

The ABAP/4 Open SQL array insert results in duplicate database records.

What happened?

Error in the ABAP Application Program

The current ABAP program "/IRM/SAPLGCRU" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

What can you do?

Note down which actions and inputs caused the error.

To process the problem further, contact you SAP system

administrator.

Using Transaction ST22 for ABAP Dump Analysis, you can look

at and manage termination messages, and you can also

keep them for a long time.

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught

in

procedure "DB_UPDATE" "(FORM)", nor was it propagated by a RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

If you use an ABAP/4 Open SQL array insert to insert a record in

the database and that record already exists with the same key,

this results in a termination.

(With an ABAP/4 Open SQL single record insert in the same error

situation, processing does not terminate, but SY-SUBRC is set to 4.)

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
613

This error generally occurs because of the following reasons:-

1. Overlapping number ranges and

2. Duplicate records

I think in your scenario, you must be trying to insert records with duplicate key combination. Put a break-point in the posting function module of idoc and check the entries of the table your are trying to insert into database.

Make sure no duplicate records are there in the table.

2 REPLIES 2
Read only

Former Member
0 Likes
613

If it's an standard program, you should look for an OSS Note...

Problem is that the record that is being inserted already exists in the database...That's why I always use MODIFY instead of INSERT...

Greetings,

Blag.

Read only

Former Member
0 Likes
614

This error generally occurs because of the following reasons:-

1. Overlapping number ranges and

2. Duplicate records

I think in your scenario, you must be trying to insert records with duplicate key combination. Put a break-point in the posting function module of idoc and check the entries of the table your are trying to insert into database.

Make sure no duplicate records are there in the table.