<?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 About at new  control statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501446#M565222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everybody &lt;/P&gt;&lt;P&gt;                            I need a small information about  at new control ..like when i'm using this control to get every new vendor  details ...in the out put its coming the related data like ********** .why its comin like this .can i know .please help me out .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&amp;amp;regards&lt;/P&gt;&lt;P&gt;Lavanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2007 13:02:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-06T13:02:46Z</dc:date>
    <item>
      <title>About at new  control statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501446#M565222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everybody &lt;/P&gt;&lt;P&gt;                            I need a small information about  at new control ..like when i'm using this control to get every new vendor  details ...in the out put its coming the related data like ********** .why its comin like this .can i know .please help me out .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&amp;amp;regards&lt;/P&gt;&lt;P&gt;Lavanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 13:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501446#M565222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T13:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: About at new  control statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501447#M565223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after AT NEW , READ the itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;  at new lifnr.&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;READ TABLE ITAB INDEX SY-TABIX.&amp;lt;/b&amp;gt;&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>Fri, 06 Jul 2007 13:04:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501447#M565223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T13:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: About at new  control statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501448#M565224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response  sir.&lt;/P&gt;&lt;P&gt;         but the thing is why those ****** are coming in place of my data . i want to know .can u please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;lavanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 13:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501448#M565224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T13:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: About at new  control statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501449#M565225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT for group change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change of group when processing loops of extracts and internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT FIRST.&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;AT &amp;lt;fg&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statements are used to process group levels within a loop using an extract dataset or an internal table. They introduce statement blocks that must be closed with ENDAT. The statements between AT and ENDAT are only executed if the corresponding group change occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;When ever you use the control events and display the data you get some scrapped values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, to avoid it use &amp;lt;b&amp;gt;READ TABLE &amp;lt;table name&amp;gt; INTO &amp;lt;WA&amp;gt;&amp;lt;/b&amp;gt;. and then print the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 13:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501449#M565225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T13:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: About at new  control statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501450#M565226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason for such happening is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose the records are like&lt;/P&gt;&lt;P&gt;100 abc&lt;/P&gt;&lt;P&gt;100 def&lt;/P&gt;&lt;P&gt;100 ghi&lt;/P&gt;&lt;P&gt;200 abc&lt;/P&gt;&lt;P&gt;200 def&lt;/P&gt;&lt;P&gt;200 ghi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want the output to be displayed as &lt;/P&gt;&lt;P&gt;100 abc&lt;/P&gt;&lt;P&gt;      def&lt;/P&gt;&lt;P&gt;      ghi&lt;/P&gt;&lt;P&gt;200 abc&lt;/P&gt;&lt;P&gt;      def&lt;/P&gt;&lt;P&gt;      ghi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when you use Control events, you are reading the value of first field as 100 and then you have 3 different values to be printed(i.e., abc, def, ghi). So the system will not be able to judge which value to print and it prints that ***** sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this we use READ TABLE...&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;Pavan P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 13:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501450#M565226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T13:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: About at new  control statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501451#M565227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to get the original values is to use a temporary work area for the loop:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_tab INTO lw_temp.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Copy work area to avoid dataloss during AT command&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lw_tab = lw_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AT NEW some_field.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At this point use the original work area lw_tab instead of lw_temp to avoid *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 13:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-new-control-statement/m-p/2501451#M565227</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2007-07-06T13:18:25Z</dc:date>
    </item>
  </channel>
</rss>

