<?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: binary search in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/2544474#M578613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. you should.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2007 09:27:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-19T09:27:42Z</dc:date>
    <item>
      <title>binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/2544473#M578612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi dar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to write..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read itab1 into wa_itab1 with key field4 binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this shud i sort the itab1 by field4  ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 09:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/2544473#M578612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T09:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/2544474#M578613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. you should.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 09:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/2544474#M578613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T09:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/2544475#M578614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi TUBORG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; yes it is prerequisite to sort the table by field which is used in binary search&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT ITAB1 BT  FIELD4.
read itab1 into wa_itab1 with key field4 eq v_field4 binary search.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 09:28:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/2544475#M578614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T09:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/2544476#M578615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tuborg , &lt;/P&gt;&lt;P&gt;  You need to sort the internal table with the field field4 , as this is mandatory when you use binary search .&lt;/P&gt;&lt;P&gt;The reson being binary search finds the record in the middle and checks if the value is less that the value we are searching for , if it is then it searches from the first record to this record and so on.&lt;/P&gt;&lt;P&gt;So if we do not sort the table then we may miss out the redcord we are searching for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 09:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/2544476#M578615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T09:36:03Z</dc:date>
    </item>
  </channel>
</rss>

