<?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: Control Break event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337031#M1033151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WA_DISP_DETAIL-BELNR = WA_MSEG-MBLNR.&lt;/P&gt;&lt;P&gt;L_MENGE2 = L_MENGE2 + WA_MSEG-MENGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry WA_DISP_DETAIL-BELNR = WA_MSEG-MBLNR.&lt;/P&gt;&lt;P&gt;L_MENGE2 = L_MENGE2 + WA_MSEG-MENGE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is repeated twice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2008 11:25:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-25T11:25:05Z</dc:date>
    <item>
      <title>Control Break event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337025#M1033145</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 am using one loop and in that i am using another loop with where condition in that i am using AT END OF event. but it is not checking the value in the event and directly it is going to inner part of event. what should i do u can any body help  me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 11:12:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337025#M1033145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T11:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337026#M1033146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u paste your code here to see what could be wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 11:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337026#M1033146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T11:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337027#M1033147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you are using control break statements don't use where condition. &lt;/P&gt;&lt;P&gt;if you still want to go for then filter the records first then Apply control break statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what exactly you are doing, and post the code...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 11:16:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337027#M1033147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T11:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337028#M1033148</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;As per what i can guess is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP....

  LOOP......WHERE...

    AT END OF ....

**Your code....

    ENDAT.

  ENDLOOP.


ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here what you need to check is that how many times your second loop is getting executed.....&lt;/P&gt;&lt;P&gt;If only 1 time then the code is absolutely correct......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If more than 1 then this behaviour can be because of the WHERE condition.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunjal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 11:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337028#M1033148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T11:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337029#M1033149</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;Usally AT END OF event checks the codition... i.e if the loop is taking last lap for that filed or not!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.
at end of &amp;lt;field&amp;gt;.
////
endat. 
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here field belongs to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there may be an error in ur code.. Plz check it once.&lt;/P&gt;&lt;P&gt;or..&lt;/P&gt;&lt;P&gt;Try to post the similer code...&lt;/P&gt;&lt;P&gt;also study the F1 documentation for AT END OF.... if you are not good at this area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 11:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337029#M1033149</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-08-25T11:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337030#M1033150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT IT_MSEG INTO WA_MSEG WHERE EBELN = WA_EKPO-EBELN AND&lt;/P&gt;&lt;P&gt;                                               EBELP = WA_EKPO-EBELP.&lt;/P&gt;&lt;P&gt; WA_DISP_DETAIL-BELNR = WA_MSEG-MBLNR.&lt;/P&gt;&lt;P&gt;              L_MENGE2 = L_MENGE2 + WA_MSEG-MENGE.&lt;/P&gt;&lt;P&gt;  WA_DISP_DETAIL-BELNR = WA_MSEG-MBLNR.&lt;/P&gt;&lt;P&gt;              L_MENGE2 = L_MENGE2 + WA_MSEG-MENGE.&lt;/P&gt;&lt;P&gt;              AT END OF MATNR.&lt;/P&gt;&lt;P&gt;                L_MENGE1 = WA_EBAN-BSMNG - L_MENGE2.&lt;/P&gt;&lt;P&gt;                IF L_MENGE1 &amp;gt; 0.&lt;/P&gt;&lt;P&gt;                  WA_DISP_DETAIL-G_POQTY = L_MENGE1.&lt;/P&gt;&lt;P&gt;                ENDIF.&lt;/P&gt;&lt;P&gt;                CLEAR L_MENGE2.&lt;/P&gt;&lt;P&gt;              ENDAT.&lt;/P&gt;&lt;P&gt;              APPEND WA_DISP_DETAIL TO IT_DISP_DETAIL.&lt;/P&gt;&lt;P&gt;              CLEAR WA_DISP_DETAIL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the Inner loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 11:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337030#M1033150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T11:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337031#M1033151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WA_DISP_DETAIL-BELNR = WA_MSEG-MBLNR.&lt;/P&gt;&lt;P&gt;L_MENGE2 = L_MENGE2 + WA_MSEG-MENGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry WA_DISP_DETAIL-BELNR = WA_MSEG-MBLNR.&lt;/P&gt;&lt;P&gt;L_MENGE2 = L_MENGE2 + WA_MSEG-MENGE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is repeated twice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 11:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-event/m-p/4337031#M1033151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T11:25:05Z</dc:date>
    </item>
  </channel>
</rss>

