<?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 statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121362#M741251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sheeba,&lt;/P&gt;&lt;P&gt;This i already read it but this SUM statement is not working as per above F1 what ur sayng  in below program can u please see it once?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF companies_type,&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;        SALES1 TYPE I,&lt;/P&gt;&lt;P&gt;      END   OF companies_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: companies TYPE STANDARD TABLE OF companies_type WITH&lt;/P&gt;&lt;P&gt;                     NON-UNIQUE DEFAULT KEY INITIAL SIZE 20,&lt;/P&gt;&lt;P&gt;      wa_companies TYPE companies_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_companies-name = 'XYZ'.&lt;/P&gt;&lt;P&gt;wa_companies-product = 'SAP'.&lt;/P&gt;&lt;P&gt;wa_companies-sales = '1'.&lt;/P&gt;&lt;P&gt;wa_companies-sales1 = '1'.&lt;/P&gt;&lt;P&gt;APPEND wa_companies TO companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_companies-name = 'ABC'.&lt;/P&gt;&lt;P&gt;wa_companies-product = 'ABAP'.&lt;/P&gt;&lt;P&gt;wa_companies-sales = '4'.&lt;/P&gt;&lt;P&gt;wa_companies-sales1 = '4'.&lt;/P&gt;&lt;P&gt;APPEND wa_companies TO companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_companies-name = 'PQR'.&lt;/P&gt;&lt;P&gt;wa_companies-product = 'HR'.&lt;/P&gt;&lt;P&gt;wa_companies-sales = '3'.&lt;/P&gt;&lt;P&gt;wa_companies-sales1 = '3'.&lt;/P&gt;&lt;P&gt;APPEND wa_companies TO companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT companies INTO wa_companies.&lt;/P&gt;&lt;P&gt;  AT NEW name.&lt;/P&gt;&lt;P&gt;  sum.&lt;/P&gt;&lt;P&gt;    NEW-PAGE.&lt;/P&gt;&lt;P&gt;    WRITE / wa_companies-name.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;  WRITE: / wa_companies-product, wa_companies-sales,wa_companies-sales1.&lt;/P&gt;&lt;P&gt;  AT END OF NAME.&lt;/P&gt;&lt;P&gt;    SUM.&lt;/P&gt;&lt;P&gt;    WRITE: / wa_companies-name, wa_companies-sales,wa_companies-sales1 .&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>Mon, 03 Dec 2007 05:15:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-03T05:15:31Z</dc:date>
    <item>
      <title>control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121359#M741248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&lt;/P&gt;&lt;P&gt;I am new to ABAP.Please can anybody tell me correct difference between AT FIRST,AT LAST,AT NEW F(FIELD),AT THE END OF F(FIELD).&lt;/P&gt;&lt;P&gt;And what is significance of using SUM statement inside the AT AND ENDAT statement.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 05:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121359#M741248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T05:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121360#M741249</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 program you can understand very easily &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Using AT FIRST , AT NEW, AT THE END OF , AT LAST.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;      F1 TYPE I,&lt;/P&gt;&lt;P&gt;      F2(6) TYPE C,&lt;/P&gt;&lt;P&gt;      F3(10) TYPE N,&lt;/P&gt;&lt;P&gt;      F4(16) TYPE P DECIMALS  2,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      END OF ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: SUB_TOT(10) TYPE P DECIMALS 3.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;**--1&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ITAB-F1 = 1.&lt;/P&gt;&lt;P&gt;ITAB-F2 = 'ONE'.&lt;/P&gt;&lt;P&gt;ITAB-F3 = 10.&lt;/P&gt;&lt;P&gt;ITAB-F4 = '1000.00'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;CLEAR ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ITAB-F1 = 1.&lt;/P&gt;&lt;P&gt;ITAB-F2 = 'ONE'.&lt;/P&gt;&lt;P&gt;ITAB-F3 = 20.&lt;/P&gt;&lt;P&gt;ITAB-F4 = '2000.00'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;CLEAR ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ITAB-F1 = 1.&lt;/P&gt;&lt;P&gt;ITAB-F2 = 'ONE'.&lt;/P&gt;&lt;P&gt;ITAB-F3 = 30.&lt;/P&gt;&lt;P&gt;ITAB-F4 = '3000.00'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;CLEAR ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*--2&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ITAB-F1 = 2.&lt;/P&gt;&lt;P&gt;ITAB-F2 = 'TWO'.&lt;/P&gt;&lt;P&gt;ITAB-F3 = 10.&lt;/P&gt;&lt;P&gt;ITAB-F4 = '1000.00'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;CLEAR ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ITAB-F1 = 2.&lt;/P&gt;&lt;P&gt;ITAB-F2 = 'TWO'.&lt;/P&gt;&lt;P&gt;ITAB-F3 = 20.&lt;/P&gt;&lt;P&gt;ITAB-F4 = '2000.00'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;CLEAR ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*-- 3&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ITAB-F1 = 3.&lt;/P&gt;&lt;P&gt;ITAB-F2 = 'THREE'.&lt;/P&gt;&lt;P&gt;ITAB-F3 = 10.&lt;/P&gt;&lt;P&gt;ITAB-F4 = '1000.00'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;CLEAR ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ITAB-F1 = 3.&lt;/P&gt;&lt;P&gt;ITAB-F2 = 'THREE'.&lt;/P&gt;&lt;P&gt;ITAB-F3 = 20.&lt;/P&gt;&lt;P&gt;ITAB-F4 = '2000.00'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;CLEAR ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SORT ITAB BY F1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT FIRST.&lt;/P&gt;&lt;P&gt;WRITE: /35 ' MATERIAL DETAILS:'.&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 F1.&lt;/P&gt;&lt;P&gt;WRITE: / 'DETAILS OF MATERIAL:' COLOR 7  , ITAB-F1.&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;WRITE: / ITAB-F1, ITAB-F2, ITAB-F3, ITAB-F4.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SUB_TOT = SUB_TOT + ITAB-F4.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT END OF F1.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;WRITE: / 'SUB TOTAL :'  COLOR 3 INVERSE ON, SUB_TOT COLOR 3 INVERSE ON.&lt;/P&gt;&lt;P&gt;CLEAR SUB_TOT.&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;SUM.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;WRITE: 'SUM:', ITAB-F4.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 05:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121360#M741249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T05:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121361#M741250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,,plese go thru this HELP.SAP.com details&lt;/P&gt;&lt;P&gt;In a LOOP which processes an internal table, 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 internal tables only if a loop is actively processing an internal table and reference is to the innermost currently active loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The control level structure with internal tables is static. It corresponds exactly to the sequence of columns in the internal table (from left to right). In this context, the criteria according to which you sort the internal table are unimportant. &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All character type 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;&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;&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 numeric fields (see also ABAP 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;&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;&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;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With LOOPs 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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Non-Catchable Exceptions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&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;&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 syntax check performed in an ABAP Objects context is stricter than in other ABAP areas.See Compatible Work Area with Control Level Processing and Field Symbols Not Allowed as Control Level Criterion. &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 fhas a different 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;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF COMPANIES_TYPE, &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_TYPE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: COMPANIES TYPE STANDARD TABLE OF COMPANIES_TYPE WITH &lt;/P&gt;&lt;P&gt;                     NON-UNIQUE DEFAULT KEY INITIAL SIZE 20, &lt;/P&gt;&lt;P&gt;      WA_COMPANIES TYPE COMPANIES_TYPE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT COMPANIES INTO WA_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 / WA_COMPANIES-NAME. &lt;/P&gt;&lt;P&gt;  ENDAT. &lt;/P&gt;&lt;P&gt;  WRITE: / WA_COMPANIES-PRODUCT, WA_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: / WA_COMPANIES-NAME, WA_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;&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;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use AT within a LOOP with an explicitly-specified output area, the area must be compatible with the line type of the internal table so that it can be initialized properly (as described above) at the start of a new control level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can restrict control break criteria further, regardless of whether they were defined statically or dynamically, by specifying offset and/or length. &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;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF COMPANIES_TYPE, &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_TYPE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: COMPANIES TYPE STANDARD TABLE OF COMPANIES_TYPE WITH &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     NON-UNIQUE DEFAULT KEY INITIAL SIZE 20, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WA_COMPANIES TYPE COMPANIES_TYPE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;LOOP AT COMPANIES INTO WA_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 WA_COMPANIES-SALES. &lt;/P&gt;&lt;P&gt;ENDAT. &lt;/P&gt;&lt;P&gt;WRITE: / WA_COMPANIES-NAME, WA_COMPANIES-PRODUCT, &lt;/P&gt;&lt;P&gt;55 WA_COMPANIES-SALES. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;Non-Catchable Exceptions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Invalid sub-field access when dynamically specifying the control break criterion. &lt;/P&gt;&lt;P&gt;Runtime Error: AT_BAD_PARTIAL_FIELD_ACCESS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: When dynamically specifying the control break criterion using a field symbol, the field symbol does not point to the LOOP output area. &lt;/P&gt;&lt;P&gt;Runtime Error: AT_ITAB_FIELD_INVALID &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: When dynamically specifying the control break criterion using (name, the field name does not contain a valid subfield name. &lt;/P&gt;&lt;P&gt;Runtime Error: ITAB_ILLEGAL_COMPONENT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Overflow when totalling with SUM. &lt;/P&gt;&lt;P&gt;Runtime Error: SUM_OVERFLOW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 05:08:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121361#M741250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T05:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121362#M741251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sheeba,&lt;/P&gt;&lt;P&gt;This i already read it but this SUM statement is not working as per above F1 what ur sayng  in below program can u please see it once?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF companies_type,&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;        SALES1 TYPE I,&lt;/P&gt;&lt;P&gt;      END   OF companies_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: companies TYPE STANDARD TABLE OF companies_type WITH&lt;/P&gt;&lt;P&gt;                     NON-UNIQUE DEFAULT KEY INITIAL SIZE 20,&lt;/P&gt;&lt;P&gt;      wa_companies TYPE companies_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_companies-name = 'XYZ'.&lt;/P&gt;&lt;P&gt;wa_companies-product = 'SAP'.&lt;/P&gt;&lt;P&gt;wa_companies-sales = '1'.&lt;/P&gt;&lt;P&gt;wa_companies-sales1 = '1'.&lt;/P&gt;&lt;P&gt;APPEND wa_companies TO companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_companies-name = 'ABC'.&lt;/P&gt;&lt;P&gt;wa_companies-product = 'ABAP'.&lt;/P&gt;&lt;P&gt;wa_companies-sales = '4'.&lt;/P&gt;&lt;P&gt;wa_companies-sales1 = '4'.&lt;/P&gt;&lt;P&gt;APPEND wa_companies TO companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_companies-name = 'PQR'.&lt;/P&gt;&lt;P&gt;wa_companies-product = 'HR'.&lt;/P&gt;&lt;P&gt;wa_companies-sales = '3'.&lt;/P&gt;&lt;P&gt;wa_companies-sales1 = '3'.&lt;/P&gt;&lt;P&gt;APPEND wa_companies TO companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT companies INTO wa_companies.&lt;/P&gt;&lt;P&gt;  AT NEW name.&lt;/P&gt;&lt;P&gt;  sum.&lt;/P&gt;&lt;P&gt;    NEW-PAGE.&lt;/P&gt;&lt;P&gt;    WRITE / wa_companies-name.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;  WRITE: / wa_companies-product, wa_companies-sales,wa_companies-sales1.&lt;/P&gt;&lt;P&gt;  AT END OF NAME.&lt;/P&gt;&lt;P&gt;    SUM.&lt;/P&gt;&lt;P&gt;    WRITE: / wa_companies-name, wa_companies-sales,wa_companies-sales1 .&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>Mon, 03 Dec 2007 05:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121362#M741251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T05:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121363#M741252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;SUM calculates the control totals of all fields of type I, F and P  and places them in the LOOP output area( that is inetrnal table header or explict work area mentioned...)..&lt;/P&gt;&lt;P&gt;So in ur program it will sum the sales fileds at evry new company name..&lt;/P&gt;&lt;P&gt;but u hav only 3 diff company names.. so der s nothing to sum.. it wil output wt ever s der in the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 06:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121363#M741252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T06:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121364#M741253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sheeba,&lt;/P&gt;&lt;P&gt; whatever u told it hold good for AT NEW name but there is another SUM statement is there in AT END OF NAME.&lt;/P&gt;&lt;P&gt;so it shd calculate total of sales and sales1 for every name and it shd display the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Priyalatha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 10:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121364#M741253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T10:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121365#M741254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;"&gt;Control break statements are like events inside the loop. There are 5 control break statements in ABAP. These are used within loop.(Except ON CHANGE OF which can be used outside the loop as well)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;AT FIRST - ENDAT&lt;/LI&gt;&lt;LI&gt;AT NEW - ENDAT&lt;/LI&gt;&lt;LI&gt;AT END OF - ENDAT&lt;/LI&gt;&lt;LI&gt;AT LAST - ENDAT&lt;/LI&gt;&lt;LI&gt;ON CHANGE OF&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;" /&gt;&lt;/P&gt;&lt;H4 style="margin: 1.714285714rem 0; font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;Explanation:&lt;/H4&gt;&lt;P&gt;&lt;BR style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;AT FIRST&lt;/STRONG&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;"&gt; : Will trigger at the first run of the loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;AT LAST&lt;/STRONG&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;"&gt;: Will trigger at the last run of the loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;The below 3 events are normally used when the table is sorted.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="more" style="font-size: 14px; color: #21759b; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;AT END OF&lt;/STRONG&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;"&gt; : &lt;/SPAN&gt;&lt;SPAN style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: white;"&gt;When we use At end for a field, it will trigger whenever there is any change in any of the fields from the left to that of the particular field. The trigger point will be the at the last occurrence&amp;nbsp; of the same value for the field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;AT NEW&lt;/STRONG&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: white;"&gt;When we use At new for a field, it will trigger whenever there is any change in any of the fields from the left to that of the particular field.&lt;/SPAN&gt;&lt;SPAN style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: white;"&gt;The trigger point will be the at the first occurrence of the new value for the field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: white;"&gt;&lt;STRONG&gt;ON CHANGE OF&lt;/STRONG&gt;: On change of it triggers only when there is any change in the particular field. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;"&gt;On change of can be used outside the loop too&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;" /&gt;&lt;/P&gt;&lt;H4 style="margin: 1.714285714rem 0; font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;Example Program:&lt;/H4&gt;&lt;P&gt;&lt;BR style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;"&gt;Here is an example program which gives you the practical understanding of all control break statements.&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin: 0 auto 1.714285714rem; padding: 4px; border-width: 0px 0px 1px; border-bottom-style: solid; border-bottom-color: #ededed; font-size: 0.857142857rem; color: #777777; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff; text-align: center;"&gt;&lt;TBODY style="font-size: 12px;"&gt;&lt;TR style="border: 0px;"&gt;&lt;TD style="padding: 6px 10px 6px 0; border-width: 1px 0px 0px; border-top-style: solid; border-top-color: #ededed;"&gt;&lt;A href="http://images.newtosap.info/control_break_statements.png" style="margin: 0 auto; color: #21759b;"&gt;&lt;IMG alt="Example Program for Control Break Statements " border="0" class="jiveImage" height="400" src="http://images.newtosap.info/control_break_statements.png" style="border: 0px;" title="Example Program for Control Break Statements " width="213" /&gt;&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px;"&gt;&lt;TD class="tr-caption" style="padding: 6px 10px 6px 0; border-width: 1px 0px 0px; border-top-style: solid; border-top-color: #ededed; font-size: 10px;"&gt;Example Program for Control Break Statements&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BLOCKQUOTE class="tr_bq" style="padding: 24px; font-size: 14px; font-style: italic; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif;"&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;: It is important to note that we need a temporary work-area apart from the work-area used in loop for the last 3 control break statements. If we directly use the work-area of the loop, then we will get **** value and not the output we are expecting.&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;" /&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: grey; font-family: 'Courier New', monospace;"&gt;&lt;EM style="font-size: 10px;"&gt;*&amp;amp;---------------------------------------------------------------------*&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: grey; font-family: 'Courier New', monospace;"&gt;&lt;EM style="font-size: 10px;"&gt;*&amp;amp; Report&amp;nbsp; ZAU_CONTROLBREAK&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: grey; font-family: 'Courier New', monospace;"&gt;&lt;EM style="font-size: 10px;"&gt;*&amp;amp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: grey; font-family: 'Courier New', monospace;"&gt;&lt;EM style="font-size: 10px;"&gt;*&amp;amp;---------------------------------------------------------------------*&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: grey; font-family: 'Courier New', monospace;"&gt;&lt;EM style="font-size: 10px;"&gt;*&amp;amp; NEW TO SAP CONTROL BREAK EXAMPLE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: grey; font-family: 'Courier New', monospace;"&gt;&lt;EM style="font-size: 10px;"&gt;&lt;SPAN&gt;*&amp;amp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.newtosap.info"&gt;http://www.newtosap.info&lt;/A&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: grey; font-family: 'Courier New', monospace;"&gt;&lt;EM style="font-size: 10px;"&gt;*&amp;amp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: grey; font-family: 'Courier New', monospace;"&gt;&lt;EM style="font-size: 10px;"&gt;*&amp;amp;---------------------------------------------------------------------*&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US"&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;REPORT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;&amp;nbsp; zau_controlbreak.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;TYPES&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;BEGIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;OF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; ty_marc,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New', monospace;"&gt;&lt;SPAN&gt;matnr &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;TYPE&lt;/SPAN&gt; marc-matnr,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New', monospace;"&gt;&lt;SPAN&gt;werks &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;TYPE&lt;/SPAN&gt; marc-werks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;END&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;OF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; ty_marc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US"&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;: it_marc &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;STANDARD&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;OF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; ty_marc,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New', monospace;"&gt;&lt;SPAN&gt;wa_marc &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;TYPE&lt;/SPAN&gt; ty_marc,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New', monospace;"&gt;&lt;SPAN&gt;wa_temp &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;TYPE&lt;/SPAN&gt; ty_marc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US"&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; matnr werks &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; marc &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; it_marc &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;UP&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: #3399ff;"&gt;10&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ROWS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; matnr &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ge&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: #3399ff;"&gt;40&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;SORT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; it_marc &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;BY&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; matnr.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" color: blue; font-family: 'Courier New', monospace;"&gt;FIELD-SYMBOLS : &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&amp;lt;matnr&amp;gt; type matnr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" color: blue; font-family: 'Courier New', monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: #4da619;"&gt;'FULL TABLE'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;LOOP&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;AT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; it_marc &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; wa_marc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; &lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;wa_temp = wa_marc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;: / sy-tabix , wa_temp-matnr,&amp;nbsp; wa_temp-werks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US"&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: #4da619;"&gt;'AT FIRST AND LAST'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;LOOP&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;AT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; it_marc &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; wa_marc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; &lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;wa_temp = wa_marc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;AT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;FIRST&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: #4da619;"&gt;'First Entry'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&amp;nbsp; wa_temp-matnr,&amp;nbsp; wa_temp-werks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ENDAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;AT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;LAST&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: #4da619;"&gt;'Last Entry'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&amp;nbsp; wa_temp-matnr,&amp;nbsp; wa_temp-werks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ENDAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US"&gt;&lt;/P&gt;&lt;P lang="en-US"&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: #4da619;"&gt;'AT END OF'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;LOOP&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;AT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; it_marc &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; wa_marc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; &lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;wa_temp = wa_marc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;AT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;END&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;OF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; matnr.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;: / sy-tabix , wa_temp-matnr,&amp;nbsp; wa_temp-werks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ENDAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-size: 10px; font-family: 'Courier New', monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: #4da619;"&gt;'AT NEW'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US"&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;LOOP&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;AT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; it_marc &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; wa_marc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; &lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;wa_temp = wa_marc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;AT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;NEW&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; matnr.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;: / sy-tabix , wa_temp-matnr,&amp;nbsp; wa_temp-werks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ENDAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US"&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: #4da619;"&gt;'ON CHANGE OF'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;LOOP&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;AT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; it_marc &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; wa_marc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; &lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;wa_temp = wa_marc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ASSIGN&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; wa_marc-matnr &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &amp;lt;matnr&amp;gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ON&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;CHANGE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;OF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt; wa_marc-matnr.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;: / sy-tabix ,wa_temp-matnr,&amp;nbsp; wa_temp-werks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=" font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10px; color: blue;"&gt;ENDON&lt;/SPAN&gt;&lt;SPAN style="font-size: 10px; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-size: 14px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New', monospace;"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New', monospace;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 17:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121365#M741254</guid>
      <dc:creator>former_member185054</dc:creator>
      <dc:date>2013-11-22T17:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: control break statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121366#M741255</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Control Break Statements are used to control the sequential execution of the statements inside loop and end loop. This can be achieved by using the break statements and it is applicable only inside the loop and End loop.&lt;/P&gt;&lt;P&gt;Control Break Statements are,&lt;/P&gt;&lt;P&gt;1. At First: &lt;/P&gt;&lt;P&gt;This will trigger only during the first iteration of the loop &lt;/P&gt;&lt;P&gt;2. At Last:&lt;/P&gt;&lt;P&gt;This will trigger only during the last iteration of the loop. &lt;/P&gt;&lt;P&gt;3. At New:&lt;/P&gt;&lt;P&gt;This will trigger at every new value of the specified field. &lt;/P&gt;&lt;P&gt;4. At End Of:&lt;/P&gt;&lt;P&gt;This will trigger at the end of new value on the specified field.&lt;/P&gt;&lt;P&gt;5. On Change of:&lt;/P&gt;&lt;P&gt;This is obsolete in ABAP, it same as AT new. &lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 12:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statements/m-p/3121366#M741255</guid>
      <dc:creator>former_member697780</dc:creator>
      <dc:date>2020-12-05T12:45:06Z</dc:date>
    </item>
  </channel>
</rss>

