<?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: replacemnt for read table with key binary search in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacemnt-for-read-table-with-key-binary-search/m-p/8504096#M1654283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;This statement is not obsolete in 6.0, can you use it.&lt;/P&gt;&lt;P&gt;if you see that this statement is obsolete, please provide the source of that information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2012 14:39:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-02T14:39:54Z</dc:date>
    <item>
      <title>replacemnt for read table with key binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacemnt-for-read-table-with-key-binary-search/m-p/8504095#M1654282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as read table with &lt;/P&gt;&lt;P&gt; READ TABLE gt_INT_CURR_VALUE into gs_int_curr_value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           WITH KEY gs_FS_EINA_KEY  BINARY SEARCH.&lt;/P&gt;&lt;P&gt;the statement read tabel with key is absolute in ecc 6 so how to replace it .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 14:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacemnt-for-read-table-with-key-binary-search/m-p/8504095#M1654282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-02T14:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: replacemnt for read table with key binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacemnt-for-read-table-with-key-binary-search/m-p/8504096#M1654283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;This statement is not obsolete in 6.0, can you use it.&lt;/P&gt;&lt;P&gt;if you see that this statement is obsolete, please provide the source of that information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 14:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacemnt-for-read-table-with-key-binary-search/m-p/8504096#M1654283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-02T14:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: replacemnt for read table with key binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacemnt-for-read-table-with-key-binary-search/m-p/8504097#M1654284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi subratt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;internal tables with header lines are obsolete and in oo context (CLASS / METHOD code) forbidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, you'd better use SORTED TABLE and FIELD-SYMBOLS to gt optimal code::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE gt_INT_CURR_VALUE into gs_int_curr_value
WITH KEY gs_FS_EINA_KEY BINARY SEARCH.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be replaced with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  gt_INT_CURR_VALUE_SORTED LIKE SORTED TABLE OF  gs_int_curr_value
    WITH [NON-]UNIQUE KEY &amp;lt;fields of  gs_FS_EINA_KEY&amp;gt;.
FIELD-SYMBOLS:
  &amp;lt;nt_curr_value&amp;gt; LIKE gs_int_curr_value.
gt_INT_CURR_VALUE_SORTED = gt_INT_CURR_VALUE.
  READ TABLE gt_INT_CURR_VALUE_SORTED ASSIGNING &amp;lt;nt_curr_value&amp;gt;
    WITH TABLE KEY &amp;lt;key1&amp;gt; = gs_FS_EINA_KEY-&amp;lt;key1&amp;gt; ..  &amp;lt;keyn&amp;gt; = gs_FS_EINA_KEY-&amp;lt;keyn&amp;gt;.&lt;/CODE&gt;&lt;/PRE&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>Thu, 02 Feb 2012 23:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacemnt-for-read-table-with-key-binary-search/m-p/8504097#M1654284</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2012-02-02T23:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: replacemnt for read table with key binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacemnt-for-read-table-with-key-binary-search/m-p/8504098#M1654285</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;Hi ,&lt;/P&gt;&lt;P&gt;&amp;gt; This statement is not obsolete in 6.0, can you use it.&lt;/P&gt;&lt;P&gt;&amp;gt; if you see that this statement is obsolete, please provide the source of that information.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks,&lt;/P&gt;&lt;P&gt;&amp;gt; Srini.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HI Srinivas,&lt;/P&gt;&lt;P&gt;In the below statement, gs_FS_EINA_KEY is a structure. It is obsolete. I think this is what subrat was also taking about,(if iam correct).&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE gt_INT_CURR_VALUE into gs_int_curr_value
WITH KEY *gs_FS_EINA_KEY* BINARY SEARCH.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;for this to be modified, &lt;/P&gt;&lt;P&gt;you can do it in 2 ways, if gt_INT_CURR_VALUE is table with unique keys, then you can use same structure of table and mention your key values. and use READ FROM statement.&lt;/P&gt;&lt;P&gt;another way is to use to specifiy individual components..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please hit F1 on  READ TABLES....you will get cleared.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 00:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacemnt-for-read-table-with-key-binary-search/m-p/8504098#M1654285</guid>
      <dc:creator>surajarafath</dc:creator>
      <dc:date>2012-02-03T00:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: replacemnt for read table with key binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacemnt-for-read-table-with-key-binary-search/m-p/8504099#M1654286</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;Use this code snippet for your reference - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_matnr INTO wa_matnr.&lt;/P&gt;&lt;P&gt;Read Table i_makt INTO wa_makt&lt;/P&gt;&lt;P&gt;WITH KEY matnr = wa-matnr BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt; - - - - - - &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;Harsh Bansal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 06:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacemnt-for-read-table-with-key-binary-search/m-p/8504099#M1654286</guid>
      <dc:creator>Harsh_Bansal</dc:creator>
      <dc:date>2012-02-03T06:27:06Z</dc:date>
    </item>
  </channel>
</rss>

