<?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  the fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751624#M325933</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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SORT ITAB BY field1 field2 DESCENDING.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assending is default&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2006 06:55:07 GMT</pubDate>
    <dc:creator>dani_mn</dc:creator>
    <dc:date>2006-12-19T06:55:07Z</dc:date>
    <item>
      <title>sorting  the fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751623#M325932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         do i have a way to sort the fields of an internal table like one which is carried out in alv.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;          In alv we have the options for sorting ascending and descending the fields which are selected and operation carried out according to the radio buttons  selected .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        can we do it  with internal table without using solution .if so please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for viewers,&lt;/P&gt;&lt;P&gt; magesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 06:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751623#M325932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T06:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: sorting  the fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751624#M325933</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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SORT ITAB BY field1 field2 DESCENDING.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assending is default&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 06:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751624#M325933</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-12-19T06:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: sorting  the fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751625#M325934</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;Use...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab BY field1 [ASCENDING/DESCENDING].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 06:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751625#M325934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T06:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: sorting  the fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751626#M325935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i cant get you properly but for internal table you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;sort itab by &amp;lt;f&amp;gt; descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 06:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751626#M325935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T06:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: sorting  the fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751627#M325936</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;Just use SORT itab BY fld1, fld2...&lt;/P&gt;&lt;P&gt;before looping on the internal table for display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 06:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751627#M325936</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2006-12-19T06:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: sorting  the fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751628#M325937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes u can sort the internal table by fields by using the following syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT &amp;lt;itab&amp;gt; [ASCENDING|DESCENDING] [AS TEXT] [STABLE]&lt;/P&gt;&lt;P&gt;             BY &amp;lt;f1&amp;gt; [ASCENDING|DESCENDING] [AS TEXT]&lt;/P&gt;&lt;P&gt;                ...&lt;/P&gt;&lt;P&gt;                &amp;lt;fn&amp;gt; [ASCENDING|DESCENDING] [AS TEXT].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information in sorting see this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;        LAND(3)  TYPE C,&lt;/P&gt;&lt;P&gt;        NAME(10) TYPE C,&lt;/P&gt;&lt;P&gt;        AGE      TYPE I,&lt;/P&gt;&lt;P&gt;        WEIGHT   TYPE P DECIMALS 2,&lt;/P&gt;&lt;P&gt;      END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ITAB LIKE STANDARD TABLE OF LINE WITH NON-UNIQUE KEY LAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE-LAND = 'G'.   LINE-NAME   = 'Hans'.&lt;/P&gt;&lt;P&gt;LINE-AGE  = 20.    LINE-WEIGHT = '80.00'.&lt;/P&gt;&lt;P&gt;APPEND LINE TO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE-LAND = 'USA'. LINE-NAME   = 'Nancy'.&lt;/P&gt;&lt;P&gt;LINE-AGE  = 35.    LINE-WEIGHT = '45.00'.&lt;/P&gt;&lt;P&gt;APPEND LINE TO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE-LAND = 'USA'. LINE-NAME   = 'Howard'.&lt;/P&gt;&lt;P&gt;LINE-AGE  = 40.    LINE-WEIGHT = '95.00'.&lt;/P&gt;&lt;P&gt;APPEND LINE TO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE-LAND = 'GB'.  LINE-NAME   = 'Jenny'.&lt;/P&gt;&lt;P&gt;LINE-AGE  = 18.    LINE-WEIGHT = '50.00'.&lt;/P&gt;&lt;P&gt;APPEND LINE TO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE-LAND = 'F'.   LINE-NAME   = 'Michele'.&lt;/P&gt;&lt;P&gt;LINE-AGE  = 30.    LINE-WEIGHT = '60.00'.&lt;/P&gt;&lt;P&gt;APPEND LINE TO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE-LAND = 'G'.   LINE-NAME   = 'Karl'.&lt;/P&gt;&lt;P&gt;LINE-AGE  = 60.    LINE-WEIGHT = '75.00'.&lt;/P&gt;&lt;P&gt;APPEND LINE TO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM LOOP_AT_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB.&lt;/P&gt;&lt;P&gt;PERFORM LOOP_AT_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB.&lt;/P&gt;&lt;P&gt;PERFORM LOOP_AT_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB STABLE.&lt;/P&gt;&lt;P&gt;PERFORM LOOP_AT_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB DESCENDING BY LAND WEIGHT ASCENDING.&lt;/P&gt;&lt;P&gt;PERFORM LOOP_AT_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM LOOP_AT_ITAB.&lt;/P&gt;&lt;P&gt;  LOOP AT ITAB INTO LINE.&lt;/P&gt;&lt;P&gt;    WRITE: / LINE-LAND, LINE-NAME, LINE-AGE, LINE-WEIGHT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  SKIP.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 06:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751628#M325937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T06:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: sorting  the fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751629#M325938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shiba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       u know that u will have the ascend and descend icon as an option in the alv when execute . when u click that it will make u to select fields which r all u need to ascend and which are to descend  with radio buttons .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       similarly can we carryout with internal table having four fields and selecting while runtime which r the fields to ascend and which to descend and execute it .&lt;/P&gt;&lt;P&gt;I think u r getting me . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for reply,&lt;/P&gt;&lt;P&gt; magesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 07:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751629#M325938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T07:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: sorting  the fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751630#M325939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in classical report ithink it is not possible but you can do it in interactive report.&lt;/P&gt;&lt;P&gt;in AT line-selection or at user-command just take the function code for that and sort your internal table there and show it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 07:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751630#M325939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T07:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: sorting  the fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751631#M325940</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;Use it in the following way:&lt;/P&gt;&lt;P&gt;SORT ITAB DESCENDING BY PLNDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 07:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-the-fields/m-p/1751631#M325940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T07:30:35Z</dc:date>
    </item>
  </channel>
</rss>

