<?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/5171417#M1197455</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 this class to create an internal table dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*TRY.
CALL METHOD cl_abap_tabledescr=&amp;gt;create
  EXPORTING
    p_line_type  =
*    p_table_kind = TABLEKIND_STD
*    p_unique     = ABAP_FALSE
*    p_key        =
*    p_key_kind   = KEYDEFKIND_DEFAULT
  receiving
    p_result     =
    .
* CATCH cx_sy_table_creation .
*ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2009 23:10:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-23T23:10:46Z</dc:date>
    <item>
      <title>Dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/5171415#M1197453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a program with a deep internal table with the following structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE     TIME    VALUE_PROF&lt;/P&gt;&lt;P&gt;2/2         15:30    &lt;/P&gt;&lt;P&gt;2/2         15:45&lt;/P&gt;&lt;P&gt;3/2         15:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And VALUE_PROF has the following structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROFILE        VALUE&lt;/P&gt;&lt;P&gt;00000150        145.6&lt;/P&gt;&lt;P&gt;00000151        145.6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show this data through an ALV Control. I have been thinking on how to make the catalog, but I couldn't figure it out. So I thought to move this table to another one with the following structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE    TIME     00000150    0000151&lt;/P&gt;&lt;P&gt;2/2        15:30         145.6          145.6&lt;/P&gt;&lt;P&gt;3/2        15:30         145.7          145.7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And so on. How can I do this? I mean, how can I know how many columns will have the table? I can count the deep table's records, but how I translate it into the amount of columns?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 17:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/5171415#M1197453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T17:01:24Z</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/5171416#M1197454</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;In the following link you will be able to get the Sample Code by using this you can create Dynamic Internal Table, May it will help you to solve out your problem, Test the Sample Code of &lt;STRONG&gt;Lakshman&lt;/STRONG&gt; i have tested it is working fine may it will give you error when copy and past to your editor but you just need to comment out the commented lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Dynamic Internal Table|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1183813"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 17:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/5171416#M1197454</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-23T17:19:21Z</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/5171417#M1197455</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 this class to create an internal table dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*TRY.
CALL METHOD cl_abap_tabledescr=&amp;gt;create
  EXPORTING
    p_line_type  =
*    p_table_kind = TABLEKIND_STD
*    p_unique     = ABAP_FALSE
*    p_key        =
*    p_key_kind   = KEYDEFKIND_DEFAULT
  receiving
    p_result     =
    .
* CATCH cx_sy_table_creation .
*ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 23:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/5171417#M1197455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T23:10:46Z</dc:date>
    </item>
  </channel>
</rss>

