<?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: Do I need to sort a hashed table before reading ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374835#M183889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no need to sort it.&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>Fri, 02 Jun 2006 14:19:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-02T14:19:25Z</dc:date>
    <item>
      <title>Do I need to sort a hashed table before reading ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374831#M183885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) I populate a hashed internal table :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :&lt;/P&gt;&lt;P&gt;  i_droplist type hashed table of t_droplist &lt;/P&gt;&lt;P&gt;     with unique key gpart vkont,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select        gpart&lt;/P&gt;&lt;P&gt;                  vkont&lt;/P&gt;&lt;P&gt;                  into table i_droplist&lt;/P&gt;&lt;P&gt;                  from  zxis_0x_dun_drop&lt;/P&gt;&lt;P&gt;                  for all entries in i_jointab1&lt;/P&gt;&lt;P&gt;           where  gpart  = i_jointab1-gpart&lt;/P&gt;&lt;P&gt;           and    vkont  = i_jointab1-vkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) read table i_droplist transporting no fields &lt;/P&gt;&lt;P&gt;   with table key gpart = p_gpart&lt;/P&gt;&lt;P&gt;                  vkont = p_vkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before reading the table is it needed to sort the hashed table on the key ?&lt;/P&gt;&lt;P&gt;I think it is not necessary but I am not sure ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Marie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374831#M183885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to sort a hashed table before reading ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374832#M183886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marie,&lt;/P&gt;&lt;P&gt; It is not Mandatory to use Sort before Read for a hashed table.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;P&gt;Reward if it helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374832#M183886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to sort a hashed table before reading ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374833#M183887</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;No! You can't do it because the system sorts the records while loading them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:17:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374833#M183887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to sort a hashed table before reading ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374834#M183888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;no need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When you write to the hashed table it uses a hashing algorithm to identify where the record is stored (think if this as writing the location of a page in an index of a book). When you READ this table the system looks up this "index" and retrieves the record. Because of this the retrieval time is constant.&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;latheesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Latheesh Kaduthara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374834#M183888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to sort a hashed table before reading ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374835#M183889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no need to sort it.&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>Fri, 02 Jun 2006 14:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374835#M183889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to sort a hashed table before reading ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374836#M183890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DO NOT SORT IT !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A hashed table is not sorted in any way.  It is organized according to a "hash" algorithm, which is a mathematical calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This "hashing" provides for maximize speed of data retrival when looking for a SINGLE, UNIQUE record!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have multiple records in the internal table with the same key, a hash table is NOT the way to go.  In that case, use a SORTED table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But DO NOT sort a hashed table... you will probably find performance degradation AFTER a SORT is performed on one.  SAP will "realize" that the hash algorithm has been borken... and SAP will start to read the int table sequentially.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374836#M183890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to sort a hashed table before reading ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374837#M183891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Not needed!!&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark all useful answers..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:26:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-i-need-to-sort-a-hashed-table-before-reading/m-p/1374837#M183891</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-06-02T14:26:32Z</dc:date>
    </item>
  </channel>
</rss>

