<?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: sorting technique in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401140#M1046119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;disadvantage at No. 1 is that you are using a sorted table.&lt;/P&gt;&lt;P&gt;means you gotta take care when working with it. E.G. Append will not work tho you gotta insert instead.&lt;/P&gt;&lt;P&gt;another disadvantage is that it uses more time than just doing an array fetch and the sorting the stuff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2008 12:18:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-27T12:18:58Z</dc:date>
    <item>
      <title>sorting technique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401134#M1046113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the advantage/disadvantage (over each other) of sorting using the 2 options below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. sorting a table through the select command (Ex. "into sorted table").&lt;/P&gt;&lt;P&gt;2. sorting a table using the sort keyword (Ex. "sort table itab by carrid").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;thanks for the help.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401134#M1046113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: sorting technique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401135#M1046114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorting the table using select may take more time and where as the second one is consumes less time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401135#M1046114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: sorting technique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401136#M1046115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jabbar Junzo &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by performance wise &lt;/P&gt;&lt;P&gt;sort table itab by carrid this one is better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because here we process in ABAP memory during runtime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in first case ( it directly deal with records in Database it consume more time to fetch a record)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:17:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401136#M1046115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: sorting technique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401137#M1046116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One you are sorting the data at the sametime while retriving it form database and the 2nd one you are sorting after getting the data in your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if there is selection criteria its better to sort after retriving the data in your internal table, performance wise this is better&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401137#M1046116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: sorting technique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401138#M1046117</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;        By performance wise 2 nd statement is fine  bz SORT is  a abap keyword.&lt;/P&gt;&lt;P&gt;So after getting data into int table  u have to use sort int table.  If in the select query  u use sorting then the performance will be down bz for every select statement the data going to sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Baidyanath Subudhi on Aug 27, 2008 5:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401138#M1046117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: sorting technique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401139#M1046118</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;A Very good question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorting with select query makes your internal table data as in the sorted by option.But it takes much time as the burdon on the database server is more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as Sort itab makes more performance.&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;Rama.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401139#M1046118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: sorting technique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401140#M1046119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;disadvantage at No. 1 is that you are using a sorted table.&lt;/P&gt;&lt;P&gt;means you gotta take care when working with it. E.G. Append will not work tho you gotta insert instead.&lt;/P&gt;&lt;P&gt;another disadvantage is that it uses more time than just doing an array fetch and the sorting the stuff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401140#M1046119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: sorting technique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401141#M1046120</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 first select ... into sorted table...&lt;/P&gt;&lt;P&gt;it has to select the data as well as sort at same time so lot of performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for second sort itab... its juz matter of sorting so not that much overhead..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401141#M1046120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: sorting technique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401142#M1046121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks people. I gave points to all of you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-technique/m-p/4401142#M1046121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:21:40Z</dc:date>
    </item>
  </channel>
</rss>

