<?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: Dynamically create a table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628650#M874122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  gr_structdescr  TYPE REF TO cl_abap_structdescr,
  gr_tabldesct    TYPE REF TO cl_abap_tabledescr,
  gr_dref         TYPE REF TO data.

FIELD-SYMBOLS:
  &amp;lt;gt_table&amp;gt;  TYPE STANDARD TABLE.

gr_structdescr ?= cl_abap_structdescr=&amp;gt;describe_by_name( &amp;lt;f_table ).
gr_tabledescr ?= cl_abap_tabledescr=&amp;gt;create( gr_structdest ).

CREATE DATA gr_dref TYPE HANDLE gr_tabledescr.
ASSIGN gr_dref-&amp;gt;* TO &amp;lt;gt_table&amp;gt;.

* now field-symbol &amp;lt;GT_TABLE&amp;gt; points to an internal standard
* table with the same structure as the DDIC table specified in
* &amp;lt;F_TABLE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 23:23:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T23:23:18Z</dc:date>
    <item>
      <title>Dynamically create a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628649#M874121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hye all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i have a field symbol which has the name of my data base table.&amp;lt;f_table&amp;gt;&lt;/P&gt;&lt;P&gt;1.Now i want an internal table which is again a field symbol with structure of the database table  &amp;lt;f_table&amp;gt;.&lt;/P&gt;&lt;P&gt;2. I want to update the contents of data base table with the name &amp;lt;f_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;imran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 23:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628649#M874121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T23:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically create a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628650#M874122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  gr_structdescr  TYPE REF TO cl_abap_structdescr,
  gr_tabldesct    TYPE REF TO cl_abap_tabledescr,
  gr_dref         TYPE REF TO data.

FIELD-SYMBOLS:
  &amp;lt;gt_table&amp;gt;  TYPE STANDARD TABLE.

gr_structdescr ?= cl_abap_structdescr=&amp;gt;describe_by_name( &amp;lt;f_table ).
gr_tabledescr ?= cl_abap_tabledescr=&amp;gt;create( gr_structdest ).

CREATE DATA gr_dref TYPE HANDLE gr_tabledescr.
ASSIGN gr_dref-&amp;gt;* TO &amp;lt;gt_table&amp;gt;.

* now field-symbol &amp;lt;GT_TABLE&amp;gt; points to an internal standard
* table with the same structure as the DDIC table specified in
* &amp;lt;F_TABLE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 23:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628650#M874122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T23:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically create a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628651#M874123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All the columns are not getting copied, into the output field symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Any better solution to over come this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 00:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628651#M874123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T00:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically create a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628652#M874124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please quote the code that is executed to fill the internal table! I don´t think this issues reason is the dynamically creation of the internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 05:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628652#M874124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T05:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically create a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628653#M874125</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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FIELD-SYMBOLS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&amp;lt;gt_table&amp;gt;  TYPE STANDARD TABLE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gr_structdescr ?= cl_abap_structdescr=&amp;gt;describe_by_name( &amp;lt;f_table ).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gr_tabledescr ?= cl_abap_tabledescr=&amp;gt;create( gr_structdest ).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CREATE DATA gr_dref TYPE HANDLE gr_tabledescr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ASSIGN gr_dref-&amp;gt;&lt;/STRONG&gt; TO &amp;lt;gt_table&amp;gt;.*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply back..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Rgds,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 05:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628653#M874125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T05:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically create a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628654#M874126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@S BHARANIDARAN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ATTENTION:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code quoted by you only creates and initializes the internal table, it does not &lt;STRONG&gt;fill&lt;/STRONG&gt; the internal table!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 06:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-create-a-table/m-p/3628654#M874126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T06:49:16Z</dc:date>
    </item>
  </channel>
</rss>

