<?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: Using Hashed table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-hashed-table/m-p/10055739#M1810342</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;When Hashed table is defined with Unique key which is subset of database table key, there might be duplication of data going into hashed table based on its key and it may give dump. Since Hashed tables don't take any duplicate record based on its key, it would be always better to define hashed table Unique key with all key fields of database table from where the data is selected.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Zak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Feb 2014 08:20:47 GMT</pubDate>
    <dc:creator>former_member463678</dc:creator>
    <dc:date>2014-02-25T08:20:47Z</dc:date>
    <item>
      <title>Using Hashed table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-hashed-table/m-p/10055736#M1810339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose a database table has key fields A, B, C, D, E, F and G. I define a Hashed internal table to fetch data from this database table.&lt;/P&gt;&lt;P&gt;types begin of ty_str,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .................&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .................&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end of ty_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;HASHED &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF&lt;/SPAN&gt; ty_str &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;UNIQUE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY a b c d e.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is, database table is having A, B, C, D, E, F and G as key fields and itab is defined with A, B, C, D, E.&lt;/P&gt;&lt;P&gt;Does it make any data discrepancy while fetching data from database table to itab since itab key is defined with subset of database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where a b c d.&lt;/P&gt;&lt;P&gt;................&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How it makes impact if am using only subset of itab key in WHERE condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Zak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 09:51:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-hashed-table/m-p/10055736#M1810339</guid>
      <dc:creator>former_member463678</dc:creator>
      <dc:date>2014-02-24T09:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using Hashed table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-hashed-table/m-p/10055737#M1810340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check at &lt;A __default_attr="2015" __jive_macro_name="community" class="jive_macro_community jive_macro" data-orig-content="ABAP Development" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 09:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-hashed-table/m-p/10055737#M1810340</guid>
      <dc:creator>RamanKorrapati</dc:creator>
      <dc:date>2014-02-24T09:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Hashed table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-hashed-table/m-p/10055738#M1810341</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;If the key in the DB table contains more fields than your internal hashed table, you might have data discrepancy (if not an error). The reason is that the hashed tables always must have a unique key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Leszek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 09:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-hashed-table/m-p/10055738#M1810341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-24T09:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Hashed table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-hashed-table/m-p/10055739#M1810342</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;When Hashed table is defined with Unique key which is subset of database table key, there might be duplication of data going into hashed table based on its key and it may give dump. Since Hashed tables don't take any duplicate record based on its key, it would be always better to define hashed table Unique key with all key fields of database table from where the data is selected.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Zak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 08:20:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-hashed-table/m-p/10055739#M1810342</guid>
      <dc:creator>former_member463678</dc:creator>
      <dc:date>2014-02-25T08:20:47Z</dc:date>
    </item>
  </channel>
</rss>

