<?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 first row for each entry in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099634#M735462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i have sorted the internal table by field f1 and i need to insert the first row for each f1 entry.&lt;/P&gt;&lt;P&gt;I tried AT NEW f1. But that doesnt seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindlly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2007 12:45:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-26T12:45:51Z</dc:date>
    <item>
      <title>first row for each entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099634#M735462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i have sorted the internal table by field f1 and i need to insert the first row for each f1 entry.&lt;/P&gt;&lt;P&gt;I tried AT NEW f1. But that doesnt seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindlly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 12:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099634#M735462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T12:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: first row for each entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099635#M735463</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;can you post your code? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rodrigo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 12:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099635#M735463</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-11-26T12:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: first row for each entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099636#M735464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi here it is..  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT it_gir BY age ASCENDING.&lt;/P&gt;&lt;P&gt;  LOOP AT it_gir INTO wa_gir.&lt;/P&gt;&lt;P&gt;    AT NEW age.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING wa_gir TO wa_final1.&lt;/P&gt;&lt;P&gt;      APPEND wa_final1 TO it_final1.&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, 26 Nov 2007 12:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099636#M735464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T12:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: first row for each entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099637#M735465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi riya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is widely spear confusion on AT NEW and ON CHANGE OF. I'm sure you did not check or understand the relevant F1 help or WIKI or what ever. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply said: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. AT NEW works for sorted tables only. Sorted by the whole line, that means SORT without any fields addidtion. SORT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. AT NEW is triggered only and alöways if the field content OR THE FIELD CONTENT OF ANY FIELD LEFT FROM IT changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 13:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099637#M735465</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-11-26T13:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: first row for each entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099638#M735466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*--ENSURE THAT age IS FIRST FIELD IN INTERNAL TABLE it_gir while declaring it.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT it_gir BY age ASCENDING.&lt;/P&gt;&lt;P&gt;LOOP AT it_gir INTO wa_gir.&lt;/P&gt;&lt;P&gt;AT NEW age.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*--if there are fields which are getting populated with **** instead of original values....then use below statement...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;read table it_gir index sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING wa_gir TO wa_final1.&lt;/P&gt;&lt;P&gt;APPEND wa_final1 TO it_final1.&lt;/P&gt;&lt;P&gt;clear wa_final1.&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;now it should definitely work.....&lt;/P&gt;&lt;P&gt;if not check in debugging mode if data exists or not....!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 14:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099638#M735466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T14:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: first row for each entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099639#M735467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;why cant u do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT it_gir BY age ASCENDING.&lt;/P&gt;&lt;P&gt;it_final[] = it_gir[].&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from it_final[] comapring age.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now it_final contain only unique entries for age field&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if answered&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 14:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-row-for-each-entry/m-p/3099639#M735467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T14:27:00Z</dc:date>
    </item>
  </channel>
</rss>

