<?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 Select Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2998893#M708436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freinds,&lt;/P&gt;&lt;P&gt;I have a small doubt.&lt;/P&gt;&lt;P&gt;What I am doing is....I have a custom table,which will contain entries this way.&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;CONDITION&amp;lt;/u&amp;gt;    &amp;lt;u&amp;gt;TABLE NAME&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;        A                             MARA&lt;/P&gt;&lt;P&gt;        B                             VBAK&lt;/P&gt;&lt;P&gt;        C                             EKKO&lt;/P&gt;&lt;P&gt;So,based on the condition I need to fire a Select Query on the respective table.&lt;/P&gt;&lt;P&gt;I am doing the selection in a subroutine.&lt;/P&gt;&lt;P&gt;Now,I am Selecting from v_tabname...v_tabname contains table name.&lt;/P&gt;&lt;P&gt;But,this is an error, coz Select query always allows to select from DB table.&lt;/P&gt;&lt;P&gt;Is there any way to dynamically get the table name in Select Query.&lt;/P&gt;&lt;P&gt;Any Object Programming ? &lt;/P&gt;&lt;P&gt;Eg., SELECT FROM &amp;lt;u&amp;gt;TABNAME&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2007 06:16:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-07T06:16:51Z</dc:date>
    <item>
      <title>Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2998893#M708436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freinds,&lt;/P&gt;&lt;P&gt;I have a small doubt.&lt;/P&gt;&lt;P&gt;What I am doing is....I have a custom table,which will contain entries this way.&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;CONDITION&amp;lt;/u&amp;gt;    &amp;lt;u&amp;gt;TABLE NAME&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;        A                             MARA&lt;/P&gt;&lt;P&gt;        B                             VBAK&lt;/P&gt;&lt;P&gt;        C                             EKKO&lt;/P&gt;&lt;P&gt;So,based on the condition I need to fire a Select Query on the respective table.&lt;/P&gt;&lt;P&gt;I am doing the selection in a subroutine.&lt;/P&gt;&lt;P&gt;Now,I am Selecting from v_tabname...v_tabname contains table name.&lt;/P&gt;&lt;P&gt;But,this is an error, coz Select query always allows to select from DB table.&lt;/P&gt;&lt;P&gt;Is there any way to dynamically get the table name in Select Query.&lt;/P&gt;&lt;P&gt;Any Object Programming ? &lt;/P&gt;&lt;P&gt;Eg., SELECT FROM &amp;lt;u&amp;gt;TABNAME&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 06:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2998893#M708436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T06:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2998894#M708437</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;sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSEL_BGJOB.&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;DATA: 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;Reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 06:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2998894#M708437</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-11-07T06:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2998895#M708438</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;U can refer these links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;http://www.sap-img.com/abap/how-can-we-give-dynamic-table-name-in-select-statement.htm&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/67/93b80914a911d2953c0000e8353423/content.htm&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vasudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 06:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2998895#M708438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T06:20:25Z</dc:date>
    </item>
  </channel>
</rss>

