<?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 Declare a &amp;quot;type&amp;quot; table using parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483580#M1850409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm wondering if its posible to declare a X table from a parameter the user send...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;PARAMETERS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: type_table TYPE STRING.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;DATA: temp_table TYPE type_table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Execute program&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;type_table: T001&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;so temp_table would be T001 type.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 22:01:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-07-28T22:01:36Z</dc:date>
    <item>
      <title>Declare a "type" table using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483580#M1850409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm wondering if its posible to declare a X table from a parameter the user send...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;PARAMETERS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: type_table TYPE STRING.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;DATA: temp_table TYPE type_table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Execute program&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;type_table: T001&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;so temp_table would be T001 type.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 22:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483580#M1850409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-28T22:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Declare a "type" table using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483581#M1850410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alonso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;You can create&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;dynamic&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;internal tables&lt;/SPAN&gt;. Review this link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/ABAP/Dynamic+Internal+table" title="http://wiki.scn.sap.com/wiki/display/ABAP/Dynamic+Internal+table"&gt;Dynamic Internal table - ABAP Development - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 22:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483581#M1850410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-28T22:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Declare a "type" table using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483582#M1850411</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;See also RTTS - Runtime Type Services .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTTC - Run Time Type Creation .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=42965"&gt;http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=42965&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FORM test_08 . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; CONSTANTS: c_tabname TYPE tabname VALUE 'SCARR' . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; DATA: ob_abap_structdescr TYPE REF TO cl_abap_structdescr . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; DATA: ref_struct TYPE REF TO data . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; FIELD-SYMBOLS: &amp;lt;struct&amp;gt; TYPE ANY . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; ob_abap_structdescr ?= cl_abap_elemdescr=&amp;gt;describe_by_name( c_tabname ). &lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp; CREATE DATA ref_struct TYPE HANDLE ob_abap_structdescr . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; ASSIGN ref_struct-&amp;gt;* TO &amp;lt;struct&amp;gt; . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; DATA: ob_abap_tabledescr&amp;nbsp; TYPE REF TO cl_abap_tabledescr . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; DATA: ref_table TYPE REF TO data . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; FIELD-SYMBOLS: &amp;lt;table&amp;gt; TYPE table . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; ob_abap_tabledescr = cl_abap_tabledescr=&amp;gt;create( ob_abap_structdescr ). &lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp; CREATE DATA ref_table TYPE HANDLE ob_abap_tabledescr . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; ASSIGN: ref_table-&amp;gt;* TO &amp;lt;table&amp;gt; . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; SELECT * INTO CORRESPONDING FIELDS OF TABLE &amp;lt;table&amp;gt; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; FROM (c_tabname) &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; UP TO 20 ROWS . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; LOOP AT &amp;lt;table&amp;gt; ASSIGNING &amp;lt;struct&amp;gt; . &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; ENDLOOP. &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;ENDFORM .&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "test_08 &lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 03:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483582#M1850411</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2014-07-29T03:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Declare a "type" table using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483583#M1850412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alonso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its better to create dynamic tables which would give you output at run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the below link for more clear understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="42525" __jive_macro_name="document" class="jive_macro_document jive_macro" data-orig-content="Dynamic Internal Table iIlustrated with an example of creating the transpose of internal table" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 04:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483583#M1850412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-29T04:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Declare a "type" table using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483584#M1850413</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;Please note that at the top of this article our lady guru &lt;A __default_attr="31835" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Susmitha Susan Thomas" href="https://community.sap.com/"&gt;&lt;/A&gt; recommend using RTTS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/507915" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 04:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483584#M1850413</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2014-07-29T04:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Declare a "type" table using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483585#M1850414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this snippet. It creates a data reference of table type specified by user, and then uses a select query to populate 10 records of that database table to data reference via field symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;PARAMETERS tabname TYPE dd02l-tabname OBLIGATORY DEFAULT 'MARA'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;DATA dref TYPE REF TO data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;CREATE DATA dref TYPE STANDARD TABLE OF (tabname).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FIELD-SYMBOLS &amp;lt;fs&amp;gt; TYPE ANY TABLE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ASSIGN dref-&amp;gt;* TO &amp;lt;fs&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SELECT * FROM (tabname) INTO TABLE &amp;lt;fs&amp;gt; up to 10 rows.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 04:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483585#M1850414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-29T04:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Declare a "type" table using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483586#M1850415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;The below given link, exactly deals with your problem.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm" title="http://www.saptechnical.com/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm"&gt;DynamicInternaltable&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 05:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483586#M1850415</guid>
      <dc:creator>philipdavy</dc:creator>
      <dc:date>2014-07-29T05:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Declare a "type" table using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483587#M1850416</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;One more ingredient....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/507964" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 05:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483587#M1850416</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2014-07-29T05:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Declare a "type" table using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483588#M1850417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alonso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to create a table with an unknown type, you need a field-symbol instead of a "normal" internal table. You define it as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FIELD-SYMBOLS &amp;lt;table&amp;gt; TYPE table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need your parameter for the type of the table. Define it as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA type_table TYPE ddobjname. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need an Object for your data. You define it as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA dref_t TYPE REF TO data.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRY.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATE DATA dref_t TYPE TABLE OF (type_table).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ASSIGN dref_t-&amp;gt;* TO &amp;lt;table&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATCH cx_sy_create_data_error.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;* Do some error handling&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDTRY.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now you can use &amp;lt;table&amp;gt; as internal table of the type given in the parameter type_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want some information about the structure of the table, you can use the function module DDIF_FIELDINFO_GET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Claudia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 06:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483588#M1850417</guid>
      <dc:creator>claudia_bolch</dc:creator>
      <dc:date>2014-07-29T06:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Declare a "type" table using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483589#M1850418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alonso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it easily using the following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt; &lt;SPAN style="font-family: Arial;"&gt;PARAMETERS : p_table(10) TYPE C.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&amp;nbsp; DATA: w_tabname TYPE w_tabname,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_dref TYPE REF TO data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&amp;nbsp; FIELD-SYMBOLS: &amp;lt;t_itab&amp;gt; TYPE ANY TABLE. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&amp;nbsp; w_tabname = p_table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&amp;nbsp; CREATE DATA w_dref TYPE TABLE OF (w_tabname).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&amp;nbsp; ASSIGN w_dref-&amp;gt;* TO &amp;lt;t_itab&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt;&lt;SPAN style="font-family: Arial;"&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Verdana, sans-serif; font-size: 13px; text-align: justify;"&gt;&lt;SPAN style="font-family: Arial;"&gt;Ashish&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 08:10:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483589#M1850418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-29T08:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Declare a "type" table using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483590#M1850419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was correct!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;PARAMETERS: tipo_tab&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;STRING&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10.0pt; background: white; font-family: 'Courier New';"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;SYMBOLS&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;: &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;lt;temp_table&amp;gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TYPE STANDARD TABLE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;DATA &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;struct &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TYPE REF TO DATA&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;CREATE DATA &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;struct &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TYPE STANDARD TABLE OF &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;tipo_tab&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;).&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;ASSIGN &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;struct&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: gray; background: white;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;* &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TO &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;lt;temp_table&amp;gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;&amp;lt;removed by moderator&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manish Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483590#M1850419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-30T15:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Declare a "type" table using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483591#M1850420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you all!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;PARAMETERS: tipo_tab&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;STRING&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10.0pt; background: white; font-family: 'Courier New';"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;SYMBOLS&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;: &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;lt;temp_table&amp;gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TYPE STANDARD TABLE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;DATA &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;struct &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TYPE REF TO DATA&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;CREATE DATA &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;struct &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TYPE STANDARD TABLE OF &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;tipo_tab&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;).&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;ASSIGN &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;struct&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: gray; background: white;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;* &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TO &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;lt;temp_table&amp;gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-quot-type-quot-table-using-parameter/m-p/10483591#M1850420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-30T15:30:28Z</dc:date>
    </item>
  </channel>
</rss>

