<?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 statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888716#M372436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I assume that you are using following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;ITAB&amp;gt; WHERE &amp;lt;CONDITION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW.&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;-code&lt;/DEL&gt;---&lt;/P&gt;&lt;P&gt;ENDAT.&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;my friend...you cannot use AT NEW command inside LOOP AT &amp;lt;ITAB&amp;gt; WHERE &amp;lt;CONDITION&amp;gt;. The Loop is limited only to the condition. The system may not throw a syntax error. But technically speaking AT NEW will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click the following link to know more about Control Break Statements.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        varaprasad bhagavatula&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2007 16:09:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-17T16:09:41Z</dc:date>
    <item>
      <title>Loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888713#M372433</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;I did extended program check, i receive the following error two times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;The LOOP statement processing will be limited&lt;/P&gt;&lt;P&gt;(FROM, TO and WHERE additions in LOOP)&lt;/P&gt;&lt;P&gt;Interaction with group change processing (AT NEW, ...) is undefined&lt;/P&gt;&lt;P&gt;(The message can be hidden with "#EC *)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my loop I used 'at new' and 'at end of' statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to correct this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Surya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 15:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888713#M372433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T15:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888714#M372434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz, can you insert loop code?&lt;/P&gt;&lt;P&gt;it's more simple to us help you.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 15:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888714#M372434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T15:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888715#M372435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error seems u r using other conditions which loop statement doesn't have.... and check that if u ended the loop statement with period ( . ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u paste the code where u get the error then it might be useful for us to correct u... without checking code its hard to assume ur error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;CNU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 16:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888715#M372435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T16:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888716#M372436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I assume that you are using following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;ITAB&amp;gt; WHERE &amp;lt;CONDITION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW.&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;-code&lt;/DEL&gt;---&lt;/P&gt;&lt;P&gt;ENDAT.&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;my friend...you cannot use AT NEW command inside LOOP AT &amp;lt;ITAB&amp;gt; WHERE &amp;lt;CONDITION&amp;gt;. The Loop is limited only to the condition. The system may not throw a syntax error. But technically speaking AT NEW will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click the following link to know more about Control Break Statements.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        varaprasad bhagavatula&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 16:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888716#M372436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T16:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888717#M372437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surya,&lt;/P&gt;&lt;P&gt;Seems you have wirtten the WHERE condition in LOOP AT Statement, so do not do that one to avoid this and in teh Control break statments, use all the statemets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 16:10:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888717#M372437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T16:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888718#M372438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it means that because you are using LOOP AT itab WHERE..., the WHERE may interfere with AT NEW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 16:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888718#M372438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T16:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888719#M372439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab &amp;lt;b&amp;gt;where&amp;lt;/b&amp;gt;...this one comes first and it bypasses control statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 16:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement/m-p/1888719#M372439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T16:12:29Z</dc:date>
    </item>
  </channel>
</rss>

