<?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: Record with highest sy-tabix in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-with-highest-sy-tabix/m-p/4061563#M970856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neerup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neerup wrote:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Is it possible to get the records D and E which has highest sy-index.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in your question you mention as :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Record with highest sy-tabix&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just sort decending then fetch the first record then exit from loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2008 15:09:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-01T15:09:25Z</dc:date>
    <item>
      <title>Record with highest sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-with-highest-sy-tabix/m-p/4061560#M970853</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;In an internal table I have 10 records for a field like &lt;/P&gt;&lt;P&gt;A &lt;/P&gt;&lt;P&gt;A &lt;/P&gt;&lt;P&gt;B &lt;/P&gt;&lt;P&gt;C &lt;/P&gt;&lt;P&gt;D &lt;/P&gt;&lt;P&gt;E &lt;/P&gt;&lt;P&gt;E &lt;/P&gt;&lt;P&gt;D &lt;/P&gt;&lt;P&gt;E &lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to get the records D and E which has highest sy-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good solution will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Neerup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 15:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-with-highest-sy-tabix/m-p/4061560#M970853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T15:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Record with highest sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-with-highest-sy-tabix/m-p/4061561#M970854</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;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : lv_tabix TYPE sy-tabix.

LOOP AT itab WHERE field EQ 'D'.
lv_tabix = sy-tabix.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now lv_tabix contains then number of last line with D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 15:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-with-highest-sy-tabix/m-p/4061561#M970854</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-07-01T15:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Record with highest sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-with-highest-sy-tabix/m-p/4061562#M970855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort itab by field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  v_count = v_count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  at end of field.&lt;/P&gt;&lt;P&gt;*populate an internal table with the values&lt;/P&gt;&lt;P&gt;     itab1-field = itab-field.&lt;/P&gt;&lt;P&gt;     itab1-count = v_count.&lt;/P&gt;&lt;P&gt;     append itab1.&lt;/P&gt;&lt;P&gt;    clear v_count.    &lt;/P&gt;&lt;P&gt;  endloop.&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;itab1 has fields and the no. of times they appear in ITAB.&lt;/P&gt;&lt;P&gt;sort itab1 count descending.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 15:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-with-highest-sy-tabix/m-p/4061562#M970855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T15:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Record with highest sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-with-highest-sy-tabix/m-p/4061563#M970856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neerup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neerup wrote:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Is it possible to get the records D and E which has highest sy-index.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in your question you mention as :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Record with highest sy-tabix&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just sort decending then fetch the first record then exit from loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 15:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-with-highest-sy-tabix/m-p/4061563#M970856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T15:09:25Z</dc:date>
    </item>
  </channel>
</rss>

