<?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: Problem with internal table with unique key... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-with-unique-key/m-p/3982511#M951333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes it is completely normal behavior.&lt;/P&gt;&lt;P&gt;If you pass duplicate values for the key, it defies the definition of the KEY field and hence the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jun 2008 07:51:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-21T07:51:16Z</dc:date>
    <item>
      <title>Problem with internal table with unique key...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-with-unique-key/m-p/3982509#M951331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table with unique key...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Im getting a dump when using it... If the key has 2 same values, it gives a dump... is it normal? what should be done to curb this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 07:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-with-unique-key/m-p/3982509#M951331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T07:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with internal table with unique key...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-with-unique-key/m-p/3982510#M951332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you using a sorted table with unique key or hashed key with unique key ?&lt;/P&gt;&lt;P&gt;If yes, then it will give a dump.&lt;/P&gt;&lt;P&gt;SO to avoid this, first do a &lt;/P&gt;&lt;P&gt;   read table itab with key x = f1.&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      delete itab where x = f1.&lt;/P&gt;&lt;P&gt;      insert wa into itab.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: for sorted, hashed tables you have to use INSERT and not APPEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 07:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-with-unique-key/m-p/3982510#M951332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T07:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with internal table with unique key...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-with-unique-key/m-p/3982511#M951333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes it is completely normal behavior.&lt;/P&gt;&lt;P&gt;If you pass duplicate values for the key, it defies the definition of the KEY field and hence the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 07:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-with-unique-key/m-p/3982511#M951333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T07:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with internal table with unique key...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-with-unique-key/m-p/3982512#M951334</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;Unique key define the column uniqully throughout the table. If you try to append the duplicate value in the column, it will raise the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 07:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-with-unique-key/m-p/3982512#M951334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T07:52:19Z</dc:date>
    </item>
  </channel>
</rss>

