<?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: hash tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hash-tables/m-p/3594192#M865420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You cannot access a hashed table using its index.&lt;/P&gt;&lt;P&gt;Hashed tables are useful if you want to construct and use an internal table which resembles a database table or for processing large amounts of data.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2008 09:53:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-02T09:53:30Z</dc:date>
    <item>
      <title>hash tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hash-tables/m-p/3594191#M865419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;can anyone tell me the answer of two questions on hash tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;gt; what are the problems of using hash tables&lt;/P&gt;&lt;P&gt;2&amp;gt;what are the advantages of using hash tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;nikesh kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 09:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hash-tables/m-p/3594191#M865419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T09:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: hash tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hash-tables/m-p/3594192#M865420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You cannot access a hashed table using its index.&lt;/P&gt;&lt;P&gt;Hashed tables are useful if you want to construct and use an internal table which resembles a database table or for processing large amounts of data.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 09:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hash-tables/m-p/3594192#M865420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T09:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: hash tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hash-tables/m-p/3594193#M865421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Should have a unique key. So if you're selecting data with possible duplicate entries, a short dump will occur. Is a matter of defining the key correctly.&lt;/P&gt;&lt;P&gt;2. Performance wise, especially in internal table with lots of entries, time for determining certain entry will be the same (will not increase with number of entries in internal table).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 09:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hash-tables/m-p/3594193#M865421</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-02T09:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: hash tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hash-tables/m-p/3594194#M865422</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;This is the most appropriate type for any table where the main operation is key access. You cannot access a hashed table using its index. &lt;/P&gt;&lt;P&gt;The response time for key access remains constant, regardless of the number of table entries. Like database tables, hashed tables always &lt;/P&gt;&lt;P&gt;have a unique key. Hashed tables are useful if you want to construct and use an internal table which resembles a database table or for &lt;/P&gt;&lt;P&gt;processing large amounts of data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 09:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hash-tables/m-p/3594194#M865422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T09:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: hash tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hash-tables/m-p/3594195#M865423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hashed table is useful when your have to work with very big internal table and to read it with  &lt;/P&gt;&lt;P&gt;"READ TABLE WITH KEY ..."  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The time access is constant !  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition of a Hashed Table:  &lt;/P&gt;&lt;P&gt;"Defines the table as one that is managed with an internal hash procedure. You can imagine a hashed table as a set, whose elements you can address using their unique key. Unlike standard and sorted tables, you cannot access hash tables using an index. All entries in the table must have a unique key.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Access time using the key is constant, regardless of the number of table entries.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can only access a hashed table using the generic key operations or other generic operations (SORT, LOOP, and so on). Explicit or implicit index operations (such as LOOP ... FROM to INSERT itab within a LOOP) are not allowed."  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as your records has unique key(s), using hash table will give you a huge performance gain when dealing with large dataset. assuming in your case, 10000 record , and if the key is unique, use hash table.  The main use of hash tables is for looking up fixed information from a key. So if you have a report that has personnel number and you want to display their name, you could use a hash table.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus:  &lt;/P&gt;&lt;P&gt;Code:  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of typ_pernr,  &lt;/P&gt;&lt;P&gt;         pernr  like pa0001-pernr,  &lt;/P&gt;&lt;P&gt;         ename  like pa0001-ename,  &lt;/P&gt;&lt;P&gt;       end   of typ_pernr.  &lt;/P&gt;&lt;P&gt;data: ls_pernr  type typ_pernr,  &lt;/P&gt;&lt;P&gt;      lt_pernr  type  hashed table of typ_pernr  with unique key pernr.  &lt;/P&gt;&lt;P&gt;...  &lt;/P&gt;&lt;P&gt;  select pernr ename into table lt_pernr  from pa0001.  &lt;/P&gt;&lt;P&gt;...  &lt;/P&gt;&lt;P&gt;  loop at itab.  &lt;/P&gt;&lt;P&gt;    read table lt_pernr  with table key pernr  =  itab-pernr  &lt;/P&gt;&lt;P&gt;         into ls_pernr.  &lt;/P&gt;&lt;P&gt;    write: ls_pernr-ename, itab-data.  &lt;/P&gt;&lt;P&gt;  endloop.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kindly Reward Points If You Found The Reply Helpful&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chaitanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 09:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hash-tables/m-p/3594195#M865423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T09:56:46Z</dc:date>
    </item>
  </channel>
</rss>

