<?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: Difference between sort function &amp; sorting performed in ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329738#M1395925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the problem is with the third field, if there is no conversion exit, did you try some SORT options that may(*) be used by ALV like STABLE or AS TEXT (language dependance)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(*) I'm nearly sure ALV use those options.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2009 12:00:00 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2009-10-29T12:00:00Z</dc:date>
    <item>
      <title>Difference between sort function &amp; sorting performed in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329733#M1395920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a requirement where i need to match the sorted data of internal table, which is sorted by sort function, &amp;amp; sorted data that is sorted on screen,i.e.with ALV.&lt;/P&gt;&lt;P&gt;How can i acheieve that?&lt;/P&gt;&lt;P&gt;Thanks In Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nidhi Kothiyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 09:55:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329733#M1395920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T09:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between sort function &amp; sorting performed in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329734#M1395921</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;In an ALV, when we select a column and then sort, then the report is sorted based on the column selected.&lt;/P&gt;&lt;P&gt;Whereas in an internal table in your code you would be sorting according to some specific field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would ahev to ascertain as to which column is being sorted in ALV and then use similar sort statement in your code logic to get same sequence of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this Helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 10:22:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329734#M1395921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T10:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between sort function &amp; sorting performed in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329735#M1395922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the user command subroutine for that ALV..&lt;/P&gt;&lt;P&gt;capture the SORT command and see which field its sorting.. (you need to debug a bit for this) then sort the table sabed on that field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more option is data_changed event.. this captures all the changes made to your table..  track it there and update your internal table..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 10:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329735#M1395922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T10:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between sort function &amp; sorting performed in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329736#M1395923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default data is sorted by internal values, no problem, the exceptions come from table ASEXDOM (from release 4.7 on) - so try to change data element or domain with another which is no exception, or use a field with external values in your ALV and hide internal values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 10:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329736#M1395923</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-10-29T10:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between sort function &amp; sorting performed in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329737#M1395924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Actually i am sorting three fields in alv, one numeric, one alphanumeric &amp;amp; onr character. if i sort with first two both sortings are same,, but when i sort all three the order in ALV becomes different of internal table.&lt;/P&gt;&lt;P&gt;any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nidhi Kothiyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 11:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329737#M1395924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T11:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between sort function &amp; sorting performed in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329738#M1395925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the problem is with the third field, if there is no conversion exit, did you try some SORT options that may(*) be used by ALV like STABLE or AS TEXT (language dependance)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(*) I'm nearly sure ALV use those options.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 12:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329738#M1395925</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-10-29T12:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between sort function &amp; sorting performed in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329739#M1395926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Actually i am sorting three fields in alv, one numeric, one alphanumeric &amp;amp; onr character. if i sort with first two both sortings are same,, but when i sort all three the order in ALV becomes different of internal table.&lt;/P&gt;&lt;P&gt;any suggestion?&lt;/P&gt;&lt;P&gt;can you provide some sample code!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nidhi Kothiyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 12:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329739#M1395926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T12:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between sort function &amp; sorting performed in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329740#M1395927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at F1 on [SORT|http://help.sap.com/abapdocu/en/ABAPSORT_ITAB_SHORTREF.htm]&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT gt_makt STABLE " before key fields list
  BY matnr
     spras
     maktx AS TEXT. " language dependant&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 07:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sort-function-sorting-performed-in-alv/m-p/6329740#M1395927</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-11-03T07:17:40Z</dc:date>
    </item>
  </channel>
</rss>

