<?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: Difference between read table with &amp; without Binary search in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777224#M335198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, U need to SORT....&lt;/P&gt;&lt;P&gt;Before using Binary search Sort the internal Table.&lt;/P&gt;&lt;P&gt;SORT TABLE TKOMV BY KNUMV KPOSN KSCHL.&lt;/P&gt;&lt;P&gt;READ TABLE TKOMV WITH KEY KNUMV = GT_VBAK-KNUMV&lt;/P&gt;&lt;P&gt;KPOSN = GT_VBAP-POSNR&lt;/P&gt;&lt;P&gt;KSCHL = 'PR00'&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Dec 2006 05:11:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-16T05:11:59Z</dc:date>
    <item>
      <title>Difference between read table with &amp; without Binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777221#M335195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me know about read table with Binary search and read table without Binary search&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Dec 2006 05:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777221#M335195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-16T05:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between read table with &amp; without Binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777222#M335196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BINAY SEARCH in READ will definitely increase performance.But you need to SORT the internal table with all fields specifying in your READ statement.&lt;/P&gt;&lt;P&gt;Use the following statement before READ statement with BINARY SEARCH.&lt;/P&gt;&lt;P&gt;SORT TKOMV BY KNUMV KPOSN KSCHL. &lt;/P&gt;&lt;P&gt;READ TABLE TKOMV WITH KEY KNUMV = GT_VBAK-KNUMV&lt;/P&gt;&lt;P&gt;KPOSN = GT_VBAP-POSNR&lt;/P&gt;&lt;P&gt;KSCHL = 'PR00'&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;binary search is one of the fastest way to find the record exists in the internal table.&lt;/P&gt;&lt;P&gt;TO use BINARY SEARCH, you have to SORT the internal table in ASCENDING/DESCENDING ORDER. Then only you will get the exact results.&lt;/P&gt;&lt;P&gt;For more detail you can refer to below threads:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1084944"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="762027"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Dec 2006 05:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777222#M335196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-16T05:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between read table with &amp; without Binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777223#M335197</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 addition BINARY SEARCH is specified, the search is binary instead of linear. &lt;/P&gt;&lt;P&gt;This considerably reduces the runtime of the search for larger tables (from approximately 100 entries upwards).&lt;/P&gt;&lt;P&gt; For the binary search, the table must be sorted by the specified search key in ascending order. &lt;/P&gt;&lt;P&gt;Otherwise the search will not find the correct row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Dec 2006 05:10:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777223#M335197</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-12-16T05:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between read table with &amp; without Binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777224#M335198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, U need to SORT....&lt;/P&gt;&lt;P&gt;Before using Binary search Sort the internal Table.&lt;/P&gt;&lt;P&gt;SORT TABLE TKOMV BY KNUMV KPOSN KSCHL.&lt;/P&gt;&lt;P&gt;READ TABLE TKOMV WITH KEY KNUMV = GT_VBAK-KNUMV&lt;/P&gt;&lt;P&gt;KPOSN = GT_VBAP-POSNR&lt;/P&gt;&lt;P&gt;KSCHL = 'PR00'&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Dec 2006 05:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777224#M335198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-16T05:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between read table with &amp; without Binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777225#M335199</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;Just want to know how to post a question here? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm only new in this community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 08:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777225#M335199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T08:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between read table with &amp; without Binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777226#M335200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Larissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SCN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first choose the right place to post your query so that can get quality of answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just from you home screen of SDN:&lt;/P&gt;&lt;P&gt;Forums&amp;gt;Choose correct Forum Categories&amp;gt;you will be abale to see   &lt;STRONG&gt;Post New Thread&lt;/STRONG&gt;  there&amp;gt;here you can post your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i would also suggest you to read [Rules Before posting|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rules&lt;EM&gt;of&lt;/EM&gt;Engagement]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy posting &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 08:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-read-table-with-without-binary-search/m-p/1777226#M335200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T08:31:56Z</dc:date>
    </item>
  </channel>
</rss>

