<?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: Read from internal table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-from-internal-table/m-p/1362731#M179868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suganya, &lt;/P&gt;&lt;P&gt;As the others said you need to use Loop &amp;#133; endloop for NE(not equal) conditions.&lt;/P&gt;&lt;P&gt;Remember to Sort your internal table before the READ statement and use the addition BINARY SEARCH to increase you search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, mark ALL useful answers if it helps you.&lt;/P&gt;&lt;P&gt;Regards,Felipe Cunha [FpdC]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Felipe Cunha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2006 12:56:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-12T12:56:35Z</dc:date>
    <item>
      <title>Read from internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-from-internal-table/m-p/1362727#M179864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi frnd's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values in the internal_table must be compared with the screen field value entered.&lt;/P&gt;&lt;P&gt;Whether the where condition can be used in the read table syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 12:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-from-internal-table/m-p/1362727#M179864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T12:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Read from internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-from-internal-table/m-p/1362728#M179865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where condition cannot be used to compare in read statement.&lt;/P&gt;&lt;P&gt; YOu have to use "with Key"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab with key field1 = &amp;lt;value&amp;gt;&lt;/P&gt;&lt;P&gt;                         field2 = &amp;lt;value2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 12:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-from-internal-table/m-p/1362728#M179865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T12:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read from internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-from-internal-table/m-p/1362729#M179866</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 it is paramter then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;read table it_matnr with key matnr = p_matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is select option then &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_matnr where matnr in s_matnr.

do some thing...
exit.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 12:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-from-internal-table/m-p/1362729#M179866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T12:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Read from internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-from-internal-table/m-p/1362730#M179867</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;           You can use where condition with READ statement.&lt;/P&gt;&lt;P&gt;READ TABLE ITAB WITH KEY ITAB-FIELD = SCREEN_FIELD-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;You can perform only =(equals) condition with READ statement.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;If you need to perform any other condtion apart from =(equals) then use LOOP...ENDLOOP WITH WHERE &amp;lt;condition&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WHERE ITAB-FIELD &amp;lt;&amp;gt; SCREEN_FIELD-VALUE.&lt;/P&gt;&lt;P&gt;"Do some operation&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 12:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-from-internal-table/m-p/1362730#M179867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T12:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Read from internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-from-internal-table/m-p/1362731#M179868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suganya, &lt;/P&gt;&lt;P&gt;As the others said you need to use Loop &amp;#133; endloop for NE(not equal) conditions.&lt;/P&gt;&lt;P&gt;Remember to Sort your internal table before the READ statement and use the addition BINARY SEARCH to increase you search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, mark ALL useful answers if it helps you.&lt;/P&gt;&lt;P&gt;Regards,Felipe Cunha [FpdC]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Felipe Cunha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 12:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-from-internal-table/m-p/1362731#M179868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T12:56:35Z</dc:date>
    </item>
  </channel>
</rss>

