<?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: Sortable alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572850#M1271199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when click on the header of the column and u have to hit the sort button ascending or descing accordingly..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2009 06:30:40 GMT</pubDate>
    <dc:creator>former_member242255</dc:creator>
    <dc:date>2009-05-15T06:30:40Z</dc:date>
    <item>
      <title>Sortable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572848#M1271197</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;When i clicked on a column of the alv grid(on header of the grid), it should be sorted based on the clicked column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is available in sost transaction etc, how can i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;deniz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 06:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572848#M1271197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T06:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sortable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572849#M1271198</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;Build Sort Catalog as below , For example to subtotal at MATNR&lt;/P&gt;&lt;P&gt;And Show only subtotal line&lt;/P&gt;&lt;P&gt;data gt_sort type slis_t_sortinfo_alv. "sort catalog&lt;/P&gt;&lt;P&gt;data sort type slis_sortinfo_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Pass Sort sequence as below.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear sort.&lt;/P&gt;&lt;P&gt;sort-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;sort-tabname = 'INTERNAL TABLE NAME'&lt;/P&gt;&lt;P&gt;sort-up = 'X'.&lt;/P&gt;&lt;P&gt;SORT-SUBTOT = 'X'.&lt;/P&gt;&lt;P&gt;SORT-EXPA = 'X'. " This will hide details lines&lt;/P&gt;&lt;P&gt;append sort to t_sort.&lt;/P&gt;&lt;P&gt;clear sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass This t_sort ITAB in FM REUSE_ALV_GRID_DISPLAY as&lt;/P&gt;&lt;P&gt;it_sort = t_sort[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, at output screen, Click the column you wish to sort and then click Sort Icon ( at the top header level above your column names) to arrange the column in ascending or decending order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 06:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572849#M1271198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T06:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sortable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572850#M1271199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when click on the header of the column and u have to hit the sort button ascending or descing accordingly..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 06:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572850#M1271199</guid>
      <dc:creator>former_member242255</dc:creator>
      <dc:date>2009-05-15T06:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sortable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572851#M1271200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk this link&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="635875"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 06:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572851#M1271200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T06:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sortable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572852#M1271201</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;Declare the I_sort internal table.&lt;/P&gt;&lt;P&gt;1) I_SORT TYPE SLIS_T_SORTINFO_ALV WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign the field to b sorted according to.&lt;/P&gt;&lt;P&gt;2)  I_SORT-SPOS        = 1.&lt;/P&gt;&lt;P&gt;  I_SORT-FIELDNAME   = 'MATDES'.&lt;/P&gt;&lt;P&gt;  I_SORT-TABNAME     = 'ITAB'.&lt;/P&gt;&lt;P&gt;  I_SORT-UP          = 'X'.&lt;/P&gt;&lt;P&gt;  I_SORT-SUBTOT      = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND I_SORT.&lt;/P&gt;&lt;P&gt;  CLEAR I_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign sort table as follows-&lt;/P&gt;&lt;P&gt;3) CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         I_CALLBACK_PROGRAM                = SY-REPID&lt;/P&gt;&lt;P&gt;         I_CALLBACK_TOP_OF_PAGE            = 'TOP-OF-PAGE'&lt;/P&gt;&lt;P&gt;         IT_FIELDCAT                       = FIELDCATALOG[]&lt;/P&gt;&lt;P&gt;         I_DEFAULT                         = 'X'&lt;/P&gt;&lt;P&gt;         I_SAVE                            = 'A'&lt;/P&gt;&lt;P&gt;         IS_LAYOUT                         = I_LAYOUT&lt;/P&gt;&lt;P&gt;         IT_EVENTS                         = EVENTS[]&lt;/P&gt;&lt;P&gt;         IT_SORT                           = I_SORT[]&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          T_OUTTAB                         = ITAB&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         PROGRAM_ERROR                     = 1&lt;/P&gt;&lt;P&gt;         OTHERS                            = 2&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 06:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572852#M1271201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T06:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sortable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572853#M1271202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB BY PARAMETER_CODE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM F9002_MODIFY_FIELD_CAT TABLES P_FIELDCAT STRUCTURE LVC_S_FCAT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS : &amp;lt;LFS_FIELDCAT&amp;gt; TYPE LVC_S_FCAT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  LOOP AT P_FIELDCAT ASSIGNING &amp;lt;LFS_FIELDCAT&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    CASE &amp;lt;LFS_FIELDCAT&amp;gt;-FIELDNAME.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      WHEN 'PARAM_CODE'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;        &amp;lt;LFS_FIELDCAT&amp;gt;-NO_OUT  = 'X'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;fareed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 06:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sortable-alv/m-p/5572853#M1271202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T06:37:24Z</dc:date>
    </item>
  </channel>
</rss>

