<?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 Break statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610809#M598847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to use atnew, at last,sum events pl send me with coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2007 12:40:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-02T12:40:15Z</dc:date>
    <item>
      <title>Control Break statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610809#M598847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to use atnew, at last,sum events pl send me with coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610809#M598847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610810#M598848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;All this AT NEW, AT FIRST, AT END OF and AT LAST are called control break statements of Internal tables and are used to calculate the TOTALS based on sertain key fields in that internal table&lt;/P&gt;&lt;P&gt;FIrst to use these statements the ITAB has to be sorted by the key fields on whcih you need the SUM of the fields.&lt;/P&gt;&lt;P&gt;Some time you will get * when mopving data from this int table to other table using these commands&lt;/P&gt;&lt;P&gt;so you have to use&lt;/P&gt;&lt;P&gt;READ TABLE ITAB INDEX SY-TABIX in AT..ENDAT..if you are using other fields between them&lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:41:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610810#M598848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610811#M598849</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;&lt;/P&gt;&lt;P&gt;at first - endat&lt;/P&gt;&lt;P&gt;  		Processed at the beginning of the table .&lt;/P&gt;&lt;P&gt;		Executes the relevant series of statements just once &lt;/P&gt;&lt;P&gt;at new f - endat&lt;/P&gt;&lt;P&gt;              Processed when f changes or one of the preceding fields has just changed.&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;at end of f &amp;#150; endat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at last - endat &lt;/P&gt;&lt;P&gt;		Processed at the end of the table &lt;/P&gt;&lt;P&gt;		Executes the relevant series of statements just once &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SUM.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;You can only use this statement within a LOOP. If you use SUM in an AT - ENDAT block, the system calculates totals for the numeric fields of all lines in the current line group and writes them to the corresponding fields in the work area (see example in ). If you use the SUM statement outside an AT - ENDAT block (single entry processing), the system calculates totals for the numeric fields of all lines of the internal table in each loop pass and writes them to the corresponding fields of the work area. It therefore only makes sense to use the SUM statement in AT...ENDAT blocks. &lt;/P&gt;&lt;P&gt;If the table contains a nested table, you cannot use the SUM statement. Neither can you use it if you are using a field symbol instead of a work area in the LOOP statement.&lt;/P&gt;&lt;P&gt;EG : &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF T OCCURS 100, &lt;/P&gt;&lt;P&gt;CODE(4), &lt;/P&gt;&lt;P&gt;SALES TYPE P, &lt;/P&gt;&lt;P&gt;DISCOUNT TYPE P, &lt;/P&gt;&lt;P&gt;END OF T. &lt;/P&gt;&lt;P&gt;LOOP AT T. &lt;/P&gt;&lt;P&gt;AT FIRST.&lt;/P&gt;&lt;P&gt;SUM. &lt;/P&gt;&lt;P&gt;WRITE: /4 'Grand Total:', &lt;/P&gt;&lt;P&gt;20 T-SALES, 40 T-DISCOUNT. &lt;/P&gt;&lt;P&gt;ULINE. SKIP. &lt;/P&gt;&lt;P&gt;ENDAT.  WRITE: / T-CODE, &lt;/P&gt;&lt;P&gt;20 T-SALES, 40 T-DISCOUNT.&lt;/P&gt;&lt;P&gt;AT END OF CODE. &lt;/P&gt;&lt;P&gt;SUM. &lt;/P&gt;&lt;P&gt;WRITE: / T-CODE, 10 'Total:', &lt;/P&gt;&lt;P&gt;20 T-SALES, 40 T-DISCOUNT.&lt;/P&gt;&lt;P&gt;SKIP. ENDAT. ENDLOOP.&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;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610811#M598849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610812#M598850</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;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;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;&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;&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;&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;/P&gt;&lt;P&gt;Example program which uses all Control statements : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT Zcontrol_DEMO.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: T1(4), T2 TYPE I.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FIELD-GROUPS: HEADER.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;INSERT T2 T1 INTO HEADER.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;T1 ='AABB'. T2 = 1. EXTRACT HEADER.&lt;/P&gt;&lt;P&gt;T1 ='BBCC'. T2 = 2. EXTRACT HEADER.&lt;/P&gt;&lt;P&gt;T1 ='AAAA'. T2 = 2. EXTRACT HEADER.&lt;/P&gt;&lt;P&gt;T1 ='AABB'. T2 = 1. EXTRACT HEADER.&lt;/P&gt;&lt;P&gt;T1 ='BBBB'. T2 = 2. EXTRACT HEADER.&lt;/P&gt;&lt;P&gt;T1 ='BBCC'. T2 = 2. EXTRACT HEADER.&lt;/P&gt;&lt;P&gt;T1 ='AAAA'. T2 = 1. EXTRACT HEADER.&lt;/P&gt;&lt;P&gt;T1 ='BBBB'. T2 = 1. EXTRACT HEADER.&lt;/P&gt;&lt;P&gt;T1 ='AAAA'. T2 = 3. EXTRACT HEADER.&lt;/P&gt;&lt;P&gt;T1 ='AABB'. T2 = 1. EXTRACT HEADER.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SORT BY T1 T2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  AT FIRST.&lt;/P&gt;&lt;P&gt;    WRITE 'Start of LOOP'.&lt;/P&gt;&lt;P&gt;    ULINE.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  AT NEW T1.&lt;/P&gt;&lt;P&gt;    WRITE / '   New T1:'.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  AT NEW T2.&lt;/P&gt;&lt;P&gt;    WRITE / '   New T2:'.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  WRITE: /14 T1, T2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  AT END OF T2.&lt;/P&gt;&lt;P&gt;    WRITE / 'End of T2'.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  AT END OF T1.&lt;/P&gt;&lt;P&gt;    WRITE / 'End of T1'.&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;  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;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610812#M598850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610813#M598851</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;&lt;/P&gt;&lt;P&gt;The field position is important for the fields that are using in the control break statements..Also SORT internal table is required.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: BEGIN OF ITAB OCCURS 0,
MATNR TYPE MATNR,
WERKS TYPE WERKS_D,
VALUE TYPE NETPR,
END OF ITAB.
 
ITAB-MATNR = 'ABC'.
ITAB-WERKS = '0100'.
ITAB-VALUE = '10.00'.
APPEND ITAB.
 
ITAB-MATNR = '1ABC'.
ITAB-WERKS = '0100'.
ITAB-VALUE = '10.00'.
APPEND ITAB.
 
SORT ITAB BY MATNR WERKS.
 
LOOP AT ITAB.
 
 AT FIRST.
  WRITE : 'AT FIRST'.
 ENDAT.
 
 AT NEW MATNR.
  WRITE : 'AT NEW MATERIAL NUMBER'.
 ENDAT.
 
 AT END OF MATNR.
  SUM.
  WRITE: / ITAB-MATNR, 'MATERIAL TOTAL - ', ITAB-VALUE.
 ENDAT.
 
 AT END OF WERKS.
  SUM.
  WRITE: / ITAB-WERKS, 'PLANT TOTAL - ', ITAB-VALUE.
 ENDAT.
 
 AT LAST.
  WRITE : 'AT LAST'.
 ENDAT.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&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;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Variants&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&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;&amp;lt;b&amp;gt;Effect&amp;lt;/b&amp;gt;&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;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Notes&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&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;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Note&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;Runtime errors &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;&amp;lt;b&amp;gt;Effect&amp;lt;/b&amp;gt;&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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF COMPANIES OCCURS 20,
        NAME(30),
        PRODUCT(20),
        SALES TYPE I,
      END   OF COMPANIES.
...
LOOP AT COMPANIES.
  AT NEW NAME.
    NEW-PAGE.
    WRITE / COMPANIES-NAME.
  ENDAT.
  WRITE: / COMPANIES-PRODUCT, COMPANIES-SALES.
  AT END OF NAME.
    SUM.
    WRITE: / COMPANIES-NAME, COMPANIES-SALES.
  ENDAT.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&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;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Notes&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&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;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;Note&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&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;&amp;lt;b&amp;gt;Effect&amp;lt;/b&amp;gt;&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Example&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF COMPANIES OCCURS 20,
        NAME(30),
        PRODUCT(20),
        SALES TYPE I,
      END   OF COMPANIES.
...
LOOP AT COMPANIES.
  AT FIRST.
    SUM.
    WRITE:    'Sum of all SALES:',
           55 COMPANIES-SALES.
  ENDAT.
  WRITE: / COMPANIES-NAME, COMPANIES-PRODUCT,
        55 COMPANIES-SALES.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Example program which uses all Control statements :&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT Zcontrol_DEMO.
 
DATA: T1(4), T2 TYPE I.
 
FIELD-GROUPS: HEADER.
 
INSERT T2 T1 INTO HEADER.
 
T1 ='AABB'. T2 = 1. EXTRACT HEADER.
T1 ='BBCC'. T2 = 2. EXTRACT HEADER.
T1 ='AAAA'. T2 = 2. EXTRACT HEADER.
T1 ='AABB'. T2 = 1. EXTRACT HEADER.
T1 ='BBBB'. T2 = 2. EXTRACT HEADER.
T1 ='BBCC'. T2 = 2. EXTRACT HEADER.
T1 ='AAAA'. T2 = 1. EXTRACT HEADER.
T1 ='BBBB'. T2 = 1. EXTRACT HEADER.
T1 ='AAAA'. T2 = 3. EXTRACT HEADER.
T1 ='AABB'. T2 = 1. EXTRACT HEADER.
 
SORT BY T1 T2.
 
LOOP.
 
  AT FIRST.
    WRITE 'Start of LOOP'.
    ULINE.
  ENDAT.
 
  AT NEW T1.
    WRITE / '   New T1:'.
  ENDAT.
 
  AT NEW T2.
    WRITE / '   New T2:'.
  ENDAT.
 
  WRITE: /14 T1, T2.
 
  AT END OF T2.
    WRITE / 'End of T2'.
  ENDAT.
 
  AT END OF T1.
    WRITE / 'End of T1'.
  ENDAT.
 
  AT LAST.
    ULINE.
  ENDAT.
 
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\&lt;/P&gt;&lt;P&gt;Check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas620/helpdata/en/87/56d00722c011d2954a0000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas620/helpdata/en/87/56d00722c011d2954a0000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/important-abap-faq.htm" target="test_blank"&gt;http://www.sap-img.com/abap/important-abap-faq.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/abap/sap-abap-faq.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/abap/sap-abap-faq.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610813#M598851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610814#M598852</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;Data : begin of imat occurs 10,&lt;/P&gt;&lt;P&gt;             matnr type mard-matnr,&lt;/P&gt;&lt;P&gt;             werks type mard-werks,&lt;/P&gt;&lt;P&gt;             lgort type mard-lgort,&lt;/P&gt;&lt;P&gt;             labst type mard-labst,&lt;/P&gt;&lt;P&gt;         end of imat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_werks type mard-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr werks lgort labst&lt;/P&gt;&lt;P&gt;      from mard &lt;/P&gt;&lt;P&gt;      into table imat&lt;/P&gt;&lt;P&gt;      where werks = p_werks.&lt;/P&gt;&lt;P&gt;              &lt;/P&gt;&lt;P&gt;LOOP AT IMAT .&lt;/P&gt;&lt;P&gt;  at first.&lt;/P&gt;&lt;P&gt;     write:/ 'Matno', 'Plant', 'Storgae loc', 'Valuated stock'.&lt;/P&gt;&lt;P&gt;  endat.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;        at new matnr.&lt;/P&gt;&lt;P&gt;            write:/ imat-matnr.&lt;/P&gt;&lt;P&gt;        endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            write:/20 imat-werks,&lt;/P&gt;&lt;P&gt;                    30 imat-lgort,&lt;/P&gt;&lt;P&gt;                    40 imat-labst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        at end of matnr.&lt;/P&gt;&lt;P&gt;          SUM.&lt;/P&gt;&lt;P&gt;          write:/ 'Total stock of' , imat-matnr ,'=',  imat-labst.&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;&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;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610814#M598852</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-02T12:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610815#M598853</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;see this report&lt;/P&gt;&lt;P&gt;REPORT  ZINTERACTIVE_FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE &amp;lt;COLOR&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:SFLIGHT,SPFLI,SBOOK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF STRUCTURE,&lt;/P&gt;&lt;P&gt;         CITYFROM LIKE SPFLI-CITYFROM,&lt;/P&gt;&lt;P&gt;         CITYTO LIKE SPFLI-CITYTO,&lt;/P&gt;&lt;P&gt;         CARRID LIKE SPFLI-CARRID ,&lt;/P&gt;&lt;P&gt;         CONNID LIKE SPFLI-CONNID,&lt;/P&gt;&lt;P&gt;         FLDATE LIKE SFLIGHT-FLDATE,&lt;/P&gt;&lt;P&gt;         SEATSMAX LIKE SFLIGHT-SEATSMAX,&lt;/P&gt;&lt;P&gt;         SEATSOCC LIKE SFLIGHT-SEATSOCC,&lt;/P&gt;&lt;P&gt;END OF STRUCTURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ITAB TYPE STRUCTURE OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: WA TYPE STRUCTURE.&lt;/P&gt;&lt;P&gt;DATA:LINE LIKE SY-LILLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SPFLI&lt;SUB&gt;CITYFROM SPFLI&lt;/SUB&gt;CITYTO SPFLI&lt;SUB&gt;CARRID SPFLI&lt;/SUB&gt;CONNID&lt;/P&gt;&lt;P&gt;SFLIGHT&lt;SUB&gt;FLDATE SFLIGHT&lt;/SUB&gt;SEATSMAX SFLIGHT~SEATSOCC INTO (WA-CITYFROM,&lt;/P&gt;&lt;P&gt;WA-CITYTO,WA-CARRID,WA-CONNID,WA-FLDATE,WA-SEATSMAX,WA-SEATSOCC) FROM&lt;/P&gt;&lt;P&gt;SPFLI INNER JOIN SFLIGHT ON SPFLI&lt;SUB&gt;MANDT = SFLIGHT&lt;/SUB&gt;MANDT AND SPFLI~CARRID&lt;/P&gt;&lt;P&gt; = SFLIGHT&lt;SUB&gt;CARRID AND SPFLI&lt;/SUB&gt;CONNID = SFLIGHT~CONNID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*GET SPFLI.&lt;/P&gt;&lt;P&gt;*SELECT * FROM SPFLI.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MOVE-CORRESPONDING SPFLI TO WA.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*ENDSELECT.&lt;/P&gt;&lt;P&gt;*GET SFLIGHT.&lt;/P&gt;&lt;P&gt;*SELECT * FROM SFLIGHT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MOVE-CORRESPONDING SFLIGHT TO WA.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND WA TO ITAB.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'GRUND'.&lt;/P&gt;&lt;P&gt;SET TITLEBAR 'GRU' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB BY CITYFROM CITYTO CARRID CONNID SEATSOCC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOOP AT ITAB INTO WA.&lt;/P&gt;&lt;P&gt;*WRITE:/ WA-CARRID,WA-CONNID,WA-CITYFROM,WA-CITYTO.&lt;/P&gt;&lt;P&gt;*ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    AT FIRST.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;       WRITE:/ 'START OUTPUT INTERNAL TABLE'.&lt;/P&gt;&lt;P&gt;       ULINE.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT NEW CITYFROM.&lt;/P&gt;&lt;P&gt;       WRITE:/ WA-CITYFROM COLOR COL_KEY.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;    AT NEW SEATSOCC.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;       WRITE:/10 WA-CARRID,WA-CONNID,WA-FLDATE COLOR COL_NORMAL,&lt;/P&gt;&lt;P&gt;       WA-SEATSOCC COLOR COL_NORMAL,WA-SEATSMAX COLOR COL_NORMAL.&lt;/P&gt;&lt;P&gt;       HIDE : WA-CONNID, WA-CARRID, WA-FLDATE.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT END OF CONNID.&lt;/P&gt;&lt;P&gt;       SUM.&lt;/P&gt;&lt;P&gt;       WRITE:/ WA-SEATSOCC COLOR COL_TOTAL UNDER WA-SEATSOCC,&lt;/P&gt;&lt;P&gt;       WA-SEATSMAX COLOR COL_TOTAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ULINE .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;  AT END OF CARRID.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;       SUM.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ULINE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       WRITE:/ WA-SEATSOCC COLOR COL_TOTAL INTENSIFIED UNDER&lt;/P&gt;&lt;P&gt;       WA-SEATSOCC, WA-SEATSMAX COLOR COL_TOTAL INTENSIFIED.&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;&lt;/P&gt;&lt;P&gt;CLEAR WA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;  CASE SY-LSIND.&lt;/P&gt;&lt;P&gt;  WHEN 1.&lt;/P&gt;&lt;P&gt;    WRITE:/' AIRLINE ', WA-CARRID ,&lt;/P&gt;&lt;P&gt;          /'FLIGHT CONNECTION',WA-CONNID ,&lt;/P&gt;&lt;P&gt;          /'FLIGHT DATE',WA-FLDATE.&lt;/P&gt;&lt;P&gt;    ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * FROM SBOOK WHERE CARRID = WA-CARRID AND CONNID = WA-CONNID&lt;/P&gt;&lt;P&gt;    AND FLDATE = WA-FLDATE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; SBOOK-BOOKID,SBOOK-CUSTOMID,SBOOK-ORDER_DATE.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR WA.&lt;/P&gt;&lt;P&gt;  WHEN 2.&lt;/P&gt;&lt;P&gt;    LINE = SY-LILLI.&lt;/P&gt;&lt;P&gt;    IF LINE &amp;gt; 4.&lt;/P&gt;&lt;P&gt;    LINE = LINE - 4.&lt;/P&gt;&lt;P&gt;    WRITE:/ 'SELECTED LINE NUMBE:',LINE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610815#M598853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610816#M598854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this sample code for using cntrl-brk ststements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  YSG_MATSTKREPT&lt;/P&gt;&lt;P&gt;*&amp;amp;material stock report&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YSG_MATSTKREPT LINE-SIZE 125.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                         LINE-COUNT 50(5).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                       DATA DECLARATION                              *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MARA,              "GENERAL MASTER DATA&lt;/P&gt;&lt;P&gt;        MARC,              "PLANT DATA FOR MATERIAL&lt;/P&gt;&lt;P&gt;        MARD,              "STORAGE LOCATION DATA FOR MATERIAL&lt;/P&gt;&lt;P&gt;        MAKT.              "MATERIAL DESCRIPTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_MARA OCCURS 0,&lt;/P&gt;&lt;P&gt;           MATNR LIKE MARA-MATNR,"MATERIAL NUMBER&lt;/P&gt;&lt;P&gt;      END OF I_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_MARC OCCURS 0,&lt;/P&gt;&lt;P&gt;          MATNR LIKE MARC-MATNR,"MATERIAL NUMBER&lt;/P&gt;&lt;P&gt;          WERKS LIKE MARC-WERKS,"PLANT&lt;/P&gt;&lt;P&gt;      END OF I_MARC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_MAKT OCCURS 0,&lt;/P&gt;&lt;P&gt;           MATNR LIKE MAKT-MATNR,"MATERIAL NUMBER&lt;/P&gt;&lt;P&gt;           MAKTX LIKE MAKT-MAKTX,"MATERIAL DESCRIPTION&lt;/P&gt;&lt;P&gt;      END OF I_MAKT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_MARD OCCURS 0,&lt;/P&gt;&lt;P&gt;           MATNR LIKE MARD-MATNR,"MATERIAL NUMBER&lt;/P&gt;&lt;P&gt;           WERKS LIKE MARD-WERKS,"PLANT&lt;/P&gt;&lt;P&gt;           LGORT LIKE MARD-LGORT,"STORAGE LOCATION&lt;/P&gt;&lt;P&gt;           LABST LIKE MARD-LABST,"VALUATED STOCK WITH UNRESTRICTED USE&lt;/P&gt;&lt;P&gt;      END OF I_MARD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_OUT OCCURS 0,&lt;/P&gt;&lt;P&gt;        MATNR LIKE MARC-MATNR,&lt;/P&gt;&lt;P&gt;        WERKS LIKE MARC-WERKS,&lt;/P&gt;&lt;P&gt;        MAKTX LIKE MAKT-MAKTX,&lt;/P&gt;&lt;P&gt;        LGORT LIKE MARD-LGORT,&lt;/P&gt;&lt;P&gt;        LABST LIKE MARD-LABST,&lt;/P&gt;&lt;P&gt;      END OF I_OUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : TOT TYPE I, " TOT - TOTAL STOCK&lt;/P&gt;&lt;P&gt;       PLSTK TYPE I, " PLSTK - PLZNT WISE STOCK&lt;/P&gt;&lt;P&gt;       X TYPE C. "FLAG&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                   S E L E C T I O N - S C R E E N                   *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-100.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_MATNR FOR MARA-MATNR .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&amp;amp;                  I N I T I A L I Z A T I O N                      *&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*INITIALIZATION.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt; S_MATNR-SIGN = 'I'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt; S_MATNR-OPTION = 'EQ'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; S_MATNR-LOW = 'M-12'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; S_MATNR-HIGH = 'M-18'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;             S T A R T - O F - S E L E C T I O N                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT MATNR WERKS FROM MARC&lt;/P&gt;&lt;P&gt;                      INTO TABLE I_MARC&lt;/P&gt;&lt;P&gt;                      WHERE MATNR IN S_MATNR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT MATNR WERKS LGORT LABST FROM MARD&lt;/P&gt;&lt;P&gt;                      INTO TABLE  I_MARD&lt;/P&gt;&lt;P&gt;                      FOR ALL ENTRIES IN I_MARC&lt;/P&gt;&lt;P&gt;                      WHERE MATNR = I_MARC-MATNR&lt;/P&gt;&lt;P&gt;                      AND WERKS = I_MARC-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT MATNR MAKTX FROM MAKT INTO TABLE I_MAKT&lt;/P&gt;&lt;P&gt;                      FOR ALL ENTRIES IN I_MARC&lt;/P&gt;&lt;P&gt;                      WHERE MATNR = I_MARC-MATNR.&lt;/P&gt;&lt;P&gt;  LOOP AT I_MARC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE I_MARC-MATNR TO I_OUT-MATNR.&lt;/P&gt;&lt;P&gt;    MOVE I_MARC-WERKS TO I_OUT-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE I_MAKT WITH KEY MATNR = I_MARD-MATNR.&lt;/P&gt;&lt;P&gt;    MOVE I_MAKT-MAKTX TO I_OUT-MAKTX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT I_MARD WHERE MATNR = I_MARC-MATNR&lt;/P&gt;&lt;P&gt;                     AND WERKS = I_MARC-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MOVE I_MARD-LGORT TO I_OUT-LGORT.&lt;/P&gt;&lt;P&gt;      MOVE I_MARD-LABST TO I_OUT-LABST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND I_OUT.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR I_OUT.&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;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                  T O P - O F - P A G E                              *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE:/ 'DATE:' ,SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FORMAT COLOR 4 INTENSIFIED OFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE:/2 'PLANT',&lt;/P&gt;&lt;P&gt;         9 'STG.LOC',&lt;/P&gt;&lt;P&gt;        20 'MATERIAL.NO.',&lt;/P&gt;&lt;P&gt;        55 'DESCRIPTION',&lt;/P&gt;&lt;P&gt;        88 'STOCK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                  E N D - O F - P A G E                              *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-PAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: / SY-ULINE,&lt;/P&gt;&lt;P&gt;         /100 'PAGNO: ',SY-PAGNO,&lt;/P&gt;&lt;P&gt;         SY-ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;        E N D -- O F --  S E L E C T I O N                           *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT I_OUT ASCENDING BY WERKS LGORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT I_OUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE:/    SY-ULINE,SY-VLINE,&lt;/P&gt;&lt;P&gt;               I_OUT-WERKS,SY-VLINE,&lt;/P&gt;&lt;P&gt;               I_OUT-LGORT,SY-VLINE,&lt;/P&gt;&lt;P&gt;               I_OUT-MATNR,SY-VLINE,&lt;/P&gt;&lt;P&gt;               I_OUT-MAKTX,SY-VLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               AT END OF LABST.&lt;/P&gt;&lt;P&gt;               WRITE: I_OUT-LABST,SY-VLINE.&lt;/P&gt;&lt;P&gt;               ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TOT = TOT + I_OUT-LABST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT END OF LABST.&lt;/P&gt;&lt;P&gt;    WRITE : TOT, SY-VLINE.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*AT END OF WERKS.&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 LAST.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR 7 INTENSIFIED OFF.&lt;/P&gt;&lt;P&gt;    WRITE : /87 'TOTAL STOCK = ',TOT.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&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;regards,&lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*&lt;STRONG&gt;reward for useful answers&lt;/STRONG&gt;*&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement/m-p/2610816#M598854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:52:30Z</dc:date>
    </item>
  </channel>
</rss>

