<?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 statement in internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-statement-in-internal-tables/m-p/1990102#M404007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt; can any body will provide me the control statement of internal table.&lt;/P&gt;&lt;P&gt;                                                           thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Mar 2007 19:30:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-03T19:30:48Z</dc:date>
    <item>
      <title>control statement in internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-statement-in-internal-tables/m-p/1990102#M404007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt; can any body will provide me the control statement of internal table.&lt;/P&gt;&lt;P&gt;                                                           thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 19:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-statement-in-internal-tables/m-p/1990102#M404007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-03T19:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: control statement in internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-statement-in-internal-tables/m-p/1990103#M404008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;AT NEW....
AT FIRST....
AT LAST....
AT END....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 19:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-statement-in-internal-tables/m-p/1990103#M404008</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-03T19:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: control statement in internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-statement-in-internal-tables/m-p/1990104#M404009</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;   Control statements of an internal table are: &lt;/P&gt;&lt;P&gt;1. AT FIRST&lt;/P&gt;&lt;P&gt;2: AT NEW&lt;/P&gt;&lt;P&gt;3. AT END OF&lt;/P&gt;&lt;P&gt;4. AT LAST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT &amp;lt;line&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;statement block&amp;gt;&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; &lt;/P&gt;&lt;P&gt;FIRST&lt;/P&gt;&lt;P&gt; the first line of the internal table&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LAST&lt;/P&gt;&lt;P&gt; the last line of the internal table&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;NEW &amp;lt;field&amp;gt;&lt;/P&gt;&lt;P&gt; the beginning of a group of lines with the same contents in &amp;lt;field&amp;gt; and in the superior fields&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;END OF &amp;lt;field&amp;gt;&lt;/P&gt;&lt;P&gt; the end of a group of lines with the same contents in &amp;lt;field&amp;gt; and in the superior fields&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br, &lt;/P&gt;&lt;P&gt;Laxmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 19:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-statement-in-internal-tables/m-p/1990104#M404009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-03T19:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: control statement in internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-statement-in-internal-tables/m-p/1990105#M404010</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;1. AT FIRST&lt;/P&gt;&lt;P&gt;2: AT NEW&lt;/P&gt;&lt;P&gt;3. AT END OF&lt;/P&gt;&lt;P&gt;4. AT LAST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT &amp;lt;line&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;statement block&amp;gt;&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;&lt;/P&gt;&lt;P&gt;FIRST&lt;/P&gt;&lt;P&gt;the first line of the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LAST&lt;/P&gt;&lt;P&gt;the last line of the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEW &amp;lt;field&amp;gt;&lt;/P&gt;&lt;P&gt;the beginning of a group of lines with the same contents in &amp;lt;field&amp;gt; and in the superior fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF &amp;lt;field&amp;gt;&lt;/P&gt;&lt;P&gt;the end of a group of lines with the same contents in &amp;lt;field&amp;gt; and in the superior fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nidhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 21:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-statement-in-internal-tables/m-p/1990105#M404010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-03T21:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: control statement in internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-statement-in-internal-tables/m-p/1990106#M404011</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;check this link&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Control Break Statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Control break statements are used to create statement blocks which process only specific table lines the LOOP &amp;#150; ENDLOOP block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You open such a statement block with the control level statement AT and close it with the control level statement ENDAT. The syntax is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table should be sorted when you use control-break statements&lt;/P&gt;&lt;P&gt;You can break the sequential access of internal tables by using these statements.&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;At first.&lt;/P&gt;&lt;P&gt;&amp;lt;Statement block&amp;gt;&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the first statement to get executed inside the loop (remember control break statements are applicable only inside the loop)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this block you can write or process those statements which you want to get executed when the loop starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At New carrid.&lt;/P&gt;&lt;P&gt;Write:/ carrid.&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;In this case whenever the new carrid is reached, carrid will be written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At End of carrid.&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;In this case whenever the end of carrid is reached, a line will be drawn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Last.&lt;/P&gt;&lt;P&gt;Write:/ &amp;#145;Last Record is reached&amp;#146;.&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Processing of statements within this block is done when entire processing of entire internal table is over. Usually used to display grand totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use either all or one of the above control break statements with in the loop for processing internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At end of carrid.&lt;/P&gt;&lt;P&gt;Sum.&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In above case the statement SUM (applicable only within AT-ENDAT) will sum up all the numeric fields in internal table and result is stored in same internal table variable.&lt;/P&gt;&lt;P&gt;&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;Sruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2007 05:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-statement-in-internal-tables/m-p/1990106#M404011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-04T05:12:38Z</dc:date>
    </item>
  </channel>
</rss>

