<?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: ALV- SORTING - SPOS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sorting-spos/m-p/1057178#M90746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;spos is used to give&amp;nbsp; the sort sequence (if you want to sort more than one colume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: there are 2 colums&lt;/P&gt;&lt;P&gt;sid&amp;nbsp; bid&lt;/P&gt;&lt;P&gt;22&amp;nbsp; 101&lt;/P&gt;&lt;P&gt;22&amp;nbsp; 103&lt;/P&gt;&lt;P&gt;22&amp;nbsp; 104&lt;/P&gt;&lt;P&gt;31&amp;nbsp; 101 &lt;/P&gt;&lt;P&gt;31&amp;nbsp; 103&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if you want sorting in such a way that&amp;nbsp; first bid should get sort and then sid then give&lt;/P&gt;&lt;P&gt;for bid spos = 1 and for sid spos = 2&lt;/P&gt;&lt;P&gt;you get o/p as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sid&amp;nbsp;&amp;nbsp; bid&lt;/P&gt;&lt;P&gt;22&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&lt;/P&gt;&lt;P&gt;31&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&lt;/P&gt;&lt;P&gt;22&amp;nbsp;&amp;nbsp;&amp;nbsp; 103&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;observe this first 101 then 103 so fist bid took sid in that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2014 06:35:00 GMT</pubDate>
    <dc:creator>RachamallaKiran</dc:creator>
    <dc:date>2014-09-05T06:35:00Z</dc:date>
    <item>
      <title>ALV- SORTING - SPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sorting-spos/m-p/1057174#M90742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; In ALV reporting in the function &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;'REUSE-ALV-GRID-DISPLY'&amp;lt;/b&amp;gt; for sorting - we 'll pass value to the variable for 'IS_SORT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;EX:&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;DATA : LV_S_SORT TYPE SLIS_SORTINFO_ALV,&lt;/P&gt;&lt;P&gt;       LV_T_SORT TYPE SLIS_T_SORTINFO_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       CLEAR LV_S_SORT.&lt;/P&gt;&lt;P&gt;       &amp;lt;b&amp;gt;LV_S_SORT-SPOS = 1.&amp;lt;/b&amp;gt;       &lt;/P&gt;&lt;P&gt;       LV_S_SORT-FIELDNAME = 'CURRENCY'.&lt;/P&gt;&lt;P&gt;       LV_S_SORT-DOWN = 'X'.&lt;/P&gt;&lt;P&gt;       LV_S_SORT-SUBTOT =  'X'.&lt;/P&gt;&lt;P&gt;       APPEND LV_S_SORT TO LV_T_SORT.&lt;/P&gt;&lt;P&gt;       CLEAR LV_S_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Why value '1' is passed to 'SPOS' and what is its purpose?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2005 08:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sorting-spos/m-p/1057174#M90742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-12T08:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV- SORTING - SPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sorting-spos/m-p/1057175#M90743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its definition of sort order .If you want to sort on multiple fields you give SPOS as '1' / '2' and so on.  its something similar to -&lt;/P&gt;&lt;P&gt;Sort ITAB by F1 F2 F3 . So F1 will be SPOS = 1, F2 will be SPOS = 2 , and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2005 08:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sorting-spos/m-p/1057175#M90743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-12T08:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV- SORTING - SPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sorting-spos/m-p/1057176#M90744</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;you use spos if you want to sort order if the list is sorted by multiple columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using internal table IT_SORT, the caller determines the sort order and/or the subtotalling of the basic list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following fields of this internal table must be filled:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spos&lt;/P&gt;&lt;P&gt;Sort order&lt;/P&gt;&lt;P&gt;fieldname&lt;/P&gt;&lt;P&gt;Field name in the internal output table&lt;/P&gt;&lt;P&gt;up&lt;/P&gt;&lt;P&gt;'X' = Sorted in ascending order&lt;/P&gt;&lt;P&gt;down&lt;/P&gt;&lt;P&gt;'X' = Sorted in descending order&lt;/P&gt;&lt;P&gt;subtot&lt;/P&gt;&lt;P&gt;'X' = Subtotals for control level changes&lt;/P&gt;&lt;P&gt;comp (INTERNAL USE ONLY)&lt;/P&gt;&lt;P&gt;expa&lt;/P&gt;&lt;P&gt;Prequisite:&lt;/P&gt;&lt;P&gt;IT_SORT-SUBTOT = 'X', that is, the sort criterion is also the subtotals criterion.&lt;/P&gt;&lt;P&gt;If no complete breakdown but only a breakdown to totals level n that can be further expanded by the user should be displayed when the list is output for the first time, you must set the indicator for the totals level criterion of level n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2005 08:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sorting-spos/m-p/1057176#M90744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-12T08:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: ALV- SORTING - SPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sorting-spos/m-p/1057177#M90745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats for sorting more then one column. if you wanna sart tow columns you can tell the system it has to sort for column2 if the values fir column 1 are equal, e.g. sort by country and inside the country sort by lastname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not the order the columns are stored in the internal table in which comlums are sorted!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2005 09:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sorting-spos/m-p/1057177#M90745</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2005-10-12T09:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV- SORTING - SPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sorting-spos/m-p/1057178#M90746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;spos is used to give&amp;nbsp; the sort sequence (if you want to sort more than one colume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: there are 2 colums&lt;/P&gt;&lt;P&gt;sid&amp;nbsp; bid&lt;/P&gt;&lt;P&gt;22&amp;nbsp; 101&lt;/P&gt;&lt;P&gt;22&amp;nbsp; 103&lt;/P&gt;&lt;P&gt;22&amp;nbsp; 104&lt;/P&gt;&lt;P&gt;31&amp;nbsp; 101 &lt;/P&gt;&lt;P&gt;31&amp;nbsp; 103&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if you want sorting in such a way that&amp;nbsp; first bid should get sort and then sid then give&lt;/P&gt;&lt;P&gt;for bid spos = 1 and for sid spos = 2&lt;/P&gt;&lt;P&gt;you get o/p as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sid&amp;nbsp;&amp;nbsp; bid&lt;/P&gt;&lt;P&gt;22&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&lt;/P&gt;&lt;P&gt;31&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&lt;/P&gt;&lt;P&gt;22&amp;nbsp;&amp;nbsp;&amp;nbsp; 103&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;observe this first 101 then 103 so fist bid took sid in that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 06:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sorting-spos/m-p/1057178#M90746</guid>
      <dc:creator>RachamallaKiran</dc:creator>
      <dc:date>2014-09-05T06:35:00Z</dc:date>
    </item>
  </channel>
</rss>

