<?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: sort a sorted internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-sorted-internal-table/m-p/10837490#M1884475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ming,&lt;/P&gt;&lt;P&gt;I think it will sort it again and less time take, due to&amp;nbsp; there is no flag to indicate this itab increased data or not compare with last sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Archer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Jan 2015 02:11:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-01-11T02:11:44Z</dc:date>
    <item>
      <title>sort a sorted internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-sorted-internal-table/m-p/10837489#M1884474</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;If an internal table is sorted or almost sorted, if we sort it again, does it take the same time as it is not sorted at all?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I ask this question because s&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;ometimes you do some modifies on a long code which is written by others, you don't want to read the entire code but you need a sorted internal table. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;If sort a sorted table doesn't take too much time, then I can singly put a SORT before entering LOOP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Otherwise I have to read the all code to make sure the internal table is sorted only once.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jan 2015 03:54:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-sorted-internal-table/m-p/10837489#M1884474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-10T03:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: sort a sorted internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-sorted-internal-table/m-p/10837490#M1884475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ming,&lt;/P&gt;&lt;P&gt;I think it will sort it again and less time take, due to&amp;nbsp; there is no flag to indicate this itab increased data or not compare with last sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Archer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 02:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-sorted-internal-table/m-p/10837490#M1884475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-11T02:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: sort a sorted internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-sorted-internal-table/m-p/10837491#M1884476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ming,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we cannot sort the sorted table.&lt;/P&gt;&lt;P&gt;correct me if i am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marimuthu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 05:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-sorted-internal-table/m-p/10837491#M1884476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-11T05:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: sort a sorted internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-sorted-internal-table/m-p/10837492#M1884477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ming is saying the table has been sorted, not that it is of type SORTED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct way to approach this is to define your table as SORTED. That way you don't have to worry about whether it is already sorted. If you need more than one sort order, then when you define the table, define the additional sort keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="104107" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="First real use of secondary indexes on an internal table" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 07:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-sorted-internal-table/m-p/10837492#M1884477</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2015-01-11T07:00:04Z</dc:date>
    </item>
  </channel>
</rss>

