<?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: Create internal table structure dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-structure-dynamically/m-p/2201033#M470282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look at below weblog from Rich:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you may have a look at below link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/ab030.htm" target="test_blank"&gt;http://www.sap-img.com/ab030.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2007 09:57:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-27T09:57:52Z</dc:date>
    <item>
      <title>Create internal table structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-structure-dynamically/m-p/2201032#M470281</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;can any one help me out with creating an internal table structure dynamically.&lt;/P&gt;&lt;P&gt;my requirement is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a parameter to select a condition table(parameter: p_table like MV12A-KOTABNR)....my program should create an internal table structure dynamically for the selected table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help would be appreciated &lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 09:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-structure-dynamically/m-p/2201032#M470281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T09:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create internal table structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-structure-dynamically/m-p/2201033#M470282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look at below weblog from Rich:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you may have a look at below link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/ab030.htm" target="test_blank"&gt;http://www.sap-img.com/ab030.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 09:57:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-structure-dynamically/m-p/2201033#M470282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T09:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create internal table structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-structure-dynamically/m-p/2201034#M470283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;  FIELD-SYMBOLS: &amp;lt;fs_table&amp;gt; TYPE STANDARD TABLE.
  FIELD-SYMBOLS: &amp;lt;fs_line&amp;gt; TYPE ANY.

  CREATE DATA dref_table TYPE TABLE OF (p_table).
  CREATE DATA dref_table_line TYPE (p_table).

  ASSIGN dref_table-&amp;gt;* TO &amp;lt;fs_table&amp;gt;.
  ASSIGN dref_table_line-&amp;gt;* TO &amp;lt;fs_line&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now &amp;lt;fs_table&amp;gt; will have the same structure as the database table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 09:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-structure-dynamically/m-p/2201034#M470283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T09:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create internal table structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-structure-dynamically/m-p/2201035#M470284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;try something like this

REPORT YCHATEST1.

PARAMETERS : P_TABLE LIKE DD02L-TABNAME.

DATA : IT_FIELDCAT TYPE LVC_T_FCAT,
       NEW_TABLE TYPE REF TO DATA.

FIELD-SYMBOLS : &amp;lt;FS&amp;gt; TYPE STANDARD TABLE.

ASSIGN (P_TABLE) TO &amp;lt;FS&amp;gt;.

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
  EXPORTING
    I_STRUCTURE_NAME = &amp;lt;FS&amp;gt;
  CHANGING
    CT_FIELDCAT      = IT_FIELDCAT.

CALL METHOD CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE
  EXPORTING
    IT_FIELDCATALOG = IT_FIELDCAT
  IMPORTING
    EP_TABLE        = NEW_TABLE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 10:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-structure-dynamically/m-p/2201035#M470284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T10:02:51Z</dc:date>
    </item>
  </channel>
</rss>

