<?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: How to sort by column click using CL_SALV_TABLE API in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234216#M1209746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TRY.
      CALL METHOD cl_salv_table=&amp;gt;factory
*   EXPORTING
*     list_display   = IF_SALV_C_BOOL_SAP=&amp;gt;FALSE
*     r_container    =
*     container_name =
        IMPORTING
          r_salv_table   = g_alv
        CHANGING
          t_table        = gt_report
          .
    CATCH cx_salv_msg .
  ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2009 05:54:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-24T05:54:47Z</dc:date>
    <item>
      <title>How to sort by column click using CL_SALV_TABLE API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234210#M1209740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am creating an ALV display for the user by using the new OOPS API (CL_SALV_TABLE class). I want to provide the functionality of sorting the columns when the user clicks on the column headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the documentation the class CL_SALV_FUNCTIONAL_SETTINGS has a method called SET_SORT_ON_HEADER_CLICK. I have used this method in my program, but it is not working for me. Has anyone used this functionality in their reports, if yes please advise me how to do it. I can't figure out what I am doing wrong. I don't want to use events here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 14:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234210#M1209740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T14:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort by column click using CL_SALV_TABLE API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234211#M1209741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this [link|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/eac1fa0b-0e01-0010-0990-8530de4908a6]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 15:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234211#M1209741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T15:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort by column click using CL_SALV_TABLE API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234212#M1209742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The effect of this method SET_SORT_ON_HEADER_CLICK is only restricted to the GRID output, not the full screen nor the List.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this way before calling the DISPLAY method:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  data: lr_functional_settings type ref to cl_salv_functional_settings.
  lr_functional_settings = gr_table-&amp;gt;get_functional_settings( ).
  lr_functional_settings-&amp;gt;SET_SORT_ON_HEADER_CLICK( 'X' ).
&lt;/CODE&gt;&lt;/PRE&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>Wed, 18 Feb 2009 15:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234212#M1209742</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-02-18T15:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort by column click using CL_SALV_TABLE API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234213#M1209743</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 have already written that piece of code, but it is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 05:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234213#M1209743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T05:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort by column click using CL_SALV_TABLE API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234214#M1209744</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 already have this document, but it does not explain about the functionality that I want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 06:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234214#M1209744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T06:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort by column click using CL_SALV_TABLE API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234215#M1209745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show your code of the FACTORY mehtod call of the CL_SALV_TABLE ?&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, 23 Feb 2009 14:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234215#M1209745</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-02-23T14:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort by column click using CL_SALV_TABLE API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234216#M1209746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TRY.
      CALL METHOD cl_salv_table=&amp;gt;factory
*   EXPORTING
*     list_display   = IF_SALV_C_BOOL_SAP=&amp;gt;FALSE
*     r_container    =
*     container_name =
        IMPORTING
          r_salv_table   = g_alv
        CHANGING
          t_table        = gt_report
          .
    CATCH cx_salv_msg .
  ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 05:54:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234216#M1209746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T05:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort by column click using CL_SALV_TABLE API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234217#M1209747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did anyone find the issue here. I am also facing the same problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 05:53:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234217#M1209747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-20T05:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort by column click using CL_SALV_TABLE API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234218#M1209748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the class documentation, this method only works in the grid control in the container, not in the fullscreen or classic list display of your output table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 class="r" style=" font-weight: normal; color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;cl_salv_table=&amp;gt;factory(&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r_container = ob_container&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; container_name = 'CONTAINER'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r_salv_table = gr_salv_table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHANGING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_table = int_tab ). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 14:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-by-column-click-using-cl-salv-table-api/m-p/5234218#M1209748</guid>
      <dc:creator>former_member223917</dc:creator>
      <dc:date>2013-11-13T14:03:58Z</dc:date>
    </item>
  </channel>
</rss>

