<?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/8242461#M1630259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To analysis the issue, I will suggest to add the try catch block. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY .&lt;/P&gt;&lt;P&gt;    INSERT ZTAB FROM wa.&lt;/P&gt;&lt;P&gt;  CATCH sapsql_array_insert_duprec.&lt;/P&gt;&lt;P&gt;    Write : wa. " You can write the key fields only, &lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are inserting from internal table, then loop it and write the key fields. So from the output you can get the particular data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help your analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Subha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2011 23:14:55 GMT</pubDate>
    <dc:creator>Subhankar</dc:creator>
    <dc:date>2011-10-20T23:14:55Z</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/8242457#M1630255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt; I have a serieus problem in a specifique programm. during Execution i Have a SAPSQL_ARRAY_INSERT_DUPREC exception. when i check in the ST22 i have the details  below :&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;error source :&lt;/STRONG&gt;            " &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;     insert (x_tabname)  from table x_profval."&lt;/P&gt;&lt;P&gt; Variable values a the time of the exception : X_TABNAME refers to " EPROFVALMONTH" table. &lt;/P&gt;&lt;P&gt;                                                                        values of &lt;U&gt;x&lt;/U&gt;profval_ key fields are : 000000000001066507 and 20110801 as date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I check tha table X_PROFVAL for entries with this Key values, i don't found records. so i can't understand how can i have a duplicated ket Insert problem if no data exist in this Table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Omar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 14:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/8242457#M1630255</guid>
      <dc:creator>omar_elkassi2</dc:creator>
      <dc:date>2011-10-20T14:46:27Z</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/8242458#M1630256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The duplicates are in  EPROFVALMONTH, not  X_TABNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 15:01:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/8242458#M1630256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-20T15:01:19Z</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/8242459#M1630257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exectly. sorry for the writing mistak. i checked EPROFVALMONTH where no records found four my key fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 15:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/8242459#M1630257</guid>
      <dc:creator>omar_elkassi2</dc:creator>
      <dc:date>2011-10-20T15:35:02Z</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/8242460#M1630258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dump will not only be if the key entry already exist in the database table but also if the Internal table x_profval has two rows with same key values ( "000000000001066507" and "20110801" ) at the time of Insert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 22:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/8242460#M1630258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-20T22:01:50Z</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/8242461#M1630259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To analysis the issue, I will suggest to add the try catch block. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY .&lt;/P&gt;&lt;P&gt;    INSERT ZTAB FROM wa.&lt;/P&gt;&lt;P&gt;  CATCH sapsql_array_insert_duprec.&lt;/P&gt;&lt;P&gt;    Write : wa. " You can write the key fields only, &lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are inserting from internal table, then loop it and write the key fields. So from the output you can get the particular data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help your analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Subha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 23:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/8242461#M1630259</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2011-10-20T23:14:55Z</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/8242462#M1630260</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;Or you can use 'ACCEPTING DUPLICATE KEYS' in front of your insert statement. It won't give you dump at least. But make sure remove all duplicate entries for your table primary key. You can do this by sorting by primary key and using DELETE ADJACENT ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 00:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-exception/m-p/8242462#M1630260</guid>
      <dc:creator>raviahuja</dc:creator>
      <dc:date>2011-10-21T00:34:30Z</dc:date>
    </item>
  </channel>
</rss>

