cancel
Showing results for 
Search instead for 
Did you mean: 

Error sapsql_array_insert_duprec cx_sy_open_sql_db

Former Member
0 Kudos

Hi,  i am getting short dump in SAP sapsql_array_insert_duprec cx_sy_open_sql_db

Category   ABAP Programming Error
Runtime Errors   SAPSQL_ARRAY_INSERT_DUPREC
Except.   CX_SY_OPEN_SQL_DB
ABAP Program   SAPLCLVF
Application Component   CA-CL-CL

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 "SAPLCLVF" 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.

System environment

        SAP Release..... 702

        SAP Basis Level. 0011

        Application server... "GVAAPD01"

        Network address...... "10.69.48.31"

        Operating system..... "Windows NT"

        Release.............. "6.1"

        Hardware type........ "24x AMD64 Level"

        Character length.... 16 Bits

        Pointer length....... 64 Bits

        Work process number.. 16

        Shortdump setting.... "full"

        Database server... "GVAAPD01\AD2"

        Database type..... "MSSQL"

        Database name..... "AD2"

        Database user ID.. "ad2"

        Terminal.......... "WGVA-W7E-P08758"

        Char.set.... "C"

        SAP kernel....... 720

        created (date)... "Feb 20 2012 19:16:38"

        create on........ "NT 5.2 3790 S x86 MS VC++ 14.00"

        Database version. "SQL_Server_9.00 "

        Patch level. 200

        Patch text.. " "

        Database............. "MSSQL 9.00.2047 or higher"

        SAP database version. 720

        Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows

         NT 6.0, Windows NT 6.1, Windows NT 6.2"

        Memory consumption

        Roll.... 0

        EM...... 4189792

        Heap.... 0

        Page.... 16384

        MM Used. 3418224

        MM Free. 768896

    User and Transaction

        Client.............. 630

        User................ "DV2R900"

        Language key........ "E"

        Transaction......... " "

        Transaction ID...... "98D3BEE10D40F1A9BD190017A477003E"

        EPP Whole Context ID.... "0017A477003E1EE1AFDA3DD8027F9D19"

        EPP Connection ID....... "A2D3BEE1CD70F1DABD190017A477003E"

        EPP Caller Counter...... 392

        Program............. "SAPLCLVF"

        Screen.............. "RSM13000 3000"

        Screen Line......... 2

        Debugger Active..... "none"

    Information on where terminated

        Termination occurred in the ABAP program "SAPLCLVF" - in "PFLEGEN_ALL_TABS".

        The main program was "RSM13000 ".

        In the source code you have the termination point in line 32

        of the (Include) program "LCLVFF10".

        The program "SAPLCLVF" was started in the update system.

        The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in

        procedure "PFLEGEN_ALL_TABS" "(FORM)", but it was neither handled locally nor

         declared

        in the RAISING clause of its signature.

        The procedure is in program "SAPLCLVF "; its source code begins in line

        6 of the (Include program "LCLVFF10 ".

        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 "PFLEGEN_ALL_TABS" "(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.)

Please help me with this.

Accepted Solutions (1)

Accepted Solutions (1)

ashish_vikas
Active Contributor
0 Kudos

Do you also have Update failure for this in SM13 ??

please check SAP Note for this problem.. it will depend on you support pack level.

What is Support Packages level for SAP_ABA and SAP_APPL ?

Note 819596 - Copying class: termination SAPSQL_ARRAY_INSERT_DUPREC

Note 677506 - Copy routing: Termination SAPSQL_ARRAY_INSERT_DUPREC

Note 649407 - BAPI_OBJCL_CHANGE: Termination SAPSQL_ARRAY_INSERT_DUPREC

Regards

Ashish

Former Member
0 Kudos

Thank you Ashish..

Yes, we have update failure in SM13.

Regards,

Srikanth

Former Member
0 Kudos

this issue is more associated with data rather than the system. You should have someone from ABAP side to analyze the update failure . It will help to understand on why duplicate records are getting inserted.

Regards

Amit

Former Member
0 Kudos

Thank you Amit.

valeriocicchiel
Contributor
0 Kudos

Hello xyz a,

we have exactly the same problem here. You signed Ashish Vikas reply as the correct answer, but the SAP notes indicated are not applicable with my software levels (and neither with yours, from the dump you attached)

SAP_BASIS 701

SAP_ABA 701

SAP_APPL 604

Could you please tell us exactly how you solved the issue?

Best Regards,

Valerio

Former Member
0 Kudos

Hi Valerio,

I have the same error during VL10B elaboration. Have you solved? how?

Thank you very much,

Marco

Former Member
0 Kudos

Hello Marco,

The issue is caused due to duplicate records in the data.

As mentioned by Amit, an ABAPer should be able to analyze this.

Best Regards,

Anita

Answers (0)