<?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 Sorted Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorted-internal-table/m-p/4734133#M1111002</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 which scenario sorted inernal table cannot be used?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry friends If this question was asked already. I tried to find but not able to get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Senthil kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Nov 2008 07:06:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-14T07:06:44Z</dc:date>
    <item>
      <title>Sorted Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorted-internal-table/m-p/4734133#M1111002</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 which scenario sorted inernal table cannot be used?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry friends If this question was asked already. I tried to find but not able to get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Senthil kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 07:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorted-internal-table/m-p/4734133#M1111002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-14T07:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sorted Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorted-internal-table/m-p/4734134#M1111003</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;STRONG&gt;You can not use sorted tables in these situations:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A runtime error occurs if you attempt to add a duplicate entry to a sorted table with a unique key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you append several lines to a sorted table, you must respect the unique key (if defined), and not violate the sort order. Otherwise, a runtime error will occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;From SAP Help:&lt;/U&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;You can also access sorted tables by index operations. When you insert using an index, the system checks to ensure that the sort sequence has been correctly maintained. For this reason, it takes longer than inserting entries in a standard table. As a rule, you should only access sorted tables using their key.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append cannot be used with sorted tables, you have to use INSERT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 07:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorted-internal-table/m-p/4734134#M1111003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-14T07:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sorted Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorted-internal-table/m-p/4734135#M1111004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can use append also. But the record to be appended should match sort order of internal table, else a exception with a dump will occur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 07:43:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorted-internal-table/m-p/4734135#M1111004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-14T07:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sorted Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorted-internal-table/m-p/4734136#M1111005</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;Append cannot be used with sorted tables, you should use INSERT (records will be inserted into the internal table at the correct position to keep the sorting ok).&lt;/P&gt;&lt;P&gt;also Check ... is initial or if.... is inital is the same for performance reasons.&lt;/P&gt;&lt;P&gt;The index will be used automatically by the DB-optimizer.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Aakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 08:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorted-internal-table/m-p/4734136#M1111005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-14T08:36:30Z</dc:date>
    </item>
  </channel>
</rss>

