<?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: Sorting ALV's in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-alv-s/m-p/2052935#M423434</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;spos - Sort order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_sort TYPE slis_t_sortinfo_alv,&lt;/P&gt;&lt;P&gt;wa_sort TYPE slis_sortinfo_alv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_sort-fieldname = 'BUKRS'.&lt;/P&gt;&lt;P&gt;wa_sort-tabname = 'IT_SORT'.&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;wa_sort-fieldname = 'BELNR'.&lt;/P&gt;&lt;P&gt;wa_sort-tabname = 'IT_SORT'.&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;CALL FUNCTION 'REUSE_ALV_LIST_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;is_layout = gs_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = ct_fieldcat&lt;/P&gt;&lt;P&gt;it_sort = it_sort[]&lt;/P&gt;&lt;P&gt;i_save = 'A'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**reward if helpful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2007 15:38:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-13T15:38:29Z</dc:date>
    <item>
      <title>Sorting ALV's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-alv-s/m-p/2052933#M423432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;somebody can tell me, what are, g_it_wa_sort-spos AND  g_it_wa_sort-group  for?&lt;/P&gt;&lt;P&gt;I need to do a special sorting. &lt;/P&gt;&lt;P&gt;Check this sample. If i have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD1     INVES-002&lt;/P&gt;&lt;P&gt;FIELD1     INVES-002&lt;/P&gt;&lt;P&gt;FIELD2     INVES-002&lt;/P&gt;&lt;P&gt;FIELD2     INVES-002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i use g_it_wa_sort I get in my ALV&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------" /&gt;&lt;P&gt;FIELD1    INVES-002&lt;/P&gt;&lt;P&gt;(EMPTY ROW)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------" /&gt;&lt;P&gt;FIELD2&lt;/P&gt;&lt;P&gt;(EMPTY ROW)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what i need is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------" /&gt;&lt;P&gt;FIELD1    INVES-002&lt;/P&gt;&lt;P&gt;(EMPTY ROW)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------" /&gt;&lt;P&gt;FIELD2    &amp;lt;b&amp;gt;INVES-002&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;(EMPTY ROW)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because, field has changed from FIELD1 to FIELD2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 15:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-alv-s/m-p/2052933#M423432</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2007-03-13T15:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting ALV's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-alv-s/m-p/2052934#M423433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody's got an idea?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 15:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-alv-s/m-p/2052934#M423433</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2007-03-13T15:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting ALV's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-alv-s/m-p/2052935#M423434</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;spos - Sort order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_sort TYPE slis_t_sortinfo_alv,&lt;/P&gt;&lt;P&gt;wa_sort TYPE slis_sortinfo_alv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_sort-fieldname = 'BUKRS'.&lt;/P&gt;&lt;P&gt;wa_sort-tabname = 'IT_SORT'.&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;wa_sort-fieldname = 'BELNR'.&lt;/P&gt;&lt;P&gt;wa_sort-tabname = 'IT_SORT'.&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;CALL FUNCTION 'REUSE_ALV_LIST_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;is_layout = gs_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = ct_fieldcat&lt;/P&gt;&lt;P&gt;it_sort = it_sort[]&lt;/P&gt;&lt;P&gt;i_save = 'A'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**reward if helpful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 15:38:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-alv-s/m-p/2052935#M423434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T15:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting ALV's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-alv-s/m-p/2052936#M423435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, i alredy knew that, but this don't solve my problem. &lt;/P&gt;&lt;P&gt;Should i do any special group in the alv?&lt;/P&gt;&lt;P&gt;Help please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 15:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-alv-s/m-p/2052936#M423435</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2007-03-13T15:49:24Z</dc:date>
    </item>
  </channel>
</rss>

