<?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 use a table name in the select statement using a variable? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936853#M387373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried and it gave an error, I gues no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if this solves ur query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2007 11:42:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-23T11:42:49Z</dc:date>
    <item>
      <title>How to use a table name in the select statement using a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936844#M387364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   I got a internal table which has a field or a variable that gets me some tables names. Now I need to retrieve the data from all these tables in that field dynamically at runtime. So could you suggest me a way out to use the select query which uses this variable as a table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mallik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 12:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936844#M387364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T12:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a table name in the select statement using a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936845#M387365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select * from (v_table_name) into table itab where ....&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 12:58:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936845#M387365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T12:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a table name in the select statement using a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936846#M387366</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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LV_TABNAME = 'MARA'.
Select * from ( LV_TABNAME ) ....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 12:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936846#M387366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a table name in the select statement using a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936847#M387367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic values to the SELECT query are passed with in brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA V_TABNAME TYPE DD02L-TABNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_TABNAME = 'VBAK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM (V_TABNAME) INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 13:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936847#M387367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T13:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a table name in the select statement using a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936848#M387368</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;          Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 13:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936848#M387368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T13:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a table name in the select statement using a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936849#M387369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameters: Tab_name TYPE DD02L-TABNAME.

SELECT * FROM (Tab_name) INTO TABLE ITAB where ____&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 13:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936849#M387369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T13:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a table name in the select statement using a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936850#M387370</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;Actually i need some more clarification. How to use the same select statement, if i've to use the tabname in the where clause too? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex : select * from (tab_name) where....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we do inner join on such select statements? If so how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Mallik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 10:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936850#M387370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T10:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a table name in the select statement using a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936851#M387371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;tables: mara.
DATA  TABNAME(10).
SELECT-options: s_matnr FOR MARA-matnr.
TABNAME = 'MARA'.
SELECT * INTO TABLE ITAB FROM (TABNAME)
 WHERE matnr IN s_matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 11:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936851#M387371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T11:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a table name in the select statement using a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936852#M387372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi judith, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             Thanks for the reply, But can we use inner join or for all entries in such select statements which use variable in place of table name? if so how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Mallik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 11:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936852#M387372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T11:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a table name in the select statement using a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936853#M387373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried and it gave an error, I gues no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if this solves ur query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 11:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-a-table-name-in-the-select-statement-using-a-variable/m-p/1936853#M387373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T11:42:49Z</dc:date>
    </item>
  </channel>
</rss>

