Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10671

Re: inside Task commit is getting dump

$
0
0

Below is the error I found

 

Category               ABAP Programming Error

Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC

Except.                CX_SY_OPEN_SQL_DB

ABAP Program           /***/SAPLCUINST

Application Component  PM-WOC-MO

Date and Time          04/09/2016 09:44:43

 

 

 

 

 

 

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 "/***/SAPLCUINST" 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

     in

    procedure "/***/CUINST_DB_INSERT" "(FUNCTION)", nor was it propagated b

     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"

    "/***/SAPLCUINST" or "/***/LCUINSTU08"

    "/***/CUINST_DB_INSERT"

  If you cannot solve the problem yourself and want to send an error

  notification to SAP, include the following information:

 

 

  1. The description of the current problem (short dump)

 

 

     To save the description, choose "System->List->Save->Local File

  (Unconverted)".

 

 

  2. Corresponding system log

 

 

     Display the system log by calling transaction SM21.

     Restrict the time interval to 10 minutes before and five minutes

  after the short dump. Then choose "System->List->Save->Local File

  (Unconverted)".

 

 

  3. If the problem occurs in a problem of your own or a modified SAP

  program: The source code of the program

     In the editor, choose "Utilities->More

  Utilities->Upload/Download->Download".

 

 

  4. Details about the conditions under which the error occurred or which

  actions and input led to the error.

 

 

  The exception must either be prevented, caught within proedure

  "/***/CUINST_DB_INSERT" "(FUNCTION)", or its possible occurrence must be

   declared in the

  RAISING clause of the procedure.

  To prevent the exception, note the following:

System environment

    SAP Release..... 731

    SAP Basis Level. 0007

 

 

    Application server... "d229372053"

    Network address...... "10.120.19.145"

    Operating system..... "Linux"

    Release.............. "2.6.32-504.23.4.el6."

    Hardware type........ "x86_64"

    Character length.... 16 Bits

    Pointer length....... 64 Bits

    Work process number.. 5

    Shortdump setting.... "full"

 

 

    Database server... "d229372053"

    Database type..... "ORACLE"

    Database name..... "OE1"

    Database user ID.. "SAPSR3"

 

 

    Terminal.......... "ctxvpn-7"

 

 

    Char.set.... "C"

 

 

    SAP kernel....... 720

    created (date)... "Jan 16 2013 13:27:39"

    create on........ "Linux GNU SLES-9 x86_64 cc4.1.2 use-pr121115"

    Database version. "OCI_102, 11.2.0.4.0, V2, default"

 

 

    Patch level. 401

    Patch text.. " "

 

 

    Database............. "ORACLE 10.1.0.*.*, ORACLE 10.2.0.*.*, ORACLE 11.2.*.*.*"

    SAP database version. 720

    Operating system..... "Linux 2.6, Linux 3"

Memory consumption

Roll.... 0

EM...... 29328656

Heap.... 0

Page.... 475136

MM Used. 1627552

MM Free. 2559616

 

Information on where terminated

    Termination occurred in the ABAP program "/***/SAPLCUINST" - in

     "/***/CUINST_DB_INSERT".

    The main program was "SAPMSSY4 ".

 

 

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

    of the (Include) program "/***/LCUINSTU08".

    The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in

    procedure "/***/CUINST_DB_INSERT" "(FUNCTION)", but it was neither handled

     locally nor declared

    in the RAISING clause of its signature.

 

 

    The procedure is in program "/***/SAPLCUINST "; its source code begins in line

    1 of the (Include program "/***/LCUINSTU08 ".

 

 

 

 

 

 

Source Code Extract

 

 

Line  SourceCde

 

 

    1 FUNCTION /***/CUINST_DB_INSERT.

    2 *"----------------------------------------------------------------------

    3 *"*"Update Function Module:

    4 *"

    5 *"*"Local Interface:

    6 *"  TABLES

    7 *"      AFCU_INS STRUCTURE  /***/AFCU

    8 *"      VCUI_INS STRUCTURE  /***/VCUI

    9 *"----------------------------------------------------------------------

   10

>>>>>   INSERT /***/afcu FROM TABLE afcu_ins.

   12   INSERT /***/vcui FROM TABLE vcui_ins.

   13

   14

   15 ENDFUNCTION.


Viewing all articles
Browse latest Browse all 10671

Latest Images

Trending Articles



Latest Images