<?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: How to create a dynamic table? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239115#M1526039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uwe,&lt;/P&gt;&lt;P&gt;thanx for your answer.  The example provided in the link ( &lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Creating" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Creating&lt;/A&gt;&lt;EM&gt;Flat&lt;/EM&gt;and&lt;EM&gt;Complex&lt;/EM&gt;Internal&lt;EM&gt;Tables&lt;/EM&gt;Dynamically&lt;EM&gt;using&lt;/EM&gt;RTTI ) is very interesting BUT it deals with a DBtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an at runtime generated internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to get the statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; go_sdescr ?= cl_abap_structdescr=&amp;gt;describe_by_name( p_tabnam ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to work with this internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go_tdescr ?= cl_abap_typedescr=&amp;gt;describe_by_data( I_T_DATA_CHARSEL ).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesnt contain the fields ... what am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 18:32:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-22T18:32:31Z</dc:date>
    <item>
      <title>How to create a dynamic table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239110#M1526034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts!&lt;/P&gt;&lt;P&gt;I would be very grateful for assistance with a complicated requirement I have gotten. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working within a user exit in BI-IP and one of the parameter in the method is a table (whose structure is dynamic):&lt;/P&gt;&lt;P&gt;C_TH_DATA	Changing	Type	HASHED TABLE	Transaction Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to the requirements I have I need to create a table based on the C_TH_DATA table BUT with a few additional fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted my first attempt below (it is syntactically correct).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does my approach make sense???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grateful for any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method IF_RSPLFA_SRVTYPE_IMP_EXEC_REF~EXECUTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field-symbols:&lt;/P&gt;&lt;P&gt;    &amp;lt;f_ref_data&amp;gt;        type  any,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_interim_data&amp;gt;    type  any,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_new_data&amp;gt;        type  any,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_itab&amp;gt;            type  any table,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_infoprov&amp;gt;        type  RSINFOPROV,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_infoprov_ref&amp;gt;    type  RSINFOPROV,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_ref_data_BCCMP07&amp;gt;  type  any,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_ref_data_BCCMC02&amp;gt;  type  any,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_spc&amp;gt;             type  /bic/oiBHSPC0,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_spc_ref&amp;gt;         type  /bic/oiBHSPC0,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_blcopem1&amp;gt;        type  /bic/oiblcopem1,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_blcopem1_ref&amp;gt;    type  /bic/oiblcopem1,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_blcalpo0&amp;gt;        type  /bic/oiblcalpo0,&lt;/P&gt;&lt;P&gt;    &amp;lt;f_blcalpo0_ref&amp;gt;    type  /bic/oiblcalpo0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data:&lt;/P&gt;&lt;P&gt;    l_r_data1            type  ref to data,&lt;/P&gt;&lt;P&gt;    l_r_data2            type  ref to data,&lt;/P&gt;&lt;P&gt;    l_d_sumcostpo        type  f,&lt;/P&gt;&lt;P&gt;    l_d_deltacostpo      type  f,&lt;/P&gt;&lt;P&gt;    l_d_sumdeltacostpo   type  f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Generate new (empty record)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  create data l_r_data1 like line of c_th_data.&lt;/P&gt;&lt;P&gt;  assign l_r_data1-&amp;gt;* to &amp;lt;f_new_data&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TYPES:&lt;/P&gt;&lt;P&gt;    BEGIN OF l_modif_c_th_data,&lt;/P&gt;&lt;P&gt;      l_r_itab    type  ref to data,&lt;/P&gt;&lt;P&gt;      thiscostpo  type  /bic/oiblcopem1,&lt;/P&gt;&lt;P&gt;      thiscostto  type  /bic/oiblcopem2,&lt;/P&gt;&lt;P&gt;      thiscostcm  type  /bic/oiblcopem3,&lt;/P&gt;&lt;P&gt;      thismanpo   type  /bic/oiblmansec1,&lt;/P&gt;&lt;P&gt;      thismanto   type  /bic/oiblmansec2,&lt;/P&gt;&lt;P&gt;      thismancm   type  /bic/oiblmansec3,&lt;/P&gt;&lt;P&gt;    END OF l_modif_c_th_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data:&lt;/P&gt;&lt;P&gt;    l_r_itab    type  ref to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  create data l_r_itab type table of l_modif_c_th_data.&lt;/P&gt;&lt;P&gt;  assign l_r_itab-&amp;gt;* to &amp;lt;f_itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Generate new (empty record)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  create data l_r_data2 type l_modif_c_th_data.&lt;/P&gt;&lt;P&gt;  assign l_r_data2-&amp;gt;* to &amp;lt;f_interim_data&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 19:59:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239110#M1526034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T19:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dynamic table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239111#M1526035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you want is to include all the components from table C_TH_DATA + some additional ones. What you do here&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;BEGIN OF l_modif_c_th_data,&lt;/P&gt;&lt;P&gt;l_r_itab type ref to data,&lt;/P&gt;&lt;P&gt;thiscostpo type /bic/oiblcopem1,&lt;/P&gt;&lt;P&gt;thiscostto type /bic/oiblcopem2,&lt;/P&gt;&lt;P&gt;thiscostcm type /bic/oiblcopem3,&lt;/P&gt;&lt;P&gt;thismanpo type /bic/oiblmansec1,&lt;/P&gt;&lt;P&gt;thismanto type /bic/oiblmansec2,&lt;/P&gt;&lt;P&gt;thismancm type /bic/oiblmansec3,&lt;/P&gt;&lt;P&gt;END OF l_modif_c_th_data.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is creating a type (for a table) where one component is a "pointer" to other table + new components. As long as you address l_r_itab table independently of other components you can leave with that. However this rather creates a &lt;STRONG&gt;deep&lt;/STRONG&gt; table (with reference to other table as a component) then a &lt;STRONG&gt;flat&lt;/STRONG&gt; one (where all components are of elementary data types).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to search a little bit around &lt;EM&gt;CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE&lt;/EM&gt; where you can provide any component listing as ALV fieldcatalog generating this way new table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use dynamic data generation by means of &lt;STRONG&gt;RTTS&lt;/STRONG&gt; . Please refer my blog [Do you really know everything about typing? - part 2|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/20887] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 20:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239111#M1526035</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-21T20:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dynamic table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239112#M1526036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have a look at the Wiki&lt;/P&gt;&lt;P&gt;[Creating Flat and Complex Internal Tables Dynamically using RTTI |http://wiki.sdn.sap.com/wiki/display/Snippets/Creating&lt;EM&gt;Flat&lt;/EM&gt;and&lt;EM&gt;Complex&lt;/EM&gt;Internal&lt;EM&gt;Tables&lt;/EM&gt;Dynamically&lt;EM&gt;using&lt;/EM&gt;RTTI]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not yet tried to generate a HASHED table but I think even this should be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 21:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239112#M1526036</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2010-09-21T21:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dynamic table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239113#M1526037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi marcin,&lt;/P&gt;&lt;P&gt;thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying your examples ( /people/marcin.pciak/blog/2010/09/09/do-you-really-know-everything-about-typing--part-2 ) but your example dumps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gr_elemdescr_p   TYPE REF TO cl_abap_elemdescr.&lt;/P&gt;&lt;P&gt;DATA gr_elemdescr_i   TYPE REF TO cl_abap_elemdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_components   TYPE cl_abap_structdescr=&amp;gt;component_table,&lt;/P&gt;&lt;P&gt;        wa_component    LIKE LINE OF gt_components.&lt;/P&gt;&lt;P&gt;  DATA: gr_structdescr  TYPE REF TO cl_abap_structdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_component-name = 'HEADCOUNT'.&lt;/P&gt;&lt;P&gt;  wa_component-type = gr_elemdescr_i.&lt;/P&gt;&lt;P&gt;  APPEND wa_component TO gt_components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_component-name = 'CAPACITY'.&lt;/P&gt;&lt;P&gt;  wa_component-type = gr_elemdescr_p.&lt;/P&gt;&lt;P&gt;  APPEND wa_component TO gt_components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gr_structdescr = cl_abap_structdescr=&amp;gt;create( gt_components ).  &amp;lt;= causes error CX_SY_STRUCT_COMP_TYPE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gr_data TYPE REF TO data.&lt;/P&gt;&lt;P&gt;  CREATE DATA gr_data TYPE HANDLE gr_structdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect Im doin something wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 16:54:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239113#M1526037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-22T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dynamic table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239114#M1526038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are missing component creation. At the end of the blog there is a full code which you can use, but what you need is &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*-- elementary type reference variables
  DATA: gr_elemdescr_i   TYPE REF TO cl_abap_elemdescr,
        gr_elemdescr_p   TYPE REF TO cl_abap_elemdescr,
        gr_elemdescr_n   TYPE REF TO cl_abap_elemdescr.

*-- generate fields
  gr_elemdescr_p = cl_abap_elemdescr=&amp;gt;get_p( p_length = 6 p_decimals = 2 ). "
  gr_elemdescr_i = cl_abap_elemdescr=&amp;gt;get_i( ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now &lt;EM&gt;gr_elemdescr_i&lt;/EM&gt; and &lt;EM&gt;gr_elemdescr_p&lt;/EM&gt; can be passed to &lt;EM&gt;wa_component-type&lt;/EM&gt; , otherwise there are empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: what you can also do is:&lt;/P&gt;&lt;P&gt;- use &lt;EM&gt;describe_by_data&lt;/EM&gt; method of &lt;EM&gt;cl_abap_typedescr&lt;/EM&gt; for &lt;EM&gt;C_TH_DATA&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;- call &lt;EM&gt;get_table_line&lt;/EM&gt; (or similar method - don't know it by heart) to get the line type&lt;/P&gt;&lt;P&gt;- get all the components of the structure&lt;/P&gt;&lt;P&gt;- add new components as shown in the blog appending new rows to component table&lt;/P&gt;&lt;P&gt;- generate brand new structure based on this component table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marcin Pciak on Sep 22, 2010 8:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 18:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239114#M1526038</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-22T18:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dynamic table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239115#M1526039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uwe,&lt;/P&gt;&lt;P&gt;thanx for your answer.  The example provided in the link ( &lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Creating" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Creating&lt;/A&gt;&lt;EM&gt;Flat&lt;/EM&gt;and&lt;EM&gt;Complex&lt;/EM&gt;Internal&lt;EM&gt;Tables&lt;/EM&gt;Dynamically&lt;EM&gt;using&lt;/EM&gt;RTTI ) is very interesting BUT it deals with a DBtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an at runtime generated internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to get the statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; go_sdescr ?= cl_abap_structdescr=&amp;gt;describe_by_name( p_tabnam ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to work with this internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go_tdescr ?= cl_abap_typedescr=&amp;gt;describe_by_data( I_T_DATA_CHARSEL ).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesnt contain the fields ... what am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 18:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239115#M1526039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-22T18:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dynamic table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239116#M1526040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, this should go like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: go_tdescr type ref to cl_abap_tabledescr,
         go_sdescr type ref to cl_abap_structdescr,
         go_edescr type ref to cl_abap_elemdescr.

data gt_components type cl_abap_structdescr=&amp;gt;component_table.

"get table description based on table data
go_tdescr ?= cl_abap_typedescr=&amp;gt;describe_by_data(  C_TH_DATA ). 
"get its line type
go_sdescr = go_tdescr-&amp;gt;GET_TABLE_LINE_TYPE( ).
"and components
gt_components = go_sdescr-&amp;gt;get_components( ).

"now add new components
"here you must provide DDIC type
go_edescr ?= cl_abap_typedescr=&amp;gt;describe_by_name( '/BIC/POBLCOPEM1' ). 
wa_component-name = 'THISCOSTPO'.
wa_component-type = go_edescr.
APPEND wa_component TO gt_components.

"do the same for rest of the components
...

"now generate new structure type
gr_sdescr = cl_abap_structdescr=&amp;gt;create( gt_components ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;That's it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 18:59:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239116#M1526040</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-22T18:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dynamic table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239117#M1526041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my case the structure creation still throws the exception "CX_SY_STRUCT_COMP_TYPE". I use a a table type from the type pool (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;SPTA_T_INDXTAB&lt;/SPAN&gt;). Using an none table type from the type pool the error doesn't occure. Someone has an idea? Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA lt_component_tab TYPE abap_component_tab.&lt;/P&gt;&lt;P&gt;DATA ls_component TYPE abap_componentdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_component-name = 'tab'.&lt;/P&gt;&lt;P&gt;ls_component-type ?= cl_abap_typedescr=&amp;gt;describe_by_name( 'SPTA_T_INDXTAB' ).&lt;/P&gt;&lt;P&gt;APPEND ls_component TO lt_component_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_structdescr = cl_abap_structdescr=&amp;gt;create( lt_component_tab ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 14:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-dynamic-table/m-p/7239117#M1526041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-26T14:59:15Z</dc:date>
    </item>
  </channel>
</rss>

