<?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 does not work as before after upgrade in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409885#M1645562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;One primary pre-requisite for BINARY SEARCH is that you have to sort internal table which field you want to read from table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Jayvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Jan 2012 06:50:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-07T06:50:14Z</dc:date>
    <item>
      <title>BINARY SEARCH does not work as before after upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409883#M1645560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We recently upgraded from HRSP 26 to HRSP 40 as well as similar upgrades in non-HR areas on our ECC 6.04 system.  We've been in SAP since 1998, and have a lot of old custom programs which were written when we were still new at ABAP.  In a few, we put records into an internal table sorted the table, maybe added a few more records to the table, and did a READ BINARY SEARCH.  Granted, this is not correct, adding records to a table after it is sorted.  But these programs have worked for more than 10 years and now, since our upgrade, the READ BINARY SEARCH does not always find a record where it did before the upgrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is mostly just a heads-up.  If you are missing data in reports after upgrading, this might be the issue.  Also I am wondering if anyone has experienced this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heads-up!&lt;/P&gt;&lt;P&gt;Janice Ishee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 21:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409883#M1645560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-06T21:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY SEARCH does not work as before after upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409884#M1645561</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;one of the pre-requisites to use binary search is that the internal table should be sorted prior to using binary search in read statement. Please make sure that the internal table is sorted befor you use the Binary search statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kartik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 05:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409884#M1645561</guid>
      <dc:creator>Kartik2</dc:creator>
      <dc:date>2012-01-07T05:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY SEARCH does not work as before after upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409885#M1645562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;One primary pre-requisite for BINARY SEARCH is that you have to sort internal table which field you want to read from table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Jayvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 06:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409885#M1645562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-07T06:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY SEARCH does not work as before after upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409886#M1645563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The entire concept of Binary search is splitting the array(tale in this case) into two part(always), a lower value part and a upper value part, and it keeps doing that till it finds value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So IT WILL NEVER WORK without SORT that too ONLY when the table is sorted in ASCENDING ORDER. &lt;/P&gt;&lt;P&gt;sort is descending and it wont work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, forget about what was there... see what you can do on that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 08:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409886#M1645563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-07T08:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY SEARCH does not work as before after upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409887#M1645564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you did not give any context. Please note that it is a popular error to think that a SELECT statement will fetch data in order of the primary key of the table - although it happens quite frequently. So always first sort, then binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably not related to upgrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 18:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409887#M1645564</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2012-01-07T18:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY SEARCH does not work as before after upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409888#M1645565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is just a heads-up to anyone that might be having the same problem.  BINARY SEARCH was more forgiving before we installed HRSP's 27-40 and other related service packs.  Programs that worked for 12 years, even though BINARY SEARCH was occassionally not used by us correctly, are now not working.  Just f.y.i.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 12:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409888#M1645565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-09T12:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY SEARCH does not work as before after upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409889#M1645566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. A heads-up to warn people if they've not been using BINARY SEARCH as it's supposed to be used, that they might encounter problems now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just goes to show what problems programming by coincidence can cause! (I.e. it works, so that's what matters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Jan 9, 2012 2:02 PM - removed a comment that was a bit harsh!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 12:55:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409889#M1645566</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2012-01-09T12:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY SEARCH does not work as before after upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409890#M1645567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;programming by coincidence&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;A nice turn of phrase &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we are all guilty at some time though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 14:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409890#M1645567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-09T14:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY SEARCH does not work as before after upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409891#M1645568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not original to me. I first encountered it in "The Pragmatic Programmer".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 15:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search-does-not-work-as-before-after-upgrade/m-p/8409891#M1645568</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2012-01-09T15:15:55Z</dc:date>
    </item>
  </channel>
</rss>

