<?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: Reg : Read statement using Binary Search.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-read-statement-using-binary-search/m-p/5913704#M1330224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SORT internal table before you use BINARY SEARCH is the thumb rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2009 03:47:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-16T03:47:38Z</dc:date>
    <item>
      <title>Reg : Read statement using Binary Search....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-read-statement-using-binary-search/m-p/5913701#M1330221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an Internal Table as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value           Description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100               Product&lt;/P&gt;&lt;P&gt;2008             Production Year&lt;/P&gt;&lt;P&gt;05                 Production Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Read statement with Binary Search for getting Production Month.&lt;/P&gt;&lt;P&gt;Read table itab with key Description = 'Production Month' binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting sy-subrc as 4 eventhough data is present in the table for Production Month.&lt;/P&gt;&lt;P&gt;What may be the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 03:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-read-statement-using-binary-search/m-p/5913701#M1330221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T03:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Read statement using Binary Search....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-read-statement-using-binary-search/m-p/5913702#M1330222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to sort the table by the KEY before using BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say ur internal table is ITAB and you want to search with key PDATE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then do SORT ITAB by PDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then do.. READ TABLE ITAB .. WITH KEY PDATE = ... BINARY SEARCH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 03:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-read-statement-using-binary-search/m-p/5913702#M1330222</guid>
      <dc:creator>vimalv</dc:creator>
      <dc:date>2009-07-16T03:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Read statement using Binary Search....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-read-statement-using-binary-search/m-p/5913703#M1330223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     First Sort the itab with Description field, then use the READ statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For BINARY SEARCH to be used, we have to sort the internal table before  with the order of WHERE clause in READ statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 03:45:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-read-statement-using-binary-search/m-p/5913703#M1330223</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-07-16T03:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Read statement using Binary Search....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-read-statement-using-binary-search/m-p/5913704#M1330224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SORT internal table before you use BINARY SEARCH is the thumb rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 03:47:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-read-statement-using-binary-search/m-p/5913704#M1330224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T03:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Read statement using Binary Search....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-read-statement-using-binary-search/m-p/5913705#M1330225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suganya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort table itab ascending by &amp;lt;production month&amp;gt;.     &lt;/P&gt;&lt;P&gt;Read table itab with key description = &amp;lt;production month&amp;gt; binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember always, while using binary search always sort the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sakthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 03:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-read-statement-using-binary-search/m-p/5913705#M1330225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T03:50:42Z</dc:date>
    </item>
  </channel>
</rss>

