<?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: CL_SALV_TABLE remove Sort/Filter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-remove-sort-filter/m-p/9253164#M1721012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like this "Exclusion" only works for the Toolbar buttons, but not for the context menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method DISPATCH of class CL_GUI_ALV_GRID generates the context menu when you right click on the column. While generating the Context menu, the Toolbar exclusion is not considered at all. This behavior is even true for the Grid generated by class CL_GUI_ALV_GRID. But when generate the ALV using the class CL_GUI_ALV_GRID, you can register event CONTEXT_MENU_REQUEST to catch just before context menu is displayed. You can than remove the unwanted options from the context menu using the methods of the importing parameter E_OBJECT (demo program BCALV_GRID_06).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALV Model doesn't have any wrapper event / method which would allow you to do exactly like this. You can, however, try to get the Grid object from the SALV model and register the event to gain the access of the native events. Read &lt;A href="http://zevolving.com/2008/12/salv-table-10-editable-salv-model-overcome-the-restriction-of-salv-model/"&gt;SALV Table 10 – Editable SALV Model (Overcome the restriction of SALV Model)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2013 14:41:57 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2013-01-24T14:41:57Z</dc:date>
    <item>
      <title>CL_SALV_TABLE remove Sort/Filter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-remove-sort-filter/m-p/9253163#M1721011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="GingerNoCheckEnd"&gt;&lt;/SPAN&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to remove the sort and filter options from cl_salv_table output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_functions_so&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_sort_asc&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;abap_false &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_functions_so&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_sort_desc&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;abap_false &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_functions_so&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_group_sort&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;abap_false &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_functions_SO&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;SET_GROUP_FILTER&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;ABAP_FALSE &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_functions_so&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_group_subtotal&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;abap_false &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;I use the above code but when I right click on any column, the sort and filter functions are available.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Plz help how can I disable these options.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 12:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-remove-sort-filter/m-p/9253163#M1721011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-24T12:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: CL_SALV_TABLE remove Sort/Filter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-remove-sort-filter/m-p/9253164#M1721012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like this "Exclusion" only works for the Toolbar buttons, but not for the context menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method DISPATCH of class CL_GUI_ALV_GRID generates the context menu when you right click on the column. While generating the Context menu, the Toolbar exclusion is not considered at all. This behavior is even true for the Grid generated by class CL_GUI_ALV_GRID. But when generate the ALV using the class CL_GUI_ALV_GRID, you can register event CONTEXT_MENU_REQUEST to catch just before context menu is displayed. You can than remove the unwanted options from the context menu using the methods of the importing parameter E_OBJECT (demo program BCALV_GRID_06).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALV Model doesn't have any wrapper event / method which would allow you to do exactly like this. You can, however, try to get the Grid object from the SALV model and register the event to gain the access of the native events. Read &lt;A href="http://zevolving.com/2008/12/salv-table-10-editable-salv-model-overcome-the-restriction-of-salv-model/"&gt;SALV Table 10 – Editable SALV Model (Overcome the restriction of SALV Model)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 14:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-remove-sort-filter/m-p/9253164#M1721012</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2013-01-24T14:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: CL_SALV_TABLE remove Sort/Filter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-remove-sort-filter/m-p/9253165#M1721013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply, will you please provide me the sample code that how to connect the salv to alv object grid. I understand your logic but I am unable to connect the alv object grid event to salv grid.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 08:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-remove-sort-filter/m-p/9253165#M1721013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-28T08:20:42Z</dc:date>
    </item>
  </channel>
</rss>

