<?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 Sorting? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/2159176#M456538</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;I hv code like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 Code) :&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt; sort itab by charg.&lt;/P&gt;&lt;P&gt;sort itab by invnr.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Code):&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;sort itab by charg invnr.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that the above two codes wuld yields the same result? Or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThanQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2007 00:17:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-30T00:17:41Z</dc:date>
    <item>
      <title>Sorting?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/2159176#M456538</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;I hv code like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 Code) :&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt; sort itab by charg.&lt;/P&gt;&lt;P&gt;sort itab by invnr.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Code):&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;sort itab by charg invnr.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that the above two codes wuld yields the same result? Or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThanQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 00:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/2159176#M456538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T00:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/2159177#M456539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not necessarily the same result as in  the two cases, the sort order is different ie&lt;/P&gt;&lt;P&gt;when u sort by only one field, the itab is sorted by that field.. in the first case, the second sort overrides the first sort ie the itab will be sorted by invnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas in the second case the itab is sorted first by charg &amp;amp; then by invnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 00:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/2159177#M456539</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-04-30T00:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/2159178#M456540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, ThanQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, here, the following 2 statements r immediately written,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 Case):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sort itab by charg.&lt;/P&gt;&lt;P&gt; sort itab by invnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, instead, programmer can write only one statement as blow,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Case):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sort itab by invnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by expecting the same result!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R the above 2 cases wuld yield the same result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThaNQ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 00:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/2159178#M456540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T00:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/2159179#M456541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, those statements would yeild the same results.  Because, in number 1, the last statement is the same as the statement in number 2.  So in number 1, the table is sorted by the last SORT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your original post, the statement with boths fields will sort by the first, and then by the second collectively, when you separate the fields into two separate SORT statements, you are simply sorting by that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 01:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/2159179#M456541</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-30T01:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/2159180#M456542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ThanQ Rich.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 02:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/2159180#M456542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T02:28:08Z</dc:date>
    </item>
  </channel>
</rss>

