<?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 the internal table I'm getting ...... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825141#M352136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; When you sort, sort operation will follow the order you give the columns if you give SORT  by A B C that order will be taken if you give B A C then that order will be followed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO thats why you see that result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2007 08:25:44 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2007-01-11T08:25:44Z</dc:date>
    <item>
      <title>sorting the internal table I'm getting ......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825139#M352134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While sorting the internal table I'm getting one of the columns not sorted .... why is that? for example&lt;/P&gt;&lt;P&gt;A   B   C&lt;/P&gt;&lt;P&gt;9   2    11&lt;/P&gt;&lt;P&gt;4   9    10&lt;/P&gt;&lt;P&gt;8   3    7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using ---&amp;gt; sort itab by A B C. gives me this&lt;/P&gt;&lt;P&gt;A   B   C&lt;/P&gt;&lt;P&gt;4   2    7&lt;/P&gt;&lt;P&gt;8   9    10&lt;/P&gt;&lt;P&gt;9   3    11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 08:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825139#M352134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T08:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: sorting the internal table I'm getting ......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825140#M352135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Essa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; It would be better if you could sort it with key fields .. and more over the order in which you might have used the sort statement is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort ITAB by B A C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please close your previous theread by marking helpful answers&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 08:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825140#M352135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T08:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: sorting the internal table I'm getting ......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825141#M352136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; When you sort, sort operation will follow the order you give the columns if you give SORT  by A B C that order will be taken if you give B A C then that order will be followed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO thats why you see that result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 08:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825141#M352136</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-01-11T08:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: sorting the internal table I'm getting ......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825142#M352137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sure ? because it gives me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 4 |         9 |        10    &lt;/P&gt;&lt;P&gt; 8 |         3 |         7  &lt;/P&gt;&lt;P&gt; 9 |         2 |        11  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this and it is the correct one.&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;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 08:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825142#M352137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T08:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: sorting the internal table I'm getting ......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825143#M352138</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;check this code,&lt;/P&gt;&lt;P&gt;REPORT ZEX31 .&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       f1 type i,&lt;/P&gt;&lt;P&gt;       f2 type i,&lt;/P&gt;&lt;P&gt;       f3 type i,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-f1 = 9 .&lt;/P&gt;&lt;P&gt;itab-f2 = 2.&lt;/P&gt;&lt;P&gt;itab-f3 = 11 .&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-f1 = 4 .&lt;/P&gt;&lt;P&gt;itab-f2 = 9.&lt;/P&gt;&lt;P&gt;itab-f3 = 10 .&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-f1 = 8 .&lt;/P&gt;&lt;P&gt;itab-f2 = 3.&lt;/P&gt;&lt;P&gt;itab-f3 = 7 .&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  write : / itab-f1 , itab-f2 , itab-f3.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by f1 f2 f3.&lt;/P&gt;&lt;P&gt;skip 2.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  write : / itab-f1 , itab-f2 , itab-f3.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorting will be based on the order u give,&lt;/P&gt;&lt;P&gt;if u give order f1 f2 f3 then first f1 will be checked and sorted in the order of it.&lt;/P&gt;&lt;P&gt;o/p will be&lt;/P&gt;&lt;P&gt;4  9  10&lt;/P&gt;&lt;P&gt;8  3   7&lt;/P&gt;&lt;P&gt;9  2  11&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 08:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825143#M352138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T08:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: sorting the internal table I'm getting ......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825144#M352139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for this great explanation and now it's working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 08:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-internal-table-i-m-getting/m-p/1825144#M352139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T08:38:52Z</dc:date>
    </item>
  </channel>
</rss>

