<?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: internal tables - sorted table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849377#M667645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But am using append statement.&lt;/P&gt;&lt;P&gt;Append statement always inserts at the last index is it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Sep 2007 12:38:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-25T12:38:49Z</dc:date>
    <item>
      <title>internal tables - sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849373#M667641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if am inserting records in a sorted table like&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;field1  field2&lt;/P&gt;&lt;P&gt;1         4&lt;/P&gt;&lt;P&gt;3         7&lt;/P&gt;&lt;P&gt;4         6&lt;/P&gt;&lt;P&gt;using append statement.&lt;/P&gt;&lt;P&gt;Then if i append  2     8 to the table,&lt;/P&gt;&lt;P&gt;what will happen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 12:34:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849373#M667641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T12:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables - sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849374#M667642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;it will be added after  1  2&lt;/P&gt;&lt;P&gt;as a second record since it is a sorted table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 12:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849374#M667642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T12:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables - sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849375#M667643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Shori,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your table will look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1 field2&lt;/P&gt;&lt;P&gt;1 4&lt;/P&gt;&lt;P&gt;2 8&lt;/P&gt;&lt;P&gt;3 7&lt;/P&gt;&lt;P&gt;4 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is what sorted tables are about, if you use unsert records will be inserted into the table acc. to sort key automatically.&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, 25 Sep 2007 12:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849375#M667643</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-09-25T12:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables - sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849376#M667644</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;Its a sorted table. Now you are going to break the order of the Sorted Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it will gives the Error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 12:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849376#M667644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T12:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables - sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849377#M667645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But am using append statement.&lt;/P&gt;&lt;P&gt;Append statement always inserts at the last index is it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 12:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849377#M667645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T12:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables - sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849378#M667646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shori,&lt;/P&gt;&lt;P&gt;Sorted table will sort the records based on the kay fields.&lt;/P&gt;&lt;P&gt;First it will sort based on the first key field. second preference for second key field like that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 12:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849378#M667646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T12:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables - sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849379#M667647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shori..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In sorted Table you have to use the Command INSERT (without index) to add the records.&lt;/P&gt;&lt;P&gt;Then the records are INSERTED in the Sorted order as per the key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using APPEND may give dump if the Sort key is voilated .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 12:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849379#M667647</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-25T12:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables - sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849380#M667648</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;This is lead to ABAP dump ITAB_ILLEGAL_SORT_ORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Becasue whenever an append statement is triggered table will sorted. This will lead to ABAP dump. To overcome this declare a standard internal table and append all the values and sort the table based on the key. Then pass the values to Sorted table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 12:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-sorted-table/m-p/2849380#M667648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T12:47:21Z</dc:date>
    </item>
  </channel>
</rss>

