<?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 SRM Dump SAPSQL_ARRAY_INSERT_DUPREC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/srm-dump-sapsql-array-insert-duprec/m-p/9015043#M1698937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are experiencing an SRM 7 dump as per below details. The update failure is also visible in SM13.&lt;/P&gt;&lt;P&gt;The dump causes DB update termination in SM13 and ST22 with below duplicate error.&lt;/P&gt;&lt;P&gt;I have implemented SAP note 0001685125 but looks like it will only resolve failure on update module BBP_PDatt_DB_UPDATE.&lt;/P&gt;&lt;P&gt;Notes &lt;STRONG&gt;1667379 &amp;amp; 0001573235&lt;/STRONG&gt; are obsolete and dealing with the problem on modules; BBP_ITEMLIST_DB_UPDATE, BBP_HEADER_DB_UPDATE, BBP_PDBUP_DB_UPDATE where the problem is still occurring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Category:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABAP Programming Error&lt;/P&gt;&lt;P&gt;Runtime Errors:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAPSQL_ARRAY_INSERT_DUPREC&lt;/P&gt;&lt;P&gt;Except:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CX_SY_OPEN_SQL_DBABAP &lt;/P&gt;&lt;P&gt;Program&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAPLBBP_PDIAD&lt;/P&gt;&lt;P&gt;Application Component&amp;nbsp; SRM-EBP&lt;/P&gt;&lt;P&gt;Date and Time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04.09.2012 17:09:52&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Short text&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The ABAP/4 Open SQL array insert results in duplicate database records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What happened?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Error in the ABAP Application Program&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;The current ABAP program "SAPLBBP_PDIAD" had to be terminated because it has come across a statement that unfortunately cannot be executed. &lt;/P&gt;&lt;P style="text-align: left;"&gt;Error analysis An exception occurred that is explained in detail below.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught in procedure "BBP_ITEMLIST_DB_UPDATE" "(FUNCTION)", nor was it propagated by a RAISING clause.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;Since the caller of the procedure could not have anticipated that the exception would occur, the current program is terminated.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;STRONG&gt;How to correct the error &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Use an ABAP/4 Open SQL array insert only if you are sure that none of the records passed already exists in the database.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;If the error occures in a non-modified SAP program, you may be able to find an interim solution in an SAP Note.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;If you have access to SAP Notes, carry out a search with the following keywords:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;"SAPSQL_ARRAY_INSERT_DUPREC" "CX_SY_OPEN_SQL_DB"&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;"SAPLBBP_PDIAD" or "LBBP_PDIADU08"&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;"BBP_ITEMLIST_DB_UPDATE"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2012 16:23:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-09-04T16:23:06Z</dc:date>
    <item>
      <title>SRM Dump SAPSQL_ARRAY_INSERT_DUPREC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/srm-dump-sapsql-array-insert-duprec/m-p/9015043#M1698937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are experiencing an SRM 7 dump as per below details. The update failure is also visible in SM13.&lt;/P&gt;&lt;P&gt;The dump causes DB update termination in SM13 and ST22 with below duplicate error.&lt;/P&gt;&lt;P&gt;I have implemented SAP note 0001685125 but looks like it will only resolve failure on update module BBP_PDatt_DB_UPDATE.&lt;/P&gt;&lt;P&gt;Notes &lt;STRONG&gt;1667379 &amp;amp; 0001573235&lt;/STRONG&gt; are obsolete and dealing with the problem on modules; BBP_ITEMLIST_DB_UPDATE, BBP_HEADER_DB_UPDATE, BBP_PDBUP_DB_UPDATE where the problem is still occurring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Category:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABAP Programming Error&lt;/P&gt;&lt;P&gt;Runtime Errors:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAPSQL_ARRAY_INSERT_DUPREC&lt;/P&gt;&lt;P&gt;Except:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CX_SY_OPEN_SQL_DBABAP &lt;/P&gt;&lt;P&gt;Program&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAPLBBP_PDIAD&lt;/P&gt;&lt;P&gt;Application Component&amp;nbsp; SRM-EBP&lt;/P&gt;&lt;P&gt;Date and Time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04.09.2012 17:09:52&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Short text&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The ABAP/4 Open SQL array insert results in duplicate database records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What happened?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Error in the ABAP Application Program&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;The current ABAP program "SAPLBBP_PDIAD" had to be terminated because it has come across a statement that unfortunately cannot be executed. &lt;/P&gt;&lt;P style="text-align: left;"&gt;Error analysis An exception occurred that is explained in detail below.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught in procedure "BBP_ITEMLIST_DB_UPDATE" "(FUNCTION)", nor was it propagated by a RAISING clause.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;Since the caller of the procedure could not have anticipated that the exception would occur, the current program is terminated.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;STRONG&gt;How to correct the error &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Use an ABAP/4 Open SQL array insert only if you are sure that none of the records passed already exists in the database.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;If the error occures in a non-modified SAP program, you may be able to find an interim solution in an SAP Note.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;If you have access to SAP Notes, carry out a search with the following keywords:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;"SAPSQL_ARRAY_INSERT_DUPREC" "CX_SY_OPEN_SQL_DB"&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;"SAPLBBP_PDIAD" or "LBBP_PDIADU08"&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: left;"&gt;"BBP_ITEMLIST_DB_UPDATE"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 16:23:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/srm-dump-sapsql-array-insert-duprec/m-p/9015043#M1698937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-04T16:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: SRM Dump SAPSQL_ARRAY_INSERT_DUPREC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/srm-dump-sapsql-array-insert-duprec/m-p/9015044#M1698938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error occurs when you try to update the database table with a duplicate record which already exists in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me on what transaction are you facing this error ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashwin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 16:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/srm-dump-sapsql-array-insert-duprec/m-p/9015044#M1698938</guid>
      <dc:creator>former_member212854</dc:creator>
      <dc:date>2012-09-04T16:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: SRM Dump SAPSQL_ARRAY_INSERT_DUPREC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/srm-dump-sapsql-array-insert-duprec/m-p/9015045#M1698939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the prompt response.&lt;/P&gt;&lt;P&gt;The problem occurs when an SRM PO gets approved automatically through the Process Controlled Workflow in SRM 7. At the end of the automatic approval the system updates the database as per update modules mentioned above but those updates sometimes fail. I did not place this on the workflow forum because I thought the failure is on the update modules as per above mentioned notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also confirmed with the functional team and they said they did not change any number ranges. The dumps only started happening on Monday 27/08/2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 08:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/srm-dump-sapsql-array-insert-duprec/m-p/9015045#M1698939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-05T08:33:13Z</dc:date>
    </item>
  </channel>
</rss>

