<?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: regarding control break statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305816#M791691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mukesh n rao.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried for all fields with AT END OF,i got the o/p (except region).&lt;/P&gt;&lt;P&gt;y itz nt coming for this particular field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is based on region wise,i want to summarize  all of the amounts under region..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz giv me some idea asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2008 08:31:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-24T08:31:45Z</dc:date>
    <item>
      <title>regarding control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305809#M791684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all.&lt;/P&gt;&lt;P&gt; i fetch the data from 3 tables(sorted by region also).&lt;/P&gt;&lt;P&gt;n list is like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;group   g/l a/c   plant   amount    region(east/west/north/sth).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my requirement is i want to sum amounts at the end of  each region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used AT END OF REGION.&lt;/P&gt;&lt;P&gt;but the o/p comes for each record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i used AT END OF G/LACC.&lt;/P&gt;&lt;P&gt;OUTPUT IS CORRECT like at the end of each g/l total sum of amounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want only at the end of each region. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz giv me reply asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks n regards&lt;/P&gt;&lt;P&gt;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 07:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305809#M791684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T07:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: regarding control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305810#M791685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will surely give you some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pls reward if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT - Control break with internal tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. AT NEW f. &lt;/P&gt;&lt;P&gt;2. AT END OF f. &lt;/P&gt;&lt;P&gt;3. AT FIRST. &lt;/P&gt;&lt;P&gt;4. AT LAST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;In a LOOP which processes a dataset created with EXTRACT , you can use special control structures for control break processing. All these structures begin with AT and end with ENDAT . The sequence of statements which lies between them is then executed if a control break occurs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use these key words for control break processing with extract datasets only if the active LOOP statement is proceesing an extract dataset. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The control level structure with extract datasets is dynamic. It corresponds exactly to the sort key of the extract dataset, i.e. to the order of fields in the field group HEADER by which the extract dataset was sorted . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the start of a new control level (i.e. immediately after AT ), the following occurs in the output area of the current LOOP statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All default key fields (on the right) are filled with "*" after the current control level key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All other fields (on the right) are set to their initial values after the current control level key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Between AT and ENDAT , you can use SUM to insert the appropriate control totals in the number fields (see also ABAP/4 number types ) of the LOOP output area (on the right) after the current control level key. Summing is supported both at the beginning of a control level ( AT FIRST , AT NEW f ) and also the end of a control level ( AT END OF f , AT LAST ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of the control level processing (i.e. after ENDAT ), the old contents of the LOOP output area are restored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;When calculating totals, you must ensure that the totals are inserted into the same sub-fields of the LOOP output area as those where the single values otherwise occur. If there is an overflow, processing terminates with a runtime error. &lt;/P&gt;&lt;P&gt;If an internal table is processed only in a restricted form (using the additions FROM , TO and/or WHERE with the LOOP statement), you should not use the control structures for control level processing because the interaction of a restricted LOOP with the AT statement is currenly not properly defined. &lt;/P&gt;&lt;P&gt;With LOOP s on extracts, there are also special control break control structures you can use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: sflight_tab TYPE SORTED TABLE OF sflight &lt;/P&gt;&lt;P&gt;                  WITH UNIQUE KEY carrid connid fldate, &lt;/P&gt;&lt;P&gt;      sflight_wa  LIKE LINE OF sflight_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * &lt;/P&gt;&lt;P&gt;       FROM sflight &lt;/P&gt;&lt;P&gt;       INTO TABLE sflight_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT sflight_tab INTO sflight_wa. &lt;/P&gt;&lt;P&gt;  AT NEW connid. &lt;/P&gt;&lt;P&gt;    WRITE: / sflight_wa-carrid, &lt;/P&gt;&lt;P&gt;             sflight_wa-connid. &lt;/P&gt;&lt;P&gt;    ULINE. &lt;/P&gt;&lt;P&gt;  ENDAT. &lt;/P&gt;&lt;P&gt;  WRITE: / sflight_wa-fldate, &lt;/P&gt;&lt;P&gt;           sflight_wa-seatsocc. &lt;/P&gt;&lt;P&gt;  AT END OF connid. &lt;/P&gt;&lt;P&gt;    SUM. &lt;/P&gt;&lt;P&gt;    ULINE. &lt;/P&gt;&lt;P&gt;    WRITE: / 'Sum', &lt;/P&gt;&lt;P&gt;              sflight_wa-seatsocc UNDER sflight_wa-seatsocc. &lt;/P&gt;&lt;P&gt;    SKIP. &lt;/P&gt;&lt;P&gt;  ENDAT. &lt;/P&gt;&lt;P&gt;  AT END OF carrid. &lt;/P&gt;&lt;P&gt;    SUM. &lt;/P&gt;&lt;P&gt;    ULINE. &lt;/P&gt;&lt;P&gt;    WRITE: / 'Carrier Sum', &lt;/P&gt;&lt;P&gt;              sflight_wa-seatsocc UNDER sflight_wa-seatsocc. &lt;/P&gt;&lt;P&gt;    NEW-PAGE. &lt;/P&gt;&lt;P&gt;  ENDAT. &lt;/P&gt;&lt;P&gt;  AT LAST. &lt;/P&gt;&lt;P&gt;    SUM. &lt;/P&gt;&lt;P&gt;    WRITE: / 'Overall Sum', &lt;/P&gt;&lt;P&gt;              sflight_wa-seatsocc UNDER sflight_wa-seatsocc. &lt;/P&gt;&lt;P&gt;  ENDAT. &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 07:26:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305810#M791685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T07:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: regarding control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305811#M791686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data in fields to the left affect the field on which you are using control break statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create your internal table with Region as the 1st field. Sort the internal table data. Then use the control break statement AT NEW REGION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 07:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305811#M791686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T07:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: regarding control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305812#M791687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the postion of region must be last,req is like daat.&lt;/P&gt;&lt;P&gt;is there any other option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 07:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305812#M791687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T07:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: regarding control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305813#M791688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i put the region in internal table as a first field.n sort out.&lt;/P&gt;&lt;P&gt;still no use,the o/p comes at the end of each record,&lt;/P&gt;&lt;P&gt;y itz taking like dat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 08:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305813#M791688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T08:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: regarding control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305814#M791689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the output internal table put the amount field in the last&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;group g/l a/c plant region(east/west/north/sth) amount .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort the internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab by group &lt;/P&gt;&lt;P&gt;                     g/l a/c&lt;/P&gt;&lt;P&gt;                     plant &lt;/P&gt;&lt;P&gt;                     region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use &lt;/P&gt;&lt;P&gt; at end of region.&lt;/P&gt;&lt;P&gt;sum.&lt;/P&gt;&lt;P&gt;z_amount = amount.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 08:09:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305814#M791689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T08:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: regarding control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305815#M791690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mukesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i didnt gget ur control break logic.&lt;/P&gt;&lt;P&gt;plz xplain clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 08:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305815#M791690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T08:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: regarding control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305816#M791691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mukesh n rao.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried for all fields with AT END OF,i got the o/p (except region).&lt;/P&gt;&lt;P&gt;y itz nt coming for this particular field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is based on region wise,i want to summarize  all of the amounts under region..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz giv me some idea asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 08:31:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305816#M791691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T08:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: regarding control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305817#M791692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Internal table (ITAB) fields declaration  (use the same order)&lt;/P&gt;&lt;P&gt;Region&lt;/P&gt;&lt;P&gt;Group &lt;/P&gt;&lt;P&gt;G/L a/c&lt;/P&gt;&lt;P&gt;Plant &lt;/P&gt;&lt;P&gt;Amount &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at ITAB.&lt;/P&gt;&lt;P&gt;  AT END of REGION.&lt;/P&gt;&lt;P&gt;    SUM.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 08:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-control-break-statements/m-p/3305817#M791692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T08:38:27Z</dc:date>
    </item>
  </channel>
</rss>

