<?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: LOOP AT internal table with WHERE clause in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782004#M910017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where sdata like '*'.&lt;/P&gt;&lt;P&gt;&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;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2008 16:22:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-23T16:22:45Z</dc:date>
    <item>
      <title>LOOP AT internal table with WHERE clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782000#M910013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @ll&lt;/P&gt;&lt;P&gt;I have the bellow statement and I need the LIKE but from syntax point of view this is not allowed. How can I find a field with a proximate content.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT itab_report_test WHERE sdata LIKE 'It works good, change'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance&lt;/P&gt;&lt;P&gt;/Kamran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 16:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782000#M910013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T16:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT internal table with WHERE clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782001#M910014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with % &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab_report_test WHERE sdata LIKE '%It works good, change%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT yourtable.
  CHECK yourtable-sdata CS 'It works good, change'
*  process
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Paul Chapman on Apr 23, 2008 6:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 16:17:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782001#M910014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T16:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT internal table with WHERE clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782002#M910015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when I write this&lt;/P&gt;&lt;P&gt;LOOP AT itab_report_test WHERE sdata LIKE '%It works good, change%'.&lt;/P&gt;&lt;P&gt;it then says&lt;/P&gt;&lt;P&gt;Relational operator "LIKE" is not supported.		&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 16:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782002#M910015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T16:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT internal table with WHERE clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782003#M910016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you will need to try the 2nd option I provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop..
  check field CS 'xxxx'.
*  process
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 16:22:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782003#M910016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T16:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT internal table with WHERE clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782004#M910017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where sdata like '*'.&lt;/P&gt;&lt;P&gt;&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;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 16:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782004#M910017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T16:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT internal table with WHERE clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782005#M910018</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;LIKE operator is not allowed in LOOP statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find first occurrence of 'Its works good, change' in itab-sdat.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do ut thing.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Syed A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 16:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782005#M910018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T16:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT internal table with WHERE clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782006#M910019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks it helped.&lt;/P&gt;&lt;P&gt;/Kam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 16:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782006#M910019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T16:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT internal table with WHERE clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782007#M910020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT itab_report_test WHERE sdata LIKE 'It works good'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT itab_report_test WHERE sdata CS 'It works good'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 16:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-with-where-clause/m-p/3782007#M910020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T16:43:39Z</dc:date>
    </item>
  </channel>
</rss>

