<?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: internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2354868#M520191</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;To all  gurus helping me  out. As iam new to this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2007 09:53:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-15T09:53:35Z</dc:date>
    <item>
      <title>internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2354865#M520188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is a binary search ? and how it is useful in a sorted &lt;/P&gt;&lt;P&gt;internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 08:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2354865#M520188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T08:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2354866#M520189</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;Binay search follows this algorithm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its called BINARY coz it devides the list to be searched in to two small lists at each step of the search&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you have a table with this data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 4 5 6 7 8 9 1 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you want to search for 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you sort the table it will be in this order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 2 3 4 5 6 7 8 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now Binary search divides the table into two&lt;/P&gt;&lt;P&gt;1 2 3 4 5        6 7 8 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now 4 is in first list.(6 7 8 9) will be discarded from search&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then again divide into two small lists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 2 3      4 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now it is (Discard 1  2 3)&lt;/P&gt;&lt;P&gt;4 5&lt;/P&gt;&lt;P&gt;now again &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4        5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it finds 4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So every time one half of the list is discarded from the search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so its fast. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if your sort it its easy to discard the list .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Seshatalpasai Madala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 08:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2354866#M520189</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-06-14T08:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2354867#M520190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Use of binary search option&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;When a programmer uses the read command, the table is sequentially searched. This slows down the processing. Instead of this, use the binary search addition. The binary search algorithm helps faster search of a value in an internal table. It is advisable to sort the internal table before doing a binary search. Binary search repeatedly divides the search interval in half. If the value to be searched is less than the item in the middle of the interval, the search is narrowed to the lower half, otherwise the search is narrowed to the upper half. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Not Recommended&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Read table int_fligh with key  airln = &amp;#145;LF&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Recommended&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Read table int_fligh with key  airln = &amp;#145;LF&amp;#146; binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For internal table check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for binary search&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="428655"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 09:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2354867#M520190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T09:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2354868#M520191</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;To all  gurus helping me  out. As iam new to this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 09:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2354868#M520191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T09:53:35Z</dc:date>
    </item>
  </channel>
</rss>

