<?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: Select-join from (TABNAME) problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-from-tabname-problem/m-p/1591593#M266136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; The problem is in JOIN ON, you have given b~bname = sy-uname, this should have been given in the WHERE clause not in the JOIN ON remove it from JOIN ON and put it in Where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Nov 2006 04:38:44 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2006-11-29T04:38:44Z</dc:date>
    <item>
      <title>Select-join from (TABNAME) problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-from-tabname-problem/m-p/1591589#M266132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder, if anybody can answer, why this code cann't be compiled:&lt;/P&gt;&lt;P&gt;SELECT DISTINCT (ls_dynqr-fields)&lt;/P&gt;&lt;P&gt;          INTO TABLE lt_doclist&lt;/P&gt;&lt;P&gt;          FROM (ls_dynqr-tablename) AS a&lt;/P&gt;&lt;P&gt;          INNER JOIN /abat/mcrm_mycus AS b&lt;/P&gt;&lt;P&gt;            ON a&lt;SUB&gt;kunnr = b&lt;/SUB&gt;kunnrx AND&lt;/P&gt;&lt;P&gt;               b~bname = sy-uname&lt;/P&gt;&lt;P&gt;          UP TO lv_pmax ROWS&lt;/P&gt;&lt;P&gt;          WHERE (ls_where-where_tab).&lt;/P&gt;&lt;P&gt;Tablename, list of fields and where-clauses are specified at runtime. Without JOIN it works fine, but with it it can not be compiled because of incorrect FROM condition, I meen unexpected 'JOIN' after 'FROM'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 15:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-from-tabname-problem/m-p/1591589#M266132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T15:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select-join from (TABNAME) problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-from-tabname-problem/m-p/1591590#M266133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure that you can do a dynamic inner join.  You might try splitting it up and using FOR ALL ENTRIES in your second select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 15:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-from-tabname-problem/m-p/1591590#M266133</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-26T15:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select-join from (TABNAME) problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-from-tabname-problem/m-p/1591591#M266134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joins are not possible in dynamic SELECT statements as it cannot validate the same during you compilation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 15:26:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-from-tabname-problem/m-p/1591591#M266134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T15:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select-join from (TABNAME) problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-from-tabname-problem/m-p/1591592#M266135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Aleksandr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use Table in from clause dynamically. But unable.&lt;/P&gt;&lt;P&gt;Can you please let me know what ls_dynqr-tablename is declared as?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 04:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-from-tabname-problem/m-p/1591592#M266135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T04:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select-join from (TABNAME) problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-from-tabname-problem/m-p/1591593#M266136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; The problem is in JOIN ON, you have given b~bname = sy-uname, this should have been given in the WHERE clause not in the JOIN ON remove it from JOIN ON and put it in Where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 04:38:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-from-tabname-problem/m-p/1591593#M266136</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2006-11-29T04:38:44Z</dc:date>
    </item>
  </channel>
</rss>

