<?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: ALV fixed default sorting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fixed-default-sorting/m-p/1781194#M336688</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;Thank you very much for the quick replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However due to the fact that the user shall be able to sort according to other criteria I cannot hide the sort buttons.&lt;/P&gt;&lt;P&gt;But I found a parameter in the IT_SORT table which allows a criterion to be obligatory. The sort buttons obey this setting, but the layout button does not.&lt;/P&gt;&lt;P&gt;Therefore your tip with the excluding parameter was really helpful nevertheless.&lt;/P&gt;&lt;P&gt;I now excluded the layout button leaving the user with the sorting I want and only being able to add other sort criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bastian Rohde&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Dec 2006 13:41:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-28T13:41:06Z</dc:date>
    <item>
      <title>ALV fixed default sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fixed-default-sorting/m-p/1781191#M336685</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 a customer report I use the REUSE_ALV_GRID_DISPLAY function module to display the output in ALV.&lt;/P&gt;&lt;P&gt;I would like to enter a fixed sorting criteria which cannot be changed by the user (e. g. via the IT_SORT parameter). He/she shall however be able to sort further according to additional criteria.&lt;/P&gt;&lt;P&gt;Is there an exit or something similar to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bastian Rohde&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 09:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fixed-default-sorting/m-p/1781191#M336685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T09:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: ALV fixed default sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fixed-default-sorting/m-p/1781192#M336686</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;What you need to do is take out the SORT buttons from the application toolbar.&lt;/P&gt;&lt;P&gt;That can be done, by passing the function codes of the SORT buttons to the IT_EXCLUDING parameter of the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 09:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fixed-default-sorting/m-p/1781192#M336686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T09:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV fixed default sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fixed-default-sorting/m-p/1781193#M336687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think u have to pass It_sort only and make use of IT_Excluding parameter ..see demo - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : WA_SORT TYPE SLIS_SORTINFO_ALV.&lt;/P&gt;&lt;P&gt;perform sort_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form sort_list .&lt;/P&gt;&lt;P&gt;CLEAR WA_SORT.&lt;/P&gt;&lt;P&gt;WA_SORT-FIELDNAME = 'DOB'.&lt;/P&gt;&lt;P&gt;WA_SORT-SPOS = '1'.&lt;/P&gt;&lt;P&gt;WA_SORT-UP = 'X'.&lt;/P&gt;&lt;P&gt;WA_SORT-SUBTOT = 'X'.&lt;/P&gt;&lt;P&gt;APPEND WA_SORT TO IT_SORT.&lt;/P&gt;&lt;P&gt;CLEAR WA_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_SORT-FIELDNAME = 'NAME'.&lt;/P&gt;&lt;P&gt;WA_SORT-SPOS = '1'.&lt;/P&gt;&lt;P&gt;WA_SORT-UP = 'X'.&lt;/P&gt;&lt;P&gt;APPEND WA_SORT TO IT_SORT.&lt;/P&gt;&lt;P&gt;CLEAR WA_SORT.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Amit Tyagi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 09:17:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fixed-default-sorting/m-p/1781193#M336687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T09:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV fixed default sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fixed-default-sorting/m-p/1781194#M336688</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;Thank you very much for the quick replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However due to the fact that the user shall be able to sort according to other criteria I cannot hide the sort buttons.&lt;/P&gt;&lt;P&gt;But I found a parameter in the IT_SORT table which allows a criterion to be obligatory. The sort buttons obey this setting, but the layout button does not.&lt;/P&gt;&lt;P&gt;Therefore your tip with the excluding parameter was really helpful nevertheless.&lt;/P&gt;&lt;P&gt;I now excluded the layout button leaving the user with the sorting I want and only being able to add other sort criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bastian Rohde&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 13:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fixed-default-sorting/m-p/1781194#M336688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T13:41:06Z</dc:date>
    </item>
  </channel>
</rss>

