<?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: AT NEW usage. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-usage/m-p/3898757#M935682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vignesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked like a beauty!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2008 04:42:34 GMT</pubDate>
    <dc:creator>former_member216668</dc:creator>
    <dc:date>2008-06-02T04:42:34Z</dc:date>
    <item>
      <title>AT NEW usage.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-usage/m-p/3898754#M935679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table i_final2 with values Country, brand, pack and curr pri. I need to extract only the first value for any country and put iti n another internal table i_final2. I used AT NEW statment and wrote the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop AT i_temp INTO w_temp.
              MOVE w_temp-country TO w_final1-country.
              MOVE w_temp-brand TO w_final1-brand.
              MOVE w_temp-pack TO w_final1-pack.
              MOVE w_temp-curr_pri  TO w_final1-curr_pri.
             APPEND w_final1 TO i_final1.
         endloop.
        IF i_final1 IS NOT INITIAL.
          Loop AT i_final1 INTO w_final1.
            AT NEW country.
              APPEND w_final1 TO i_final2.
              CLEAR w_final1.
            ENDAT.
          endloop.
        ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But in the output i get the country code properly , where as the other values appear as astericks like *****, *******, etc. Can anyone help me in the regard?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 04:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-usage/m-p/3898754#M935679</guid>
      <dc:creator>former_member216668</dc:creator>
      <dc:date>2008-06-02T04:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: AT NEW usage.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-usage/m-p/3898755#M935680</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;jus read the internal table after AT NEW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT I_FINAL1 BY COUNTRY.
Loop AT i_final1 INTO w_final1.
            AT NEW country.
             READ TABLE I_FINAL1...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u'll get the values right!  Sort the internal table before using control break statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 04:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-usage/m-p/3898755#M935680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T04:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: AT NEW usage.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-usage/m-p/3898756#M935681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Between Control Block statement,all the fields next to the field used in control break statement will be like * only .&lt;/P&gt;&lt;P&gt;So you just move the value of the remaining fiedls just above the AT new statemnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:w_final2 like w_final1.&lt;/P&gt;&lt;P&gt;  Loop AT i_final1 INTO w_final1.&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;w_final2 = w_final1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            AT NEW country.&lt;/P&gt;&lt;P&gt;              APPEND w_final2 TO i_final2.&lt;/P&gt;&lt;P&gt;              CLEAR w_final2.&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;Edited by: Vigneswaran S on Jun 2, 2008 6:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 04:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-usage/m-p/3898756#M935681</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2008-06-02T04:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: AT NEW usage.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-usage/m-p/3898757#M935682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vignesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked like a beauty!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 04:42:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-usage/m-p/3898757#M935682</guid>
      <dc:creator>former_member216668</dc:creator>
      <dc:date>2008-06-02T04:42:34Z</dc:date>
    </item>
  </channel>
</rss>

