<?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 structure dynamically by using table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997426#M1804138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ella,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search on google , Dynamic table using RTTS, there are a lot of example to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Deependra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2014 11:03:16 GMT</pubDate>
    <dc:creator>deependra_shekhawat3</dc:creator>
    <dc:date>2014-01-20T11:03:16Z</dc:date>
    <item>
      <title>Create structure dynamically by using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997425#M1804137</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;I have a program with a structure which is defined as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="font-size: 10pt;"&gt;TYPES&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;test&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0vtype&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;3&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;n&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0calmonth2&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;n&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0calyear&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;n&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;test&lt;/SPAN&gt;&lt;SPAN style=": ; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style=": ; font-size: 10pt;"&gt;I'd like to create this structure dynamically. I have a table test_table which contains the objects. How could I create the structure dynamically by using the table?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style=": ; font-size: 10pt;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style=": ; font-size: 10pt;"&gt;Best regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style=": ; font-size: 10pt;"&gt;Ella &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 10:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997425#M1804137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-20T10:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create structure dynamically by using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997426#M1804138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ella,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search on google , Dynamic table using RTTS, there are a lot of example to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Deependra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 11:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997426#M1804138</guid>
      <dc:creator>deependra_shekhawat3</dc:creator>
      <dc:date>2014-01-20T11:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create structure dynamically by using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997427#M1804139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt;data : it_tabdescr type abap_compdescr_tab,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_tabdescr type abap_compdescr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt;&lt;BR /&gt;data : ref_table_descr type ref to cl_abap_structdescr.&lt;BR /&gt;&lt;BR /&gt;* Return structure of the table.&lt;BR /&gt;&amp;nbsp; ref_table_descr ?= cl_abap_typedescr=&amp;gt;describe_by_name( p_table ).&lt;BR /&gt;&amp;nbsp; it_tabdescr[] = ref_table_descr-&amp;gt;components[].&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 11:05:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997427#M1804139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-20T11:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create structure dynamically by using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997428#M1804140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you have the table then you can create a dynamic structure using that as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FIELD-SYMBOLS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&amp;lt;lfs_rslt&amp;gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;any&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CREATE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;lv_ref &lt;SPAN class="L0S52"&gt;TYPE Line of Table_name&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;ASSIGN &lt;/SPAN&gt;lv_ref&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;To &lt;/SPAN&gt;&amp;lt;lfs_rslt&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 13:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997428#M1804140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-20T13:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create structure dynamically by using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997429#M1804141</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;but the the table is an internal table. And I get a short dump that the typ is not valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Ella&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 07:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997429#M1804141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-22T07:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create structure dynamically by using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997430#M1804142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;A href="http://search.sap.com/ui/scn#query=CL_ABAP_TYPEDESCR+DESCRIBE_BY_NAME"&gt;CL_ABAP_TYPEDESCR-&amp;gt;DESCRIBE_BY_NAME&lt;/A&gt; or similar method to get every component description from your itab, then use &lt;A href="http://search.sap.com/ui/scn#query=CL_ABAP_STRUCTDESCR+CREATE"&gt;CL_ABAP_STRUCTDESCR-&amp;gt;CREATE&lt;/A&gt; to create the structure. There are already some threads and wiki with sample, use search tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 07:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-structure-dynamically-by-using-table/m-p/9997430#M1804142</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-01-22T07:41:18Z</dc:date>
    </item>
  </channel>
</rss>

