<?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 Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-errors-sapsql-array-insert-duprec/m-p/6045030#M1351428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The issue is because of some userexit where you have changed the partner functions specifically making changes in the internal table XVBAP[] or YVBPA[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are duplicate entries in this table with the same key.&lt;/P&gt;&lt;P&gt;Probably someone has modified the table in some user exit and possibly not modfied the update flag (UPDKZ) with the correct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SM13.&lt;/P&gt;&lt;P&gt;You will find your update termination.&lt;/P&gt;&lt;P&gt;Put a breakpoint at the statement where the FM SD_PARTNER_UPDATE is called.&lt;/P&gt;&lt;P&gt;Then restrart your sales order creation.&lt;/P&gt;&lt;P&gt;Before saving go into debug mode and the turn on update debugging and system debugging.&lt;/P&gt;&lt;P&gt;Then do F8.&lt;/P&gt;&lt;P&gt;The program should stop at the break-point.&lt;/P&gt;&lt;P&gt;Check the contents of the internal table which is passed to the I_XVBPA and I_YVBPA tables  parameter of the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if your uuser exits related to partner function are coded properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Aug 2009 08:45:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-01T08:45:19Z</dc:date>
    <item>
      <title>Runtime Errors - SAPSQL_ARRAY_INSERT_DUPREC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-errors-sapsql-array-insert-duprec/m-p/6045029#M1351427</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;I am facing following run time error after creating sales order (VA01). when i create sales order its generating sales order number. But when i go to the change mode (VA02) the following error occurs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Development server its working properly but in quality server i am facing this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Except.                CX_SY_OPEN_SQL_DB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date and Time          01.08.2009 13:51:43&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Short text&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;The ABAP/4 Open SQL array insert results in duplicate database records.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;What happened?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;Error in the ABAP Application Program&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;The current ABAP program "SAPLV05I" had to be terminated because it has&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;come across a statement that unfortunately cannot be executed.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Error analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;An exception occurred that is explained in detail below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;in&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;procedure "SD_PARTNER_UPDATE" "(FUNCTION)", nor was it propagated by a RAISING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;clause.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;Since the caller of the procedure could not have anticipated that the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;exception would occur, the current program is terminated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;The reason for the exception is:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;If you use an ABAP/4 Open SQL array insert to insert a record in&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;the database and that record already exists with the same key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;this results in a termination.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;(With an ABAP/4 Open SQL single record insert in the same error&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;situation, processing does not terminate, but SY-SUBRC is set to 4.)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Missing RAISING Clause in Interface&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;Program                                 SAPLV05I&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;Include                                 LV05IU15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;Row                                     1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;Module type                             (FUNCTION)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;Module Name                             SD_PARTNER_UPDATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Trigger Location of Exception&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;Program                                 SAPLV05I&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;Include                                 LV05IU15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;Row                                     480&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;Module type                             (FUNCTION)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;Module Name                             SD_PARTNER_UPDATE&lt;/STRONG&gt;&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;Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2009 08:25:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-errors-sapsql-array-insert-duprec/m-p/6045029#M1351427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-01T08:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Errors - SAPSQL_ARRAY_INSERT_DUPREC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-errors-sapsql-array-insert-duprec/m-p/6045030#M1351428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The issue is because of some userexit where you have changed the partner functions specifically making changes in the internal table XVBAP[] or YVBPA[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are duplicate entries in this table with the same key.&lt;/P&gt;&lt;P&gt;Probably someone has modified the table in some user exit and possibly not modfied the update flag (UPDKZ) with the correct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SM13.&lt;/P&gt;&lt;P&gt;You will find your update termination.&lt;/P&gt;&lt;P&gt;Put a breakpoint at the statement where the FM SD_PARTNER_UPDATE is called.&lt;/P&gt;&lt;P&gt;Then restrart your sales order creation.&lt;/P&gt;&lt;P&gt;Before saving go into debug mode and the turn on update debugging and system debugging.&lt;/P&gt;&lt;P&gt;Then do F8.&lt;/P&gt;&lt;P&gt;The program should stop at the break-point.&lt;/P&gt;&lt;P&gt;Check the contents of the internal table which is passed to the I_XVBPA and I_YVBPA tables  parameter of the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if your uuser exits related to partner function are coded properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2009 08:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-errors-sapsql-array-insert-duprec/m-p/6045030#M1351428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-01T08:45:19Z</dc:date>
    </item>
  </channel>
</rss>

