<?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 Hashed table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table/m-p/1356648#M177874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've a select query which is selecting data in a hashed internal table ( gt_but100 ).&lt;/P&gt;&lt;P&gt;The table key is defined as 'Partner'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM but100 INTO TABLE gt_but100&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gt_blocked_bp&lt;/P&gt;&lt;P&gt;WHERE partner EQ gt_blocked_bp-partner&lt;/P&gt;&lt;P&gt;AND rltyp IN s_parro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query works fine is there is only entry in s_parro.&lt;/P&gt;&lt;P&gt;But gives a ITAB_DUPLICATE_KEY short dump when it has more then 1 value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could i avoid that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2006 08:34:59 GMT</pubDate>
    <dc:creator>rohit_trivedi</dc:creator>
    <dc:date>2006-06-12T08:34:59Z</dc:date>
    <item>
      <title>Hashed table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table/m-p/1356648#M177874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've a select query which is selecting data in a hashed internal table ( gt_but100 ).&lt;/P&gt;&lt;P&gt;The table key is defined as 'Partner'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM but100 INTO TABLE gt_but100&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gt_blocked_bp&lt;/P&gt;&lt;P&gt;WHERE partner EQ gt_blocked_bp-partner&lt;/P&gt;&lt;P&gt;AND rltyp IN s_parro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query works fine is there is only entry in s_parro.&lt;/P&gt;&lt;P&gt;But gives a ITAB_DUPLICATE_KEY short dump when it has more then 1 value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could i avoid that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 08:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table/m-p/1356648#M177874</guid>
      <dc:creator>rohit_trivedi</dc:creator>
      <dc:date>2006-06-12T08:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hashed table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table/m-p/1356649#M177875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thats the way hashed tables work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can go for normal itab where duplicates are not checked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or change the hashed table definition to extend the key definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 08:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table/m-p/1356649#M177875</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-06-12T08:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hashed table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table/m-p/1356650#M177876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Duplicate key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. define your internal table gt_but100&lt;/P&gt;&lt;P&gt;   like this&lt;/P&gt;&lt;P&gt;  (and then u won't get any error)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------" /&gt;&lt;P&gt;&amp;lt;b&amp;gt;data : gt_but100 like  hashed table of but100&lt;/P&gt;&lt;P&gt;     with unique key &amp;lt;b&amp;gt;MANDT PARTNER RLTYP DFVAL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;       with header line.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Hashed tables don't take any duplicate record,  &lt;/P&gt;&lt;P&gt;   hence, &lt;/P&gt;&lt;P&gt;   we have to specify all the KEY FIELDS,&lt;/P&gt;&lt;P&gt;   when declaring the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 08:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table/m-p/1356650#M177876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T08:41:42Z</dc:date>
    </item>
  </channel>
</rss>

