<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Runtime Errors SAPSQL_ARRAY_INSERT_DUPREC in t-code KO02 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-errors-sapsql-array-insert-duprec-in-t-code-ko02/m-p/7476233#M1555657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check in the OSS and see if there is any note available:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 78466 - RA_ASSET_MODIFIKATION - SAPSQL_ARRAY_INSERT_DUPREC&lt;/P&gt;&lt;P&gt;&lt;A href="https://service.sap.com/sap/support/notes/78466" target="test_blank"&gt;https://service.sap.com/sap/support/notes/78466&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Dec 2010 10:58:59 GMT</pubDate>
    <dc:creator>former_member182371</dc:creator>
    <dc:date>2010-12-01T10:58:59Z</dc:date>
    <item>
      <title>Runtime Errors SAPSQL_ARRAY_INSERT_DUPREC in t-code KO02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-errors-sapsql-array-insert-duprec-in-t-code-ko02/m-p/7476231#M1555655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got runtime error in transaction KO02, below i given all the details.&lt;/P&gt;&lt;P&gt;Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC&lt;/P&gt;&lt;P&gt;Exception              CX_SY_OPEN_SQL_DB&lt;/P&gt;&lt;P&gt; (With an ABAP/4 Open SQL single record insert in the same error&lt;/P&gt;&lt;P&gt; situation, processing does not terminate, but SY-SUBRC is set to 4.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to correct the error&lt;/P&gt;&lt;P&gt;    Use an ABAP/4 Open SQL array insert only if you are sure that none of&lt;/P&gt;&lt;P&gt;    the records passed already exists in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    If the error occures in a non-modified SAP program, you may be able to&lt;/P&gt;&lt;P&gt;    find an interim solution in an SAP Note.&lt;/P&gt;&lt;P&gt;    If you have access to SAP Notes, carry out a search with the following&lt;/P&gt;&lt;P&gt;    keywords:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    "SAPSQL_ARRAY_INSERT_DUPREC" "CX_SY_OPEN_SQL_DB"&lt;/P&gt;&lt;P&gt;    "SAPLA02S" or "LA02SF00"&lt;/P&gt;&lt;P&gt;    "INSERT_ENTRIES"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    If you cannot solve the problem yourself and want to send an error&lt;/P&gt;&lt;P&gt;    notification to SAP, include the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    1. The description of the current problem (short dump)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       To save the description, choose "System-&amp;gt;List-&amp;gt;Save-&amp;gt;Local File&lt;/P&gt;&lt;P&gt;    (Unconverted)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    2. Corresponding system log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Display the system log by calling transaction SM21.&lt;/P&gt;&lt;P&gt;       Restrict the time interval to 10 minutes before and five minutes&lt;/P&gt;&lt;P&gt;    after the short dump. Then choose "System-&amp;gt;List-&amp;gt;Save-&amp;gt;Local File&lt;/P&gt;&lt;P&gt;    (Unconverted)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 3. If the problem occurs in a problem of your own or a modified SAP&lt;/P&gt;&lt;P&gt; program: The source code of the program&lt;/P&gt;&lt;P&gt;    In the editor, choose "Utilities-&amp;gt;More&lt;/P&gt;&lt;P&gt; Utilities-&amp;gt;Upload/Download-&amp;gt;Download".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 4. Details about the conditions under which the error occurred or which&lt;/P&gt;&lt;P&gt; actions and input led to the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The exception must either be prevented, caught within proedure&lt;/P&gt;&lt;P&gt; "INSERT_ENTRIES" "(FORM)", or its possible occurrence must be declared in the&lt;/P&gt;&lt;P&gt; RAISING clause of the procedure.&lt;/P&gt;&lt;P&gt; To prevent the exception, note the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Information on where terminated&lt;/P&gt;&lt;P&gt;    Termination occurred in the ABAP program "SAPLA02S" - in "INSERT_ENTRIES".&lt;/P&gt;&lt;P&gt;    The main program was "RSM13000 ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    In the source code you have the termination point in line 132&lt;/P&gt;&lt;P&gt;    of the (Include) program "LA02SF00".&lt;/P&gt;&lt;P&gt;    The program "SAPLA02S" was started in the update system.&lt;/P&gt;&lt;P&gt;    The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in&lt;/P&gt;&lt;P&gt;    procedure "INSERT_ENTRIES" "(FORM)", but it was neither handled locally nor&lt;/P&gt;&lt;P&gt;     declared&lt;/P&gt;&lt;P&gt;    in the RAISING clause of its signature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    The procedure is in program "SAPLA02S "; its source code begins in line&lt;/P&gt;&lt;P&gt;    85 of the (Include program "LA02SF00 ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz tell me if some one have idea to solve this problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Namdev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 09:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-errors-sapsql-array-insert-duprec-in-t-code-ko02/m-p/7476231#M1555655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-01T09:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Errors SAPSQL_ARRAY_INSERT_DUPREC in t-code KO02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-errors-sapsql-array-insert-duprec-in-t-code-ko02/m-p/7476232#M1555656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You got this error because there is a record already existing in the table with the same key which you are trying to insert, again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you cant have 2 records with same key(primary), it errors out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 10:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-errors-sapsql-array-insert-duprec-in-t-code-ko02/m-p/7476232#M1555656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-01T10:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Errors SAPSQL_ARRAY_INSERT_DUPREC in t-code KO02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-errors-sapsql-array-insert-duprec-in-t-code-ko02/m-p/7476233#M1555657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check in the OSS and see if there is any note available:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 78466 - RA_ASSET_MODIFIKATION - SAPSQL_ARRAY_INSERT_DUPREC&lt;/P&gt;&lt;P&gt;&lt;A href="https://service.sap.com/sap/support/notes/78466" target="test_blank"&gt;https://service.sap.com/sap/support/notes/78466&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 10:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-errors-sapsql-array-insert-duprec-in-t-code-ko02/m-p/7476233#M1555657</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2010-12-01T10:58:59Z</dc:date>
    </item>
  </channel>
</rss>

