<?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: Dynamic Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099163#M1360069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I am trying to sort an amount field of type curr which is not possible by normal sort as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; l_field1 = 'DMBTR'.&lt;/P&gt;&lt;P&gt; SORT &amp;lt;dyn_table&amp;gt; BY (l_field1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please suggest a way to achieve the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;M.Navas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Sep 2009 10:16:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-02T10:16:29Z</dc:date>
    <item>
      <title>Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099159#M1360065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I am trying to sort the entries populated to dynamic internal table and collect the same.&lt;/P&gt;&lt;P&gt;  Is there any way to achieve the same.&lt;/P&gt;&lt;P&gt; Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Navas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 13:49:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099159#M1360065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T13:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099160#M1360066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA L_FILED TYPE CHAR25.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_FIELD = 'MATNR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT &amp;lt;FS_TABLE&amp;gt; BY (L_FIELD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kanagaraja L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 14:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099160#M1360066</guid>
      <dc:creator>Kanagaraja_L</dc:creator>
      <dc:date>2009-09-01T14:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099161#M1360067</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;Please look at the functionality existing in the standard program given by SAP.&lt;/P&gt;&lt;P&gt;Prog Name - BCALV_TABLE_CREATE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 14:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099161#M1360067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T14:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099162#M1360068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: it_tab TYPE abap_sortorder_tab.
FIELD-SYMBOLS:&amp;lt;itab&amp;gt; TYPE STANDARD TABLE.

*get data into your table then

SORT &amp;lt;itab&amp;gt; BY (it_tab).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if column names don't match it will throw an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope This helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 14:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099162#M1360068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T14:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099163#M1360069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I am trying to sort an amount field of type curr which is not possible by normal sort as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; l_field1 = 'DMBTR'.&lt;/P&gt;&lt;P&gt; SORT &amp;lt;dyn_table&amp;gt; BY (l_field1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please suggest a way to achieve the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;M.Navas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 10:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099163#M1360069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T10:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099164#M1360070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the follwoing coding and check in the debug mode it will sort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA l_field TYPE char25.
DATA:g_data           TYPE REF TO data.

FIELD-SYMBOLS &amp;lt;fs_table&amp;gt; TYPE STANDARD TABLE.
l_field = 'DMBTR'.
CREATE DATA g_data TYPE TABLE OF bsad.
ASSIGN g_data-&amp;gt;*  TO &amp;lt;fs_table&amp;gt;.
SELECT * FROM bsad INTO CORRESPONDING FIELDS OF TABLE &amp;lt;fs_table&amp;gt;.
SORT &amp;lt;fs_table&amp;gt; BY (l_field).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kanagaraja L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 10:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/6099164#M1360070</guid>
      <dc:creator>Kanagaraja_L</dc:creator>
      <dc:date>2009-09-02T10:54:44Z</dc:date>
    </item>
  </channel>
</rss>

