<?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: delcare table base on parameter field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893516#M680073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gary , &lt;/P&gt;&lt;P&gt;  I am not able to understand the need to have a table/structure as a paramterer , could you please share some more info on your requirement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 03:20:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-10T03:20:39Z</dc:date>
    <item>
      <title>delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893513#M680070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to declare the table base on the parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: p_tablen TYPE tabname.&lt;/P&gt;&lt;P&gt;data : it_st like table of &amp;lt;b&amp;gt;p_tablen&amp;lt;/b&amp;gt; with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 03:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893513#M680070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T03:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893514#M680071</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;You can just create &lt;/P&gt;&lt;P&gt;PARAMETER: p_tablen TYPE &amp;lt;b&amp;gt;tabname.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;data : it_st like table of &amp;lt;b&amp;gt;tabname.&amp;lt;/b&amp;gt; with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 03:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893514#M680071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T03:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893515#M680072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I receive a syntax error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"TABNAME" must be a flat structure. You cannot use a structure or&lt;/P&gt;&lt;P&gt;internal table as a component.		&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;PARAMETER: p_tablen TYPE tabname.&lt;/P&gt;&lt;P&gt;data : it_st like table of tabname with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 03:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893515#M680072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T03:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893516#M680073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gary , &lt;/P&gt;&lt;P&gt;  I am not able to understand the need to have a table/structure as a paramterer , could you please share some more info on your requirement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 03:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893516#M680073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T03:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893517#M680074</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;The TABNAME should be a valid type in SAP.&lt;/P&gt;&lt;P&gt;Can you tell me as what is your requirement,. why do you want declaration like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 03:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893517#M680074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T03:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893518#M680075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: p_tablen TYPE tabname.&lt;/P&gt;&lt;P&gt;data : it_st like table of dd03l-tabname with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 03:21:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893518#M680075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T03:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893519#M680076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I gt many table in my database, the user can enter a tablename to the paramater.&lt;/P&gt;&lt;P&gt;So i need to declare the table for my sql statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hw to declare the table base on the parameter value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 03:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893519#M680076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T03:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893520#M680077</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;I think you are looking for dynamic internal tables.&lt;/P&gt;&lt;P&gt;Just search forum with dynamic internal table and you will get lots of idea on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 03:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893520#M680077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T03:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893521#M680078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry for wrong understanding . I think you are talking about dynamic int table . if it is so then pls check this blog by rich heilman.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap"&amp;gt;/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 03:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893521#M680078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T03:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893522#M680079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gray , &lt;/P&gt;&lt;P&gt;  If your requirement some thing like this , that the user enters a table name and you have to preocess data from the table .&lt;/P&gt;&lt;P&gt;If that is the case then i feel you need a paramtere which as input the name of table , you can define it using the data type TABNAME, please check the table DD02L .&lt;/P&gt;&lt;P&gt;and as per the post by Shiba , you can create a dynamic internal table to retreive the data and store it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;feel free to revert back in case you still have any further queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 03:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893522#M680079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T03:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893523#M680080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dynamic Internal table -weblog in sdn&lt;/P&gt;&lt;P&gt;/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if  useful..........&lt;/P&gt;&lt;P&gt;Minal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 04:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893523#M680080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T04:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893524#M680081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMHO we can't use a structure type as a parameter ,&lt;/P&gt;&lt;P&gt;especially when the structure does not consist of string fields only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the case why there is the need to define several select-options in the selection screen pointing to the same table ( ie : s_vbeln for vbak-vbeln, s_auart for vbak-auart ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of yours, if the parameter has a basic type, then the internal table definition should be just fine .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==== &lt;/P&gt;&lt;P&gt;I have just read this thread again and find out that your requirement is to define a dynamic table . &lt;/P&gt;&lt;P&gt;In that case, you can ignore this reply &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Tuwuh Sih Winedya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        TUWUHSIH WINEDYA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 04:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893524#M680081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T04:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: delcare table base on parameter field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893525#M680082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gary..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the Sample code for ur ReQ:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : REF_TAB TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FTAB&amp;gt; TYPE TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : L_TABNAME TYPE DD02L-TABNAME VALUE 'EKPO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA REF_TAB TYPE TABLE OF (L_TABNAME).&lt;/P&gt;&lt;P&gt;ASSIGN REF_TAB-&amp;gt;* TO &amp;lt;FTAB&amp;gt;.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;SELECT * FROM (L_TABNAME) INTO TABLE  &amp;lt;FTAB&amp;gt;.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE &amp;lt;FTAB&amp;gt;.&lt;/P&gt;&lt;P&gt;WRITE:/ SY-TFILL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REWARD IF HELPFUL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 05:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-table-base-on-parameter-field/m-p/2893525#M680082</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-10-10T05:08:20Z</dc:date>
    </item>
  </channel>
</rss>

