<?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: SAP and Excel sorting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455883#M1414734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Small example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you sort it as text, the output in excel and SAP is the same, otherwise the case you point occurs. Maybe this will help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF itab OCCURS 0,
line(10),
END OF itab.


itab = '150P14-8'. APPEND itab.
itab = 'N135B-P'. APPEND itab.
itab = '150P-12'. APPEND itab.
itab = '150P-18'. APPEND itab.
itab = 'N225B-P'. APPEND itab.
itab = 'N-209-7'. APPEND itab.


SORT itab as text.
LOOP AT itab.
  WRITE: / itab.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2009 16:45:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-29T16:45:06Z</dc:date>
    <item>
      <title>SAP and Excel sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455880#M1414731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP and Excel sort the dash (u201C-u201C) character in different ways. Since the dash character shows up in a number of our material numbers, this causes issues when mass-loading lots of changes using MM17. Has anyone been able to change the sort types to match?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 15:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455880#M1414731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T15:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAP and Excel sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455881#M1414732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not notices any chabges in sap and excel sort for the same range of materials numbers with same characters , including special charachters, i.e way it should not affect the upload process since, the materila no is unique, but if you a facing the problem could u plase post the material no where there are sorting errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vaibhav B Gawali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 16:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455881#M1414732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T16:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAP and Excel sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455882#M1414733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In these examples, Excel will sort the last item between the first two, as if the dash didn't exist. SAP will sort the last item after the first two in the first example and before the first two in the second, as if the dash was a special character which sorts before numbers or letters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP sort:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;150P-12&lt;/P&gt;&lt;P&gt;150P-18&lt;/P&gt;&lt;P&gt;150P14-8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N-209-7&lt;/P&gt;&lt;P&gt;N135B-P&lt;/P&gt;&lt;P&gt;N225B-P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excel sort:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;150P-12&lt;/P&gt;&lt;P&gt;150P14-8&lt;/P&gt;&lt;P&gt;150P-18&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N135B-P&lt;/P&gt;&lt;P&gt;N-209-7&lt;/P&gt;&lt;P&gt;N225B-P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 16:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455882#M1414733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T16:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAP and Excel sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455883#M1414734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Small example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you sort it as text, the output in excel and SAP is the same, otherwise the case you point occurs. Maybe this will help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF itab OCCURS 0,
line(10),
END OF itab.


itab = '150P14-8'. APPEND itab.
itab = 'N135B-P'. APPEND itab.
itab = '150P-12'. APPEND itab.
itab = '150P-18'. APPEND itab.
itab = 'N225B-P'. APPEND itab.
itab = 'N-209-7'. APPEND itab.


SORT itab as text.
LOOP AT itab.
  WRITE: / itab.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 16:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455883#M1414734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T16:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAP and Excel sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455884#M1414735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to format the cells as text in Excel 2007 and sort. This did not change my sort order in Excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 18:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455884#M1414735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T18:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAP and Excel sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455885#M1414736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Default sort orders In an ascending sort, Microsoft Office Excel uses the following order. In a descending sort, this sort order is reversed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value  Comment &lt;/P&gt;&lt;P&gt;Numbers   Numbers are sorted from the smallest negative number to the largest positive number. &lt;/P&gt;&lt;P&gt;Dates   Dates are sorted from the earliest date to the latest date. &lt;/P&gt;&lt;P&gt;Text   Alphanumeric text is sorted left to right, character by character. For example, if a cell contains the text "A100," Excel places the cell after a cell that contains the entry "A1" and before a cell that contains the entry "A11."&lt;/P&gt;&lt;P&gt;Text and text that includes numbers stored as text are sorted in the following order:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 1 2 3 4 5 6 7 8 9 (space) ! " # $ % &amp;amp; ( ) * , . / : ; ? @ [ \ ] ^ _ ` { | } ~ + &amp;lt; = &amp;gt; A B C D E F G H I J K L M N O P Q R S T U V W X Y Z&lt;/P&gt;&lt;P&gt;Apostrophes (') and hyphens &lt;SPAN __jive_emoticon_name="minus"&gt;&lt;/SPAN&gt; are ignored, with one exception: If two text strings are the same except for a hyphen, the text with the hyphen is sorted last.&lt;/P&gt;&lt;P&gt; Note    If you have changed the default sort order to be case-sensitive through the Sort Options dialog box, then the order for alphabetic characters is the following: a A b B c C d D e E f F g G h H i I j J k K l L m M n N o O p P q Q r R s S t T u U v V w W x X y Y z Z &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Logical   In logical values, FALSE is placed before TRUE. &lt;/P&gt;&lt;P&gt;Error   All error values, such as #NUM! and #REF!, are equal. &lt;/P&gt;&lt;P&gt;Blank cells   In both an ascending and descending sort, blank cells are always placed last.&lt;/P&gt;&lt;P&gt; Note    A blank cell is an empty cell and is different than a cell with one or more space characters.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Possibly sap uses a different strategy for sorting hence you are getting different results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check this&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3800358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3800358411d1829f0000e829fbfe/content.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vaibhav B Gawali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 21:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455885#M1414736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T21:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAP and Excel sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455886#M1414737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're quite right...the Excel Sort sequence will remain incorrect....  I don't recall the details of MM17, but I'm guessing you're driving the changes directly from the spreadsheet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I were in a hurry to do this, I think I would write a little ABAP program to upload into an internal table, sort it the way I wanted, then download back to Excel.   Open with Windows Explorer and make it a "real" xlsx or xls sheet, then do the MM17.  Lots of steps but one way to ensure you get the SAP-version sequencing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 21:09:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-and-excel-sorting/m-p/6455886#M1414737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T21:09:57Z</dc:date>
    </item>
  </channel>
</rss>

