<?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 order in different manner. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-order-in-different-manner/m-p/7153273#M1514900</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;Your logic was very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Sep 2010 05:34:39 GMT</pubDate>
    <dc:creator>kavya_2017</dc:creator>
    <dc:date>2010-09-03T05:34:39Z</dc:date>
    <item>
      <title>Sorting order in different manner.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-order-in-different-manner/m-p/7153271#M1514898</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 have a requirement where an internal table itab has some fileds.&lt;/P&gt;&lt;P&gt;and one of those fields say 'x' will be having values like Z002,Z003,Z010,Z012....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now  i have to sort the above internal table and i should get the records in the below manner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Firstly i should get records with field 'x' = Z012&lt;/P&gt;&lt;P&gt;2) Then i should get records with field 'x'  = Z002&lt;/P&gt;&lt;P&gt;3) Then i should get records with field 'x'  = Z010&lt;/P&gt;&lt;P&gt;4) Then i should get records with field 'x'  = Z003&lt;/P&gt;&lt;P&gt;                 Again for this records i have to sort the internal table by other fields&lt;/P&gt;&lt;P&gt;5) i should get the records with field 'x' = other than above values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know can we achieve this by using Sort statement or what logic we can apply to get the above result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank  you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 04:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-order-in-different-manner/m-p/7153271#M1514898</guid>
      <dc:creator>kavya_2017</dc:creator>
      <dc:date>2010-09-01T04:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting order in different manner.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-order-in-different-manner/m-p/7153272#M1514899</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;      Take another field say NUM in your internal table(ITAB) and assign 1 to the records where field 'x' = Z012&lt;/P&gt;&lt;P&gt;      similarly assign 2  to the records where field 'x' = Z002 ..... &lt;/P&gt;&lt;P&gt;      Do this while populatin ITAB.&lt;/P&gt;&lt;P&gt;      Now sort ITAB by NUM x other_field1 .... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 05:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-order-in-different-manner/m-p/7153272#M1514899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T05:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting order in different manner.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-order-in-different-manner/m-p/7153273#M1514900</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;Your logic was very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 05:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-order-in-different-manner/m-p/7153273#M1514900</guid>
      <dc:creator>kavya_2017</dc:creator>
      <dc:date>2010-09-03T05:34:39Z</dc:date>
    </item>
  </channel>
</rss>

