<?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: Sort Using Class CL_GUI_ALV_GRID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-using-class-cl-gui-alv-grid/m-p/6851447#M1474417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghava,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After fill the field the problem was solved and won't necessary to use the method set_sort_criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Denilson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 May 2010 16:38:07 GMT</pubDate>
    <dc:creator>Private_Member_527672</dc:creator>
    <dc:date>2010-05-03T16:38:07Z</dc:date>
    <item>
      <title>Sort Using Class CL_GUI_ALV_GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-using-class-cl-gui-alv-grid/m-p/6851445#M1474415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sum a columm of a internal table (it_outtab) Method : CL_GUI_ALV_GRID-&amp;gt;set_table_for_first_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the method &lt;STRONG&gt;set_sort_criteria&lt;/STRONG&gt;  to sort, but isn't working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code is correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: wa_sort.&lt;/P&gt;&lt;P&gt;wa_sort-SPOS = '01'.&lt;/P&gt;&lt;P&gt;wa_sort-FIELDNAME = 'MATNR'.&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;&lt;/P&gt;&lt;P&gt;clear: wa_sort.&lt;/P&gt;&lt;P&gt;wa_sort-SPOS = '02'.&lt;/P&gt;&lt;P&gt;wa_sort-FIELDNAME = 'WERKS'.&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;&lt;/P&gt;&lt;P&gt;clear: wa_sort.&lt;/P&gt;&lt;P&gt;wa_sort-FIELDNAME = 'LABST'.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD og_alv_grid-&amp;gt;set_sort_criteria&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_sort                   = it_sort&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      no_fieldcatalog_available = 1&lt;/P&gt;&lt;P&gt;      others                    = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sum the column LABST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Pacifier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 14:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-using-class-cl-gui-alv-grid/m-p/6851445#M1474415</guid>
      <dc:creator>Private_Member_527672</dc:creator>
      <dc:date>2010-05-03T14:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Using Class CL_GUI_ALV_GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-using-class-cl-gui-alv-grid/m-p/6851446#M1474416</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 you mentioned the field do_sum in fieldcat?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
fs_fcat type lvc_s_fcat.
fs_fcat-LABST = 'X'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghava Channooru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 15:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-using-class-cl-gui-alv-grid/m-p/6851446#M1474416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-03T15:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Using Class CL_GUI_ALV_GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-using-class-cl-gui-alv-grid/m-p/6851447#M1474417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghava,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After fill the field the problem was solved and won't necessary to use the method set_sort_criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Denilson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 16:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-using-class-cl-gui-alv-grid/m-p/6851447#M1474417</guid>
      <dc:creator>Private_Member_527672</dc:creator>
      <dc:date>2010-05-03T16:38:07Z</dc:date>
    </item>
  </channel>
</rss>

