<?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: Simple question about ALV sorting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456235#M1250311</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;Sort cannot be performed on the quantity,float and currency fields on which aggregate Function applies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2009 17:53:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-13T17:53:21Z</dc:date>
    <item>
      <title>Simple question about ALV sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456233#M1250309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I retrieve data from SFLIGHT table and display it in ALV by using cl_salv_table class. I added a sorting column PRICE as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 data r_salv_sort type ref to cl_salv_sorts.
 r_salv_sort = r_salv_table-&amp;gt;get_sorts( ).
 r_salv_sort-&amp;gt;add_sort('PRICE').
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and got exception message:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Subtotals cannot be calculated on aggregatable columns&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;it is fine when I change from PRICE column to CONNID column.&lt;/P&gt;&lt;P&gt;What could be the reason for that? I just want to sort the Price column. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 17:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456233#M1250309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T17:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question about ALV sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456234#M1250310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this discussion on SORT for Numeric Column: &lt;SPAN __jive_macro_name="thread" id="1286365"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 17:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456234#M1250310</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-04-13T17:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question about ALV sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456235#M1250311</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;Sort cannot be performed on the quantity,float and currency fields on which aggregate Function applies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 17:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456235#M1250311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T17:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question about ALV sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456236#M1250312</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 read the thread and it is a workaround, not a solution by the way. Move the numeric column to another non-numeric column, sort it and hide the numeric column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still can do the sorting via user interface by right click on the numeric column. So is there anyway to do that in code? thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 18:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456236#M1250312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T18:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question about ALV sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456237#M1250313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree to the point mentioned by avinash !&lt;/P&gt;&lt;P&gt;What you can do is create a field with char attributes and assign the price value to it.&lt;/P&gt;&lt;P&gt;Now to sort the table you can use this field.&lt;/P&gt;&lt;P&gt;While displayin in ALV you can hide this field.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;You can always use sort option after the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Mohan Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 18:27:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456237#M1250313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T18:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question about ALV sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456238#M1250314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 20:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456238#M1250314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T20:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question about ALV sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456239#M1250315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can do the sorting on the Quantity or Amount column once it ALV is displayed. Because now the control is no more with the SALV model. It is with the ALV framework. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALV model doesn't allow the sorting on the columns on which you can perform the Agreegation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can save the default layout variant and then start the ALV with that variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 17:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-about-alv-sorting/m-p/5456239#M1250315</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-04-14T17:56:12Z</dc:date>
    </item>
  </channel>
</rss>

