<?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: Regarding hash table and performance tuning... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-hash-table-and-performance-tuning/m-p/1024274#M81964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do we seelect hash function if we are using hash table in ABAP? Can you give small example.&lt;/P&gt;&lt;P&gt;Points will be surely awarded..&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2005 04:33:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-22T04:33:56Z</dc:date>
    <item>
      <title>Regarding hash table and performance tuning...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-hash-table-and-performance-tuning/m-p/1024272#M81962</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 have one more question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) When do we use hash table in ABAP? what is the advantage of using it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Whenever we want tp performance tune a given report what is the procedure to do it ? Is it just like first run run-time analysis and SQL trace and then see various issues involved like fewer database access and other stuff?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tushar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 04:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-hash-table-and-performance-tuning/m-p/1024272#M81962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T04:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding hash table and performance tuning...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-hash-table-and-performance-tuning/m-p/1024273#M81963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. &lt;/P&gt;&lt;P&gt;Hashed tables are managed by a hash algorithm. There is no logical index. The entries are not ordered in the memory. The position of a row is calculated by specifying a key using a hash function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A hashed table's performance in reads is NOT dependent on the number of records. However, it is intended for reads that will return only and only one record. It uses a "side-table" with a hash algorithm to store off the physical location of the record in the actual internal table. It is not NECESSARILY sorted/organized in an meaningful order (like a sorted table is). Please note that changes to a hashed tables records must be managed carefully. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. First see runtime analysis, try to make 50% of abap time and database time.&lt;/P&gt;&lt;P&gt;Next SQL Trace, check which table is taking more time and try to minimize it by using full key or creating index for the where clause.&lt;/P&gt;&lt;P&gt;Next see logic in the prg, try to avaoid multiple reads on same table and try to minimize  unneccessary data&lt;/P&gt;&lt;P&gt;Next try to remove for all entries if it has large amount of data in the for all entries internal table.&lt;/P&gt;&lt;P&gt;Next try to read Header table first than item table.&lt;/P&gt;&lt;P&gt;Next try to put joins&lt;/P&gt;&lt;P&gt;Next try to remove nested select's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are some of the tips in performance tunning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 04:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-hash-table-and-performance-tuning/m-p/1024273#M81963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T04:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding hash table and performance tuning...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-hash-table-and-performance-tuning/m-p/1024274#M81964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do we seelect hash function if we are using hash table in ABAP? Can you give small example.&lt;/P&gt;&lt;P&gt;Points will be surely awarded..&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 04:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-hash-table-and-performance-tuning/m-p/1024274#M81964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T04:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding hash table and performance tuning...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-hash-table-and-performance-tuning/m-p/1024275#M81965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;COL1 TYPE I,&lt;/P&gt;&lt;P&gt;COL2 TYPE I,&lt;/P&gt;&lt;P&gt;END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ITAB LIKE HASHED TABLE OF LINE WITH UNIQUE KEY COL1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 4 TIMES.&lt;/P&gt;&lt;P&gt;  LINE-COL1 = SY-INDEX.&lt;/P&gt;&lt;P&gt;  LINE-COL2 = SY-INDEX ** 2.&lt;/P&gt;&lt;P&gt;INSERT LINE INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE-COL1 = 2. LINE-COL2 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ITAB FROM LINE INTO LINE COMPARING COL2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: 'SY-SUBRC =', SY-SUBRC.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;WRITE: / LINE-COL1, LINE-COL2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info see below link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/fc/eb362c358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/fc/eb362c358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sure you will understand how to use hast tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 05:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-hash-table-and-performance-tuning/m-p/1024275#M81965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T05:01:03Z</dc:date>
    </item>
  </channel>
</rss>

