<?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: ABAP dump analysis in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289532#M1989271</link>
    <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;kdarunday&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Yes, these are the entries in the IT_LABELS table.&lt;/P&gt;&lt;P&gt;Yes, the INSERT will fail if the primary key or a unique index is violated. &lt;/P&gt;&lt;P&gt;If you try to insert the two entries at the same time, then the INSERT statement will fail regardless if the first record with the same key is already in the DB table or not. Because for the INSERT, the first record is already in the table when trying to insert the second one.&lt;/P&gt;&lt;P&gt;When the statement fails no database change is committed, hence you cannot see any of the records in the DB table.&lt;/P&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
    <pubDate>Tue, 28 Jul 2020 13:19:19 GMT</pubDate>
    <dc:creator>MateuszAdamus</dc:creator>
    <dc:date>2020-07-28T13:19:19Z</dc:date>
    <item>
      <title>ABAP dump analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289531#M1989270</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;We have encountered a dump in production where insert statement fails to update a custom database table.The internal table that contains the entries that updates the database table is IT_LABELS. As can be seen in below screenshot, IT_LABELS contains two entries:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1827865-r9pfu.png" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Scrolling down*&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; My question is, are these two entries the contents of table IT_LABELS?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1827864-soj5f.png" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;If so, as both entries are identical, is this what's causing the dump. I have checked this entry in the database table, however it still does not exist. Does insert statement fail when the internal table source contains identical entries (same primary keys) even though that entry does not exist in the database yet? &lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289531#M1989270</guid>
      <dc:creator>former_member602116</dc:creator>
      <dc:date>2020-07-28T13:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP dump analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289532#M1989271</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;kdarunday&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Yes, these are the entries in the IT_LABELS table.&lt;/P&gt;&lt;P&gt;Yes, the INSERT will fail if the primary key or a unique index is violated. &lt;/P&gt;&lt;P&gt;If you try to insert the two entries at the same time, then the INSERT statement will fail regardless if the first record with the same key is already in the DB table or not. Because for the INSERT, the first record is already in the table when trying to insert the second one.&lt;/P&gt;&lt;P&gt;When the statement fails no database change is committed, hence you cannot see any of the records in the DB table.&lt;/P&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Tue, 28 Jul 2020 13:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289532#M1989271</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-07-28T13:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP dump analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289533#M1989272</link>
      <description>&lt;P&gt;When you insert data from a not checked area (file, human, ...) you could add the parameters ACCEPTING DUPLICATES to the INSERT statement&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abapinsert_source.htm"&gt;https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abapinsert_source.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:24:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289533#M1989272</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-07-28T13:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP dump analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289534#M1989273</link>
      <description>&lt;P&gt;Hi Mateusz,&lt;/P&gt;&lt;P&gt;Does this mean the first entry is rolled back? Or is it only at runtime that INSERT considers the first record as already in the table?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Katherine&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289534#M1989273</guid>
      <dc:creator>former_member602116</dc:creator>
      <dc:date>2020-07-28T13:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP dump analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289535#M1989274</link>
      <description>&lt;P&gt;That's exactly what it means, Katherine.&lt;/P&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Tue, 28 Jul 2020 13:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289535#M1989274</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-07-28T13:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP dump analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289536#M1989275</link>
      <description>&lt;P&gt;Hi Frederic,&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, I'm also thinking to delete adjacent duplicates from the internal table. But with accepting duplicates, will both entries be added? or only one but will not encounter a dump upon insert?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kath&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289536#M1989275</guid>
      <dc:creator>former_member602116</dc:creator>
      <dc:date>2020-07-28T13:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP dump analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289537#M1989276</link>
      <description>&lt;P&gt;Thanks for the clarification, Mateusz!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kath&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289537#M1989276</guid>
      <dc:creator>former_member602116</dc:creator>
      <dc:date>2020-07-28T13:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP dump analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289538#M1989277</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;kdarunday&lt;/SPAN&gt;, with "ACCEPTING DUPLICATE KEYS", in your case if the duplicates are only in your internal table, only the first unique records will be inserted, all duplicate entries will be discarded. If the duplicates already exist in the database and your internal table, all duplicates in the internal table will be discarded.&lt;/P&gt;&lt;P&gt;If you dont use "ACCEPTING DUPLICATE KEYS", you can catch the error with CX_SY_OPEN_SQL_DB, and the insert will be stopped, once a duplicate key is encountered and only the first unique records will be in the database.&lt;/P&gt;&lt;P&gt;If you neither use "ACCEPTING DUPLICATE KEYS" nor catch the error CX_SY_OPEN_SQL_DB, you will end up with the dump that you have encountered and no records will be inserted at all.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:07:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-analysis/m-p/12289538#M1989277</guid>
      <dc:creator>michael_piesche</dc:creator>
      <dc:date>2020-07-28T14:07:34Z</dc:date>
    </item>
  </channel>
</rss>

