<?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: SAPSQL_ARRAY_INSERT_DUPREC  Exception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/3633836#M875174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to insert data into a database table for an entry that already exists. Before insert, make sure record is not yet in database table. If already existant, do an update of the record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2008 09:07:39 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2008-04-04T09:07:39Z</dc:date>
    <item>
      <title>SAPSQL_ARRAY_INSERT_DUPREC  Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/3633835#M875173</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;can anybody help me to get  details regarding the exception&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SAPSQL_ARRAY_INSERT_DUPREC  exception&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CX_SY_OPEN_SQL_DB.&lt;/P&gt;&lt;P&gt;the termination occured in abap program.............&lt;/P&gt;&lt;P&gt;hw i can rectify it????&lt;/P&gt;&lt;P&gt;rewards will be given for useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 08:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/3633835#M875173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T08:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC  Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/3633836#M875174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to insert data into a database table for an entry that already exists. Before insert, make sure record is not yet in database table. If already existant, do an update of the record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 09:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/3633836#M875174</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-04T09:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC  Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/3633837#M875175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is a standard sap program.i cant change it,&lt;/P&gt;&lt;P&gt;is there any solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 11:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/3633837#M875175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T11:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC  Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/3633838#M875176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&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;(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;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;You may able to find an interim solution to the problem &lt;/P&gt;&lt;P&gt;in the SAP note system. If you have access to the note system yourself, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I request you to take it on high priority basis as this is an daily load and because of the red request next request will not be activated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is due to duplicate entry but i have checked the data their is no duplicacy. In that request we have only 7 request and all are in Active table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do reward if helpful or get back if need further assistance.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 11:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/3633838#M875176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T11:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC  Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/3633839#M875177</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;This is due to primary key violation....U r trying to insert records which are already available in DB table..so best practice is to use MODIFY statement instead of INSERT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY will insert records if not present in table and it will modify the record if present already&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 13:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/3633839#M875177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T13:07:59Z</dc:date>
    </item>
  </channel>
</rss>

