<?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 dynamic table from existing one in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684213#M30563</link>
    <description>&lt;P&gt;Yeah, at least in our dev. system&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(row_descriptor)= cl_abap_structdescr=&amp;gt;get(components).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;schould be&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(row_descriptor)= cl_abap_structdescr=&amp;gt;create(components).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Kind regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
    <pubDate>Wed, 07 Nov 2018 09:05:21 GMT</pubDate>
    <dc:creator>former_member358426</dc:creator>
    <dc:date>2018-11-07T09:05:21Z</dc:date>
    <item>
      <title>Create dynamic table from existing one</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684209#M30559</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;
  &lt;P&gt;I have following internal table:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/238663-dynmic-table.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Is there any possibility in ABAP (Framework, Class, etc), so I can fast create a new internal table at runtime which would look like this:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/238665-dynmic-table-1.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Would appreciate any kind of help.&lt;/P&gt;
  &lt;P&gt;Thanks and BR.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 16:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684209#M30559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-06T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic table from existing one</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684210#M30560</link>
      <description>&lt;P&gt;Yes. There is. It's called RTTS.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 20:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684210#M30560</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-11-06T20:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic table from existing one</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684211#M30561</link>
      <description>&lt;P&gt;Check the RTTS wiki. Will help&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=42965" target="test_blank"&gt;https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=42965&lt;/A&gt;&lt;/P&gt;&lt;P&gt;this page in particular&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.scn.sap.com/wiki/display/Snippets/Creating+a+dynamic+internal+table+based+on+data" target="test_blank"&gt;https://wiki.scn.sap.com/wiki/display/Snippets/Creating+a+dynamic+internal+table+based+on+data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 23:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684211#M30561</guid>
      <dc:creator>former_member593648</dc:creator>
      <dc:date>2018-11-06T23:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic table from existing one</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684212#M30562</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;thanks for your fast responce!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RTTS looks as a good way. I've tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(vbeln_descriptor) = CAST cl_abap_datadescr( cl_abap_typedescr=&amp;gt;describe_by_name( 'VBELN' ) ).
      DATA(posnr_descriptor) = CAST cl_abap_datadescr( cl_abap_typedescr=&amp;gt;describe_by_name( 'POSNR' ) ).


      DATA(components) = VALUE abap_component_tab( ( name = 'VBELN'
                                                     type = vbeln_descriptor )
                                                   ( name = 'POSNR'
                                                     type = posnr_descriptor ) ).


*      DATA(value_descriptor) = CAST cl_abap_typedescr( cl_abap_typedescr=&amp;gt;describe_by_name( 'VALUE' ) ).
      DATA(value_descriptor) = CAST cl_abap_datadescr( cl_abap_typedescr=&amp;gt;describe_by_name( 'VALUE' ) ).


      LOOP AT mt_so_itm_qppd_attr INTO DATA(vbeln_row).
        INSERT VALUE #(
            name = vbeln_row-element
            type = value_descriptor )
          INTO TABLE components.
      ENDLOOP.


      DATA(row_descriptor) = cl_abap_structdescr=&amp;gt;get( components ).
      DATA(table_descriptor) = cl_abap_tabledescr=&amp;gt;create( row_descriptor ).


      DATA itab TYPE REF TO data.
      CREATE DATA itab TYPE HANDLE table_descriptor.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But it still not doing what I expect.&lt;/P&gt;&lt;P&gt;Do yu have any Idea where the mistake could be?&lt;/P&gt;&lt;P&gt;Thanks and BR.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 07:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684212#M30562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-07T07:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic table from existing one</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684213#M30563</link>
      <description>&lt;P&gt;Yeah, at least in our dev. system&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(row_descriptor)= cl_abap_structdescr=&amp;gt;get(components).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;schould be&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(row_descriptor)= cl_abap_structdescr=&amp;gt;create(components).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Kind regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 09:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684213#M30563</guid>
      <dc:creator>former_member358426</dc:creator>
      <dc:date>2018-11-07T09:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic table from existing one</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684214#M30564</link>
      <description>&lt;P&gt;Thanks for reply Stefan!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, the table now looks good, but I asking myself why the values were not taken into it. Was it in your case the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR. Denis.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 10:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684214#M30564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-07T10:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic table from existing one</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684215#M30565</link>
      <description>&lt;P&gt;Yes because you have created an empty table now. So you should populate it with your data &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;BR /&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 11:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-table-from-existing-one/m-p/684215#M30565</guid>
      <dc:creator>former_member358426</dc:creator>
      <dc:date>2018-11-07T11:20:00Z</dc:date>
    </item>
  </channel>
</rss>

