<?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: Looping Issue with AT NEW / END in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180201#M1712997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shimano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use AT NEW &amp;amp; AT END statement then XBLNR should be first field in your internal table itab..in the same sorting order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most prob this will solve ur issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Dec 2012 09:42:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-12-31T09:42:43Z</dc:date>
    <item>
      <title>Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180199#M1712995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi All,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I'm having some problem with some abap codes, its looping an ITAB with control break of "AT NEW f1" and "AT END f1", the problem is that even thought the value in "f1" field is identical for sy-tabix 1 and 2, but somehow when it hits AT END f1 its still invoking the event even though its just the first loop of the index, and after the first loop it consider the 2nd index as a new value when it hits AT NEW event. The funny part is that this happens in QAS landscape but not in DEV, so its working fine in DEV, so was wondering any guru did encounter this problem before. below is an illustration of the codes. btw the OS is running on LINUX SUSSE, so not sure whether to dwell into that level.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;The ITAB[] value are something like this - note INDEX denotes the sy-tabix index value&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE border="1" class="jiveBorder" height="62" style="border: 1px solid rgb(0, 0, 0); width: 192px; height: 36px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;INDEX&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;XBLNR&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;00034567&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;00034567&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;LOOP AT itab.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AT NEW xblnr.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PERFORM subroutine_1.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDAT.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ........some processes.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AT END OF xblnr.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PERFORM subroutine_2.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDAT.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;ENDLOOP.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;what i was expecting was that the 1st loop the AT NEW event should be invoke, then then would skip AT END event. During the 2nd loop, it would skip AT NEW event and invoke AT END event. &lt;/DIV&gt;&lt;DIV&gt;What actually happens is that the 1st loop it invokes AT NEW (should happen) and also AT END(-this shouldnt happen) event, during the 2nd loop it invokes AT NEW (this shouldnt happen) and AT END (should happen)event&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I can assure you that during the debug session, the XBLNR value are the same for the header line and also the ITAB[] lines. i tested this in DEV, its just working fine, but once in QAS its just puzzles me. anyone encounter this b4 pls advise. &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Shimano&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 09:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180199#M1712995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-31T09:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180200#M1712996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shimano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is &lt;EM&gt;XBLNR&lt;/EM&gt; the left-most column of your internal table? If no, then the behavior of &lt;EM&gt;AT NEW&lt;/EM&gt; &amp;amp; &lt;EM&gt;AT END&lt;/EM&gt; are as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From SAP documentation on &lt;A href="http://help.sap.com/abapdocu_731/en/abapat_itab.htm#!ABAP_ADDITION_2@2@"&gt;control break statements&lt;/A&gt;: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; background-color: #f2f4f7;"&gt; The control breaks take place when the content of the component &lt;/SPAN&gt;&lt;SPAN class="qtext" style="font-family: 'Courier New'; font-weight: bold; color: #000000; background-color: #f2f4f7;"&gt;compi&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; background-color: #f2f4f7;"&gt; or &lt;EM style="text-decoration: underline;"&gt;another component to the left&lt;/EM&gt; of &lt;/SPAN&gt;&lt;SPAN class="qtext" style="font-family: 'Courier New'; font-weight: bold; color: #000000; background-color: #f2f4f7;"&gt;compi&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; background-color: #f2f4f7;"&gt; changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 09:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180200#M1712996</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2012-12-31T09:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180201#M1712997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shimano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use AT NEW &amp;amp; AT END statement then XBLNR should be first field in your internal table itab..in the same sorting order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most prob this will solve ur issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 09:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180201#M1712997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-31T09:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180202#M1712998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shimano, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your program is not at all working strangely. Suhas is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please first understand how AT NEW and AT END OF works in the below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/content.htm" title="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/content.htm"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can solve your problem yourself...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 09:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180202#M1712998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-31T09:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180203#M1712999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.Hi Shimano,&lt;/P&gt;&lt;P&gt;At new , at first will check the field value from the leftmost column.&lt;/P&gt;&lt;P&gt;In this scenario at new xblnr and at end xblnr will be triggered twice because the value of index is changing.&lt;/P&gt;&lt;P&gt;If either of index or xblnr will change the statements will be triggered.&lt;/P&gt;&lt;P&gt;Put your Xblnr field as first column of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Swarna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 10:16:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180203#M1712999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-31T10:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180204#M1713000</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 was wondering what is the logic behind:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The control breaks take place when the content of the component compi or another component to the left of compi changes."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 10:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180204#M1713000</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2012-12-31T10:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180205#M1713001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It means you need to define the fields in the internal table in the order that the field&amp;nbsp; values changes from left to till the field that you specify in AT NEW or AT END OF. The remaining fields are irrelevant for your purposes and will have values **** as its contents inside these loops. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are interested in only one field changes you have to declare that field as the first field in the internal table mentioning that other fields are irrelevant for looking for changes in their contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is only in case of one field value change. But ABAP also allows you the flexibility of observing multiple field changes based on your requirement. In this case you have to declare the fields from left to right indicating that when the first field&amp;nbsp; value changes you are not interested in the remaining field contents. When the first field value remains same then only you are interested in a change in the second field value and so on till the field you specified at AT NEW or AT END OF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 11:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180205#M1713001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-31T11:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180206#M1713002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're not interested in using "SUM" as a control break result, i don't see why you would want to use AT NEW / END in the first place.&lt;/P&gt;&lt;P&gt;You might want to try ON CHANGE OF &lt;EM&gt;field_name&lt;/EM&gt; instead, since it is invoked on (and only on) changes of &lt;EM&gt;field_name&lt;/EM&gt; . If you need to do some postprocessing at the end of a group of data, you could use a save_workarea for the previous entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jörg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 10:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180206#M1713002</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2013-01-02T10:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180207#M1713003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please press F1 on ON CHANGE OF statement and see. Please don't suggest obsolete statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 10:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180207#M1713003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-02T10:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180208#M1713004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jörg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afaik ON CHANGE OF is an obsolete syntax &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1142/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 10:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180208#M1713004</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2013-01-02T10:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180209#M1713005</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;Thanks for you explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if we want to generate different report based on differet sorting for each report we need to define different structure ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am right it seem a little bit restricting syntax and not very productive....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 14:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180209#M1713005</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-01-02T14:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180210#M1713006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes in this kind of situation you have to go for it in that way only. But this kind of situation rarely occurs as normally you will always have key fields in the beginning of the structure and will look for a change in that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 16:22:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180210#M1713006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-02T16:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180211#M1713007</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;Rarely occurs ? I wander.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take for example classic case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer,Product,Date,Value,Quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very common requirement to summarize the same data in different sorting and different control field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With ALV you can define sorting and control field dynamically. I believe that this flexibility should be also&lt;/P&gt;&lt;P&gt;available in ABAP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can think on different technics to overcome this limitation but this will create unnecessary complexity in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 16:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180211#M1713007</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-01-02T16:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180212#M1713008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi All,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Appreciate the help, was reading through the &lt;A href="http://help.sap.com/abapdocu_731/en/abapat_itab.htm#!ABAP_ADDITION_2@2"&gt;Control Breaks documentation&lt;/A&gt; stating that &lt;EM&gt;The control breaks take place when the content of the component &lt;SPAN class="qtext"&gt;compi&lt;/SPAN&gt; or another component to the left of &lt;SPAN class="qtext"&gt;compi&lt;/SPAN&gt; changes. &lt;/EM&gt;Apparently there are some other fields to the left of compi - XBLNR, thus the invoke of the event, though if XBLNR is to be used for the control break criterion, XBLNR would best to be furthest left field to be defined in the ITAB. Below is an illustration of the ITAB in both landscape QAS and DEV&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;QAS - there were change of result to the left of XBLNR that caused it to recognise as an END/ NEW scenario.&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE border="1" class="jiveBorder" height="62" style="border: 1px solid rgb(0, 0, 0); width: 169px; height: 25px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;INDEX&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;BLART&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;XBLNR&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;SA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;00034567&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;00034567&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;DEV - identical field value prior to XBLNR&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE border="1" class="jiveBorder" height="62" style="border: 1px solid #000000; width: 169px; height: 25px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;INDEX&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;BLART&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;XBLNR&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;SA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;00034567&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;SA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;00034567&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To anyone out there who are puzzled with the similar case study, the missing BLART at the 2nd index in QAS was causing the problem. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 03:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180212#M1713008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-03T03:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180213#M1713009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; In such cases, you already know what a programmer does, write your own code handling multiple field changes&lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1142/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 05:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180213#M1713009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-03T05:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Issue with AT NEW / END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180214#M1713010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Index field Should be&amp;nbsp; char c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sinagam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 19:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-issue-with-at-new-end/m-p/9180214#M1713010</guid>
      <dc:creator>venkatapavan_sinagam</dc:creator>
      <dc:date>2013-01-03T19:35:13Z</dc:date>
    </item>
  </channel>
</rss>

