<?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: Short dump with sort statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-sort-statement/m-p/2232414#M480433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if possible...declare it as a sorted table....so tht u need not sort it using SORT stmnt....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;naveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2007 02:49:44 GMT</pubDate>
    <dc:creator>naveen1241</dc:creator>
    <dc:date>2007-04-25T02:49:44Z</dc:date>
    <item>
      <title>Short dump with sort statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-sort-statement/m-p/2232413#M480432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table with 14,00000 records .Iam using sort statement on this internal table . Iam getting short dump as " loss of memory for external sort" . How can i avoid this dump?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 02:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-sort-statement/m-p/2232413#M480432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T02:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with sort statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-sort-statement/m-p/2232414#M480433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if possible...declare it as a sorted table....so tht u need not sort it using SORT stmnt....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;naveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 02:49:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-sort-statement/m-p/2232414#M480433</guid>
      <dc:creator>naveen1241</dc:creator>
      <dc:date>2007-04-25T02:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with sort statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-sort-statement/m-p/2232415#M480434</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;As the post above, try to use SORTED tables so you can avoid the SORT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of using SORT statement and using SORTED tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SORT statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: gt_vbak  type standard table of vbak, 
          wa_vbak like line of vbak.

select * 
from vbak
into table gt_vbak.

sort gt_vbak by vbeln ascending.

loop at gt_vbak into wa_vbak.
 write: / wa_vbak-vbeln.
endloop.

Using SORTED table:

data: gt_vbak type sorted table of vbak
        with unique-key vbeln,
        wa_vbak like line of gt_vbak.

select *
from vbak
into table gt_vbak.

loop at gt_vbak into wa_vbak.
 write: / wa_vbak-vbeln.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Please award points if it helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 03:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-sort-statement/m-p/2232415#M480434</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2007-04-25T03:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with sort statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-sort-statement/m-p/2232416#M480435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;otherwise declare a new sorted internal table of the same structure and assign the first table to sorted table....&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_tab     TYPE TABLE OF ekko WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      it_tabsort TYPE SORTED TABLE OF ekko WITH UNIQUE KEY ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ekko INTO TABLE it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_tabsort[] = it_tab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_tab[] = it_tabsort[]. "Assign back if necessary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.....&lt;/P&gt;&lt;P&gt;this wud wrk in split of a second..as i had tried with 35000 odd records.....&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen Natarajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 03:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-sort-statement/m-p/2232416#M480435</guid>
      <dc:creator>naveen1241</dc:creator>
      <dc:date>2007-04-25T03:03:36Z</dc:date>
    </item>
  </channel>
</rss>

