<?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 he ABAP/4 Open SQL array insert results in duplicate database records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/he-abap-4-open-sql-array-insert-results-in-duplicate-database-records/m-p/6570788#M1432819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; II am getting a dump when I run MD02/ MD03. (t- code to run MRP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the message system is showing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adhish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short text&lt;/P&gt;&lt;P&gt;The ABAP/4 Open SQL array insert results in duplicate database records.&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;Error in the ABAP Application Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current ABAP program "SAPLM61U" had to be terminated because it has&lt;/P&gt;&lt;P&gt;come across a statement that unfortunately cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught&lt;/P&gt;&lt;P&gt;in&lt;/P&gt;&lt;P&gt;procedure "INSERT_MDSBI_IN_MDSB" "(FORM)", nor was it propagated by a RAISING&lt;/P&gt;&lt;P&gt;clause.&lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;If you use an ABAP/4 Open SQL array insert to insert a record in&lt;/P&gt;&lt;P&gt;the database and that record already exists with the same key,&lt;/P&gt;&lt;P&gt;this results in a termination.&lt;/P&gt;&lt;P&gt;&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;1 *----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;2 * ARRAY-INSERT auf MDSB&lt;/P&gt;&lt;P&gt;3 *----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;4 FORM INSERT_MDSBI_IN_MDSB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT MDSB6 FROM TABLE MDSBI.&lt;/P&gt;&lt;P&gt;7 ADD SY-DBCNT TO STATS-RESBI. "statistics&lt;/P&gt;&lt;P&gt;8 ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Jan 2010 05:47:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-23T05:47:44Z</dc:date>
    <item>
      <title>he ABAP/4 Open SQL array insert results in duplicate database records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/he-abap-4-open-sql-array-insert-results-in-duplicate-database-records/m-p/6570788#M1432819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; II am getting a dump when I run MD02/ MD03. (t- code to run MRP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the message system is showing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adhish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short text&lt;/P&gt;&lt;P&gt;The ABAP/4 Open SQL array insert results in duplicate database records.&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;Error in the ABAP Application Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current ABAP program "SAPLM61U" had to be terminated because it has&lt;/P&gt;&lt;P&gt;come across a statement that unfortunately cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught&lt;/P&gt;&lt;P&gt;in&lt;/P&gt;&lt;P&gt;procedure "INSERT_MDSBI_IN_MDSB" "(FORM)", nor was it propagated by a RAISING&lt;/P&gt;&lt;P&gt;clause.&lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;If you use an ABAP/4 Open SQL array insert to insert a record in&lt;/P&gt;&lt;P&gt;the database and that record already exists with the same key,&lt;/P&gt;&lt;P&gt;this results in a termination.&lt;/P&gt;&lt;P&gt;&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;1 *----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;2 * ARRAY-INSERT auf MDSB&lt;/P&gt;&lt;P&gt;3 *----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;4 FORM INSERT_MDSBI_IN_MDSB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT MDSB6 FROM TABLE MDSBI.&lt;/P&gt;&lt;P&gt;7 ADD SY-DBCNT TO STATS-RESBI. "statistics&lt;/P&gt;&lt;P&gt;8 ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2010 05:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/he-abap-4-open-sql-array-insert-results-in-duplicate-database-records/m-p/6570788#M1432819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-23T05:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: he ABAP/4 Open SQL array insert results in duplicate database records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/he-abap-4-open-sql-array-insert-results-in-duplicate-database-records/m-p/6570789#M1432820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Check existing interval number in SNRO.&lt;/P&gt;&lt;P&gt;2. Search for SAP Notes for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2010 07:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/he-abap-4-open-sql-array-insert-results-in-duplicate-database-records/m-p/6570789#M1432820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-23T07:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: he ABAP/4 Open SQL array insert results in duplicate database records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/he-abap-4-open-sql-array-insert-results-in-duplicate-database-records/m-p/6570790#M1432821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There must be inconsistency in the number range. This happens when the current number in the number range for dependent requirements is lower than the highest number in the database table of the dependent requirements RESB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the current number in transaction OMI2. Here in the interval you can see the current number. Then please check the highest number in table RESB. If the current number in OMI2 is lower than the highest number in table RESB then this should be the reason for the dump. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check and revert. If that's not the case we'll look into other possibilities.&lt;/P&gt;&lt;P&gt;In mean time check for SAP Note 138108.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 14:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/he-abap-4-open-sql-array-insert-results-in-duplicate-database-records/m-p/6570790#M1432821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T14:47:10Z</dc:date>
    </item>
  </channel>
</rss>

