<?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>Question Re: Sorting of alphanumeric data in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202954#M1951490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;repeated reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sushama Wankhade on Feb 18, 2009 4:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2009 14:24:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-18T14:24:54Z</dc:date>
    <item>
      <title>Sorting of alphanumeric data</title>
      <link>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaq-p/5202949</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;I have data which contains letters, numbers, and some special characters. String length is not fixed. I want to sort it after certain number of characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;A-BC-111 these first characters/pattern is fixed but after that pattern and number of characters are not fixed.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A-BC-111-A105-13134A&lt;/P&gt;&lt;P&gt;A-BC-111-A001-1&lt;/P&gt;&lt;P&gt;A-BC-111-A002-15&lt;/P&gt;&lt;P&gt;A-BC-111-A001-10&lt;/P&gt;&lt;P&gt;A-BC-111-A001-11&lt;/P&gt;&lt;P&gt;A-BC-111-A001-12&lt;/P&gt;&lt;P&gt;A-BC-111-B001-2&lt;/P&gt;&lt;P&gt;A-BC-111-A001-3&lt;/P&gt;&lt;P&gt;A-BC-111-A001-2&lt;/P&gt;&lt;P&gt;A-BC-111-B001-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above records should be sorted in following order&lt;/P&gt;&lt;P&gt;A-BC-111-A001-1&lt;/P&gt;&lt;P&gt;A-BC-111-A001-2&lt;/P&gt;&lt;P&gt;A-BC-111-A001-3&lt;/P&gt;&lt;P&gt;A-BC-111-A001-10&lt;/P&gt;&lt;P&gt;A-BC-111-A001-11&lt;/P&gt;&lt;P&gt;A-BC-111-A001-12&lt;/P&gt;&lt;P&gt;A-BC-111-A002-15&lt;/P&gt;&lt;P&gt;A-BC-111-A105-13134A&lt;/P&gt;&lt;P&gt;A-BC-111-B001-1&lt;/P&gt;&lt;P&gt;A-BC-111-B001-2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have number of different patterns. Sorting starts from different positions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 20:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaq-p/5202949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T20:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of alphanumeric data</title>
      <link>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202950#M1951486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simply add your field to a formula with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Fieldname [10 to 20]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and sort by that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will pull the 10th to 20th character.  You can do more or less characters, but with the sample data you gave, 10 should be your starting point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chad Lindell on Feb 13, 2009 10:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 21:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202950#M1951486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T21:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of alphanumeric data</title>
      <link>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202951#M1951487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you prompt reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I tried it but didn't work. My code is working to some extent but last characters are not in order. Can you please write little more in detail?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same report has number of patterns and in each pattren sorting starts from different positions. e.g. 10, 11, 16, 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sushama Wankhade on Feb 17, 2009 9:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 21:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202951#M1951487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T21:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of alphanumeric data</title>
      <link>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202952#M1951488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at your desired sorting results, I think using the standard CR sorting feature will sort it exactly as you specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the field that you are looking to sort assuming you have no groupings, try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on Report tab at the top of your screen -&amp;gt; Record Sort Expert -&amp;gt; bring your report field across to your sort field -&amp;gt; for sort direction, click on ascending order.  Again, this should work assuming you have no groupings in your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Zack H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 21:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202952#M1951488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T21:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of alphanumeric data</title>
      <link>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202953#M1951489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zack,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per standard CR sorting feature I don't get the sort the way my client wants. It comes like &lt;/P&gt;&lt;P&gt;A-BC-111-A105-8307&lt;/P&gt;&lt;P&gt;A-BC-111-A105-8341&lt;/P&gt;&lt;P&gt;A-BC-111-A105-8347&lt;/P&gt;&lt;P&gt;A-BC-111-A105-8420&lt;/P&gt;&lt;P&gt;A-BC-111-A6-B854&lt;/P&gt;&lt;P&gt;A-BC-111-A6-B3005&lt;/P&gt;&lt;P&gt;A-BC-111-A6-C801&lt;/P&gt;&lt;P&gt;A-BC-111-A6-C803&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But actually he wants &lt;/P&gt;&lt;P&gt; (all A6 first then A105)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A-BC-111-A6-B854&lt;/P&gt;&lt;P&gt;A-BC-111-A6-B3005&lt;/P&gt;&lt;P&gt;A-BC-111-A6-C801&lt;/P&gt;&lt;P&gt;A-BC-111-A6-C803&lt;/P&gt;&lt;P&gt;A-BC-111-A105-8307&lt;/P&gt;&lt;P&gt;A-BC-111-A105-8341&lt;/P&gt;&lt;P&gt;A-BC-111-A105-8347&lt;/P&gt;&lt;P&gt;A-BC-111-A105-8420&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And again by CR sorting last two digits come as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-1&lt;/P&gt;&lt;P&gt;-11&lt;/P&gt;&lt;P&gt;-12&lt;/P&gt;&lt;P&gt;-13&lt;/P&gt;&lt;P&gt;-2&lt;/P&gt;&lt;P&gt;-3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we want &lt;/P&gt;&lt;P&gt;-1&lt;/P&gt;&lt;P&gt;-2&lt;/P&gt;&lt;P&gt;-3&lt;/P&gt;&lt;P&gt;-11&lt;/P&gt;&lt;P&gt;-12&lt;/P&gt;&lt;P&gt;-13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have to write code to check each character from sort position number whether it's a number or a letter and then use those formulas in sorting. But still didn't get the order of all patterns in the same report. One pattern worked but then second pattern as sort position is different not in order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sushama.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 14:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202953#M1951489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T14:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of alphanumeric data</title>
      <link>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202955#M1951491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Repeated reply so discarded it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sushama Wankhade on Feb 18, 2009 4:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 14:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202955#M1951491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T14:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of alphanumeric data</title>
      <link>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202954#M1951490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;repeated reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sushama Wankhade on Feb 18, 2009 4:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 14:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202954#M1951490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T14:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of alphanumeric data</title>
      <link>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202956#M1951492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem is solved by some other person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sushama Wankhade on Feb 19, 2009 6:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 14:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202956#M1951492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T14:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of alphanumeric data</title>
      <link>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202957#M1951493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is solved by someone else and not from the replies I got on forum. But thanks for reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 17:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202957#M1951493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T17:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of alphanumeric data</title>
      <link>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202958#M1951494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushama&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am hoping you can let me know how you got around this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;duffey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 00:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sorting-of-alphanumeric-data/qaa-p/5202958#M1951494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T00:44:54Z</dc:date>
    </item>
  </channel>
</rss>

