<?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: ATNEW-ENDAT -The LOOP statement processing will be limited ERROR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/atnew-endat-the-loop-statement-processing-will-be-limited-error/m-p/9054297#M1702181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just to explain what AMY already outlined:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The control break events are defined for a sorted table. AT NEW CLASS event is triggered if the field class value or the value of any field left of CLASS changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use a WHERE clause, just this record where the event is defined may be filtered. So the event will not be processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resulting Rule: Never use AT control break statements in a loop that is filtered by WHERE clause. No WHERE &lt;STRONG&gt;or&lt;/STRONG&gt; no AT.&lt;/P&gt;&lt;P&gt;&lt;/P&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, 27 Sep 2012 21:09:23 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2012-09-27T21:09:23Z</dc:date>
    <item>
      <title>ATNEW-ENDAT -The LOOP statement processing will be limited ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atnew-endat-the-loop-statement-processing-will-be-limited-error/m-p/9054295#M1702179</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 have extended program check for a program i was getting a error with description like this "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;&lt;/P&gt;&lt;P&gt;Code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t&lt;/P&gt;&lt;P&gt;WHERE klagr EQ name&lt;/P&gt;&lt;P&gt;AND matnr EQ z_matnr.&lt;/P&gt;&lt;P&gt;AT NEW class.&lt;/P&gt;&lt;P&gt;class_count = class_count + 1.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;IF class_count &amp;gt; 1.&lt;/P&gt;&lt;P&gt;MESSAGE e398(00) WITH text-903 name ' (1)' ' ' .&lt;/P&gt;&lt;P&gt;DELETE t&lt;/P&gt;&lt;P&gt;WHERE matnr = z_matnr.&lt;/P&gt;&lt;P&gt;CONTINUE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 17:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atnew-endat-the-loop-statement-processing-will-be-limited-error/m-p/9054295#M1702179</guid>
      <dc:creator>vijay_kumar134</dc:creator>
      <dc:date>2012-09-27T17:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: ATNEW-ENDAT -The LOOP statement processing will be limited ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atnew-endat-the-loop-statement-processing-will-be-limited-error/m-p/9054296#M1702180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message is because you're using a control break (AT NEW) combined with a WHERE condition within a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Amy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 17:21:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atnew-endat-the-loop-statement-processing-will-be-limited-error/m-p/9054296#M1702180</guid>
      <dc:creator>amy_king</dc:creator>
      <dc:date>2012-09-27T17:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: ATNEW-ENDAT -The LOOP statement processing will be limited ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atnew-endat-the-loop-statement-processing-will-be-limited-error/m-p/9054297#M1702181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just to explain what AMY already outlined:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The control break events are defined for a sorted table. AT NEW CLASS event is triggered if the field class value or the value of any field left of CLASS changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use a WHERE clause, just this record where the event is defined may be filtered. So the event will not be processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resulting Rule: Never use AT control break statements in a loop that is filtered by WHERE clause. No WHERE &lt;STRONG&gt;or&lt;/STRONG&gt; no AT.&lt;/P&gt;&lt;P&gt;&lt;/P&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, 27 Sep 2012 21:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atnew-endat-the-loop-statement-processing-will-be-limited-error/m-p/9054297#M1702181</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2012-09-27T21:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: ATNEW-ENDAT -The LOOP statement processing will be limited ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atnew-endat-the-loop-statement-processing-will-be-limited-error/m-p/9054298#M1702182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add a reference, from the online help for &lt;SPAN style="color: #000080;"&gt;AT - itab &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;After &lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt;LOOP&lt;/STRONG&gt;&lt;/SPAN&gt;, a restricting condition &lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt; cond&lt;/STRONG&gt;&lt;/SPAN&gt; can only be specified if this selects a consecutive line block of the internal table. Otherwise, the behavior of control level processing is undefined.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So there should not be any problem if the criteria of the WHERE are higher keys of the table (e.g. if your table is sorted by klagr, matnr, class)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2012 09:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atnew-endat-the-loop-statement-processing-will-be-limited-error/m-p/9054298#M1702182</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-09-29T09:48:17Z</dc:date>
    </item>
  </channel>
</rss>

