<?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: creating dynamic internal table - convert internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-convert-internal-table/m-p/1269637#M150005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are on WAS6.40 you can create dynamic internal table of different type (standard , sorted, etc) using class&lt;/P&gt;&lt;P&gt;CL_ABAP_TABLEDESCR&lt;/P&gt;&lt;P&gt;method&lt;/P&gt;&lt;P&gt;CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do let me know if you need code sample on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;P&gt;(i dont know a way to achieve this using cl_alv_table_create)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Apr 2006 08:56:07 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2006-04-25T08:56:07Z</dc:date>
    <item>
      <title>creating dynamic internal table - convert internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-convert-internal-table/m-p/1269635#M150003</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 create a internal table like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

FIELD-SYMBOLS: &amp;lt;dyntable&amp;gt; TYPE standard table.

  CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
    EXPORTING
      it_fieldcatalog = lt
    IMPORTING
      ep_table = t_data
    EXCEPTIONS
      generate_subpool_dir_full = 1
    OTHERS = 2.

  IF sy-subrc &amp;lt;&amp;gt; 0.
  ENDIF.

assign t_data-&amp;gt;* to &amp;lt;dyntable&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result of the method is a standard table. Now I need a sorted table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to convert the internal table from a standard to a sorted table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 08:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-convert-internal-table/m-p/1269635#M150003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-25T08:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: creating dynamic internal table - convert internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-convert-internal-table/m-p/1269636#M150004</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;Basically the method inside calls the FM : ALV_TABLE_CREATE, which actually constructs the syntax of declaring an internal table and then generates this code within a form routine of the program that was called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is done using syntax : &lt;/P&gt;&lt;P&gt;   generate subroutine pool lt_source name l_name&lt;/P&gt;&lt;P&gt;             message l_message line l_line word l_word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can copy the FM ALV_TABLE_CREATE make the required modifications in the declaration  of statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 08:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-convert-internal-table/m-p/1269636#M150004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-25T08:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: creating dynamic internal table - convert internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-convert-internal-table/m-p/1269637#M150005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are on WAS6.40 you can create dynamic internal table of different type (standard , sorted, etc) using class&lt;/P&gt;&lt;P&gt;CL_ABAP_TABLEDESCR&lt;/P&gt;&lt;P&gt;method&lt;/P&gt;&lt;P&gt;CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do let me know if you need code sample on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;P&gt;(i dont know a way to achieve this using cl_alv_table_create)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 08:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-dynamic-internal-table-convert-internal-table/m-p/1269637#M150005</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-04-25T08:56:07Z</dc:date>
    </item>
  </channel>
</rss>

