<?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: Error at new statement on extended program check need help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579194#M1434086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are using where condition in loop statement and also using the control break statement thats why it is showing the error for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want you can do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not  wa-f1 is initial ....&amp;lt;and other conditions&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;continue.&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;at new   f1.&lt;/P&gt;&lt;P&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;It will resolve your problem but I am having the doubt how the at new will work properly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiba Prasad Dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2010 09:24:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-19T09:24:11Z</dc:date>
    <item>
      <title>Error at new statement on extended program check need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579193#M1434085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all ,&lt;/P&gt;&lt;P&gt;                   This is the code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT i_stocks INTO wa_stocks WHERE NOT pulkt IS INITIAL AND
                         NOT bstkt IS INITIAL AND
                         NOT fprctr IS INITIAL AND
                         ( write_off_fix &amp;lt;&amp;gt; 0 OR
                           write_off_pup &amp;lt;&amp;gt; 0 ).
    AT NEW fprctr.
      CLEAR: l_prctrsum_fix, l_prctrsum_pup.
    ENDAT.
    IF wa_stocks-bukrs &amp;lt;&amp;gt; lastbukrs.
      lastbukrs = wa_stocks-bukrs.
      PERFORM document_header USING xreversal.
      i_counter = 1.
      CLEAR lastkostl.
    ENDIF.
    
    ADD wa_stocks-write_off_pup TO l_prctrsum_pup.
 ENDLOOP&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;On Extended program check its says :&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;The LOOP statement processing will be limited
(FROM, TO and WHERE additions in LOOP)
Interaction with group change processing (AT NEW, ...) is undefined
(The message can be hidden with "#EC *)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means at statement   AT NEW fprctr .&lt;/P&gt;&lt;P&gt;Need help , How can i resolve this error ?&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;Edited by: ujjwal dharmak on Feb 19, 2010 9:55 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Moved to the correct forum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Feb 19, 2010 9:04 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 08:38:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579193#M1434085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T08:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error at new statement on extended program check need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579194#M1434086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are using where condition in loop statement and also using the control break statement thats why it is showing the error for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want you can do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not  wa-f1 is initial ....&amp;lt;and other conditions&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;continue.&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;at new   f1.&lt;/P&gt;&lt;P&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;It will resolve your problem but I am having the doubt how the at new will work properly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiba Prasad Dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 09:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579194#M1434086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T09:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error at new statement on extended program check need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579195#M1434087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At new does not work properly if used inside loop with where condition and that is happening in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution of your problem is create a temporary table. Move data from your main table( which you are looping) into temp table. delete entries from temp table according to your where clause. then loop this temp table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anurag_n on Feb 19, 2010 11:44 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 10:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579195#M1434087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T10:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error at new statement on extended program check need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579196#M1434088</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;  You can use the standard way without the use of "AT NEW" : with another variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You can use it like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP ...
  IF wa_stocks-fprctr NE ld_fprctr_old. " Check if fprctr has change since last loop
    CLEAR: l_prctrsum_fix, l_prctrsum_pup.
  ENDIF.

  ld_fprctr_old = wa_stocks-fprctr. " Store new value of fprctr

...

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 10:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579196#M1434088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T10:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error at new statement on extended program check need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579197#M1434089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your replies ! Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 14:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579197#M1434089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T14:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error at new statement on extended program check need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579198#M1434090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conditions within loop will work ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 14:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-new-statement-on-extended-program-check-need-help/m-p/6579198#M1434090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T14:12:26Z</dc:date>
    </item>
  </channel>
</rss>

