cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime Errors SAPSQL_ARRAY_INSERT_DUPREC

Former Member
0 Kudos

Dear All,

i m getiing dump in my production server from TC st22 .

Runtime Errors SAPSQL_ARRAY_INSERT_DUPREC

Exception CX_SY_OPEN_SQL_DB

What happened?

Error in the ABAP Application Program

The current ABAP program "SAPLBSVU" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

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 "STATUS_UPDATE" "(FUNCTION)", 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.)

How to correct the error

Use an ABAP/4 Open SQL array insert only if you are sure that none of

the records passed already exists in the database.

If the error occures in a non-modified SAP program, you may be able to

find an interim solution in an SAP Note.

If you have access to SAP Notes, carry out a search with the following

keywords:

"SAPSQL_ARRAY_INSERT_DUPREC" "CX_SY_OPEN_SQL_DB"

"SAPLBSVU" or "LBSVUU01"

"STATUS_UPDATE"

System information:

ECC6

OS sunsolaris

Database :DB2

Regards

Ashok

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ashok,

Have you checked Note 82295 - STATUS_UPDATE : SAPSQL_ARRAY_INSERT_DUPREC ?

Hope this the error in ST22.

Cheeers....,

Raghu

Former Member
0 Kudos

Hi Raghu,

I am facing same issue in ECC 6.0 system . I have noticed that this note has some report

it is asking for a package which unfortunately has not been mentioned in the note.

Also as the report name does not start with Z or Y , we cannot put the report in a Z/Y package.

Regards

Nagaraju