<?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 control brek statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910698#M379113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;using At first&lt;/P&gt;&lt;P&gt;         At new&lt;/P&gt;&lt;P&gt;        At end of &lt;/P&gt;&lt;P&gt;        At last&lt;/P&gt;&lt;P&gt;send me one example program&lt;/P&gt;&lt;P&gt;byee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Feb 2007 09:58:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-16T09:58:43Z</dc:date>
    <item>
      <title>control brek statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910698#M379113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;using At first&lt;/P&gt;&lt;P&gt;         At new&lt;/P&gt;&lt;P&gt;        At end of &lt;/P&gt;&lt;P&gt;        At last&lt;/P&gt;&lt;P&gt;send me one example program&lt;/P&gt;&lt;P&gt;byee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 09:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910698#M379113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T09:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: control brek statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910699#M379114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT - Control break with internal tables &lt;/P&gt;&lt;P&gt;&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;&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;Note&lt;/P&gt;&lt;P&gt;Runtime errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM_OVERFLOW : Overflow when calculating totals with SUM . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1&lt;/P&gt;&lt;P&gt;AT NEW f. &lt;/P&gt;&lt;P&gt;Variant 2&lt;/P&gt;&lt;P&gt;AT END OF f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;f is a sub-field of an internal table processed with LOOP . The sequence of statements which follow it is executed if the sub-field f or a sub-field in the current LOOP line defined (on the left) before f has a differnt value than in the preceding ( AT NEW ) or subsequent ( AT END OF ) table line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF COMPANIES OCCURS 20,&lt;/P&gt;&lt;P&gt;        NAME(30),&lt;/P&gt;&lt;P&gt;        PRODUCT(20),&lt;/P&gt;&lt;P&gt;        SALES TYPE I,&lt;/P&gt;&lt;P&gt;      END   OF COMPANIES.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;LOOP AT COMPANIES.&lt;/P&gt;&lt;P&gt;  AT NEW NAME.&lt;/P&gt;&lt;P&gt;    NEW-PAGE.&lt;/P&gt;&lt;P&gt;    WRITE / COMPANIES-NAME.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;  WRITE: / COMPANIES-PRODUCT, COMPANIES-SALES.&lt;/P&gt;&lt;P&gt;  AT END OF NAME.&lt;/P&gt;&lt;P&gt;    SUM.&lt;/P&gt;&lt;P&gt;    WRITE: / COMPANIES-NAME, COMPANIES-SALES.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AT statements refer to the field COMPANIES-NAME . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;If a control break criterion is not known until runtime, you can use AT NEW (name) or AT END OF (name) to specify it dynamically as the contents of the field name . If name is blank at runtime, the control break criterion is ignored and the sequence of statements is not executed. If name contains an invalid component name, a runtime error occurs. &lt;/P&gt;&lt;P&gt;By defining an offset and/or length, you can further restrict control break criteria - regardless of whether they are specified statically or dynamically. &lt;/P&gt;&lt;P&gt;A field symbol pointing to the LOOP output area can also be used as a dynamic control break criterion. If the field symbol does not point to the LOOP output area, a runtime error occurs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;Runtime errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT_BAD_PARTIAL_FIELD_ACCESS : Invalid sub-field access when dynamically specifying the control break criterion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT_ITAB_FIELD_INVALID : When dynamically specifying the control break criterion via a field symbol, the field symbol does not point to the LOOP output area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB_ILLEGAL_COMPONENT : When dynamically specifying the control break criterion via (name) the field name does not contain a valid sub-field name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3&lt;/P&gt;&lt;P&gt;AT FIRST. &lt;/P&gt;&lt;P&gt;Variant 4&lt;/P&gt;&lt;P&gt;AT LAST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Executes the appropriate sequence of statements once during the first ( AT FIRST ) or last ( AT LAST ) loop pass. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF COMPANIES OCCURS 20,&lt;/P&gt;&lt;P&gt;        NAME(30),&lt;/P&gt;&lt;P&gt;        PRODUCT(20),&lt;/P&gt;&lt;P&gt;        SALES TYPE I,&lt;/P&gt;&lt;P&gt;      END   OF COMPANIES.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;LOOP AT COMPANIES.&lt;/P&gt;&lt;P&gt;  AT FIRST.&lt;/P&gt;&lt;P&gt;    SUM.&lt;/P&gt;&lt;P&gt;    WRITE:    'Sum of all SALES:',&lt;/P&gt;&lt;P&gt;           55 COMPANIES-SALES.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;  WRITE: / COMPANIES-NAME, COMPANIES-PRODUCT,&lt;/P&gt;&lt;P&gt;        55 COMPANIES-SALES.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/at_itab.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/at_itab.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 10:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910699#M379114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T10:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: control brek statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910700#M379115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 10:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910700#M379115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T10:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: control brek statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910701#M379116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   go through the link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/at_itab.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/at_itab.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 10:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910701#M379116</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-02-16T10:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: control brek statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910702#M379117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is from SAP, or refer the link &lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. AT NEW f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. AT END OF f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. AT FIRST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. AT LAST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. AT fg. &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 is executed whenever 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 processing 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 end of a control group ( AT END OF, AT LAST), there are two types of control level information between AT and ENDAT: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the sort key of the extract dataset contains a non-numeric field h (particularly in the field group HEADER), the field CNT(h) contains the number of control breaks in the (subordinate) control level h. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For extracted number fields g (see also ABAP Number Types), the fields SUM(g) contain the relevant control totals. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;The fields CNT(h) and SUM(g) can only be addressed after they have been sorted. Otherwise, a runtime error may occur. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields CNT(h) and SUM(g) are filled with the relevant values for a control level at the end of each control group ( AT END OF, AT LAST), not at the beginning (AT FIRST, AT NEW). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When calculating totals with SUM(g), the system automatically chooses the maximum field sizes so that an overflow occurs only if the absolute value area limits are exceeded. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use special control break control structures with LOOPs on internal tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1 &lt;/P&gt;&lt;P&gt;AT NEW f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2 &lt;/P&gt;&lt;P&gt;AT END OF f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;f is a field from the field group HEADER. The enclosed sequence of statements is executed if the field f occurs in the sort key of the extract dataset (and thus also in the field group HEADER) and the field f or a superior sort criterion has a different value in the current LOOP line than in the preceding (AT NEW) or subsequent (AT END OF) record of the extract dataset. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If f is not an assigned field symbol, the control break criterion is ignored, and the subsequent sequence of statements is not executed. If a field symbol is assigned, but does not point to the HEADER field group, the system triggers a runtime error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: NAME(30), &lt;/P&gt;&lt;P&gt;      SALES TYPE I. &lt;/P&gt;&lt;P&gt;FIELD-GROUPS: HEADER, INFOS. &lt;/P&gt;&lt;P&gt;INSERT: NAME  INTO HEADER, &lt;/P&gt;&lt;P&gt;        SALES INTO INFOS. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;LOOP. &lt;/P&gt;&lt;P&gt;  AT NEW NAME. &lt;/P&gt;&lt;P&gt;    NEW-PAGE. &lt;/P&gt;&lt;P&gt;  ENDAT. &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;  AT END OF NAME. &lt;/P&gt;&lt;P&gt;    WRITE: / NAME, SUM(SALES). &lt;/P&gt;&lt;P&gt;  ENDAT. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;If the extract dataset is not sorted before processing with LOOP, no control level structure is defined and the statements following AT NEW or AT END OF are not executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields which stand at hex zero are ignored by the control break check with AT NEW or AT END OF. This corresponds to the behavior of the SORT statement, which always places unoccupied fields (i.e. fields which stand at hex zero) before all occupied fields when sorting extract datasets, regardless of whether the sort sequence is in ascending or descending order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3 &lt;/P&gt;&lt;P&gt;AT FIRST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 4 &lt;/P&gt;&lt;P&gt;AT LAST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Executes the relevant series of statements just once - either on the first loop pass (with AT FIRST) or on the last loop pass (with AT LAST). &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Variant 5 &lt;/P&gt;&lt;P&gt;AT fg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... WITH fg1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statement makes single record processing dependent on the type of extracted record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sequence of statements following AT fg are executed whenever the current LOOP record is created with EXTRACT fg (in other words: when the current record is a fg record). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition &lt;/P&gt;&lt;P&gt;... WITH fg1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Executes the sequence of statements belonging to AT fg WITH fg1 only if the record of the field group fg in the dataset is immediately followed by a record of the field group fg1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Venkat Ramanan Natarajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 10:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910702#M379117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T10:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: control brek statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910703#M379118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at below link and go to page 300 - Control level processing. It will surely help you to undersatnd the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 10:08:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910703#M379118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T10:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: control brek statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910704#M379119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi samara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;okie for undersatnding purpose consider ur internal table of 3 fields&lt;/P&gt;&lt;P&gt;a b c&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;1 2 2&lt;/P&gt;&lt;P&gt;1 2 2&lt;/P&gt;&lt;P&gt;1 2 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;at first&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;gets triggered for the first itegration of the loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;At new &amp;lt;i&amp;gt;c&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;first new val of 2 seen and this is triggered. in the second line item the same value and no trigger of this stmt and in third a new value seen and hence a trigger seen&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;at last&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;executes at the end of the loop only&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;At end of &amp;lt;i&amp;gt;c&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;works in similar fashion like atnew. but here it happends only the the end of the identical record (sorted)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 10:09:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910704#M379119</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2007-02-16T10:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: control brek statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910705#M379120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT zex36 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF it OCCURS 4,&lt;/P&gt;&lt;P&gt;            f1,&lt;/P&gt;&lt;P&gt;            f2,&lt;/P&gt;&lt;P&gt;            END OF it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it = '1A'. APPEND it.&lt;/P&gt;&lt;P&gt;it = '3A'. APPEND it.&lt;/P&gt;&lt;P&gt;it = '1B'. APPEND it.&lt;/P&gt;&lt;P&gt;it = '2B'. APPEND it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT it BY f1.&lt;/P&gt;&lt;P&gt;LOOP AT it.&lt;/P&gt;&lt;P&gt;  AT FIRST.&lt;/P&gt;&lt;P&gt;    WRITE: / 'AT FIRST IS TRIGGERED NOW'.&lt;/P&gt;&lt;P&gt;    ULINE.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;  AT NEW f1.&lt;/P&gt;&lt;P&gt;    WRITE: / 'start of:', it-f1.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;  WRITE: /4 it-f1.&lt;/P&gt;&lt;P&gt;  AT END OF f1.&lt;/P&gt;&lt;P&gt;    WRITE: / 'end   of:', it-f1.&lt;/P&gt;&lt;P&gt;    WRITE : /.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AT LAST.&lt;/P&gt;&lt;P&gt;    ULINE.&lt;/P&gt;&lt;P&gt;    WRITE : / 'AT LAST IS TRIGGERED NOW'.&lt;/P&gt;&lt;P&gt;    ULINE.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;FREE it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 10:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-brek-statements/m-p/1910705#M379120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T10:14:41Z</dc:date>
    </item>
  </channel>
</rss>

