<?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: Select for a hashed table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-a-hashed-table/m-p/1551638#M250216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Kenny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HASHED TABLE: &lt;/P&gt;&lt;P&gt;There is no default setting for hashed tables. However, you must define a UNIQUE key. The NON-UNIQUE addition is not permitted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot avoid this statement. May be the alternative is You have to use SORTED table with NON-UNIQUE option and then apply DELETE ADJACENT DUPLICATES, in this way you can have unique values for your itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Aug 2006 07:34:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-22T07:34:18Z</dc:date>
    <item>
      <title>Select for a hashed table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-a-hashed-table/m-p/1551635#M250213</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;&lt;/P&gt;&lt;P&gt;This is a repost but this time Ill be specific. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I select from a table into a hashed table faster without using "select distinct"? my primary concern is the speed of the select statement, and im afraid I cannot get rid of the hashed table destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 06:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-a-hashed-table/m-p/1551635#M250213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T06:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select for a hashed table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-a-hashed-table/m-p/1551636#M250214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[code]select field1 field2 into table itab &lt;/P&gt;&lt;P&gt;                    from dbtab where cond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hashed tables don't take any duplicate record, &lt;/P&gt;&lt;P&gt;hence, we have to specify all the KEY FIELDS,when declaring the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 06:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-a-hashed-table/m-p/1551636#M250214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T06:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select for a hashed table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-a-hashed-table/m-p/1551637#M250215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kishan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is Im only after one field from the dbtab. And this is not a unique key, thats why Im using select distinct now. Therefore, I am limited to it for selecting Unique rows. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Kenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 06:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-a-hashed-table/m-p/1551637#M250215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T06:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select for a hashed table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-a-hashed-table/m-p/1551638#M250216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Kenny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HASHED TABLE: &lt;/P&gt;&lt;P&gt;There is no default setting for hashed tables. However, you must define a UNIQUE key. The NON-UNIQUE addition is not permitted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot avoid this statement. May be the alternative is You have to use SORTED table with NON-UNIQUE option and then apply DELETE ADJACENT DUPLICATES, in this way you can have unique values for your itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 07:34:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-a-hashed-table/m-p/1551638#M250216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T07:34:18Z</dc:date>
    </item>
  </channel>
</rss>

