<?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 Dynamic Table by specific field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-dynamic-table-by-specific-field/m-p/1658307#M292027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's not possible because the table doesn't have a header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 17:28:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-13T17:28:12Z</dc:date>
    <item>
      <title>Sorting Dynamic Table by specific field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-dynamic-table-by-specific-field/m-p/1658305#M292025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to sort a dynamic table (without header line) by a certain field in order to achieve the client requierment. I really don't have any clue about how can i do this, because, it appears that is not possible to declarate a field symbol type standar table with a headerline...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 17:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-dynamic-table-by-specific-field/m-p/1658305#M292025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T17:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dynamic Table by specific field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-dynamic-table-by-specific-field/m-p/1658306#M292026</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;U can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB BY (FIELD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 17:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-dynamic-table-by-specific-field/m-p/1658306#M292026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T17:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dynamic Table by specific field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-dynamic-table-by-specific-field/m-p/1658307#M292027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's not possible because the table doesn't have a header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 17:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-dynamic-table-by-specific-field/m-p/1658307#M292027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T17:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dynamic Table by specific field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-dynamic-table-by-specific-field/m-p/1658308#M292028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES T001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: T_T001 LIKE STANDARD TABLE OF T001.

FIELD-SYMBOLS: &amp;lt;TABLE&amp;gt; TYPE TABLE.

DATA: FIELD1(30),
      FIELD2(30),
      FIELD3(30).

SELECT * FROM T001 INTO TABLE T_T001.

ASSIGN T_T001[] TO &amp;lt;TABLE&amp;gt;.

FIELD1 = 'BUTXT'.

SORT &amp;lt;TABLE&amp;gt; BY (FIELD1) (FIELD2) (FIELD3).

LOOP AT &amp;lt;TABLE&amp;gt; INTO T001.
  WRITE: / T001-BUTXT, T001-BUKRS.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have to decide how many fields can be used to sort the table: in my example I suppose the user can use max 3 fields in the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ALV use this way to sort the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 17:34:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-dynamic-table-by-specific-field/m-p/1658308#M292028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T17:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dynamic Table by specific field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-dynamic-table-by-specific-field/m-p/1658309#M292029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 19:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-dynamic-table-by-specific-field/m-p/1658309#M292029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T19:34:38Z</dc:date>
    </item>
  </channel>
</rss>

