<?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: Problem with JOIN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098260#M735119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't use "JOIN" statement with pool &amp;amp; cluster table !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;EDID4 is a cluster table&amp;lt;/b&amp;gt; ( join isn't allowed on this table ) You can see that in SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use "&amp;lt;b&amp;gt;for all entries"&amp;lt;/b&amp;gt; statement instead .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2007 13:14:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-05T13:14:50Z</dc:date>
    <item>
      <title>Problem with JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098259#M735118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I have such problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: a_edidd LIKE edidd OCCURS 0 WITH HEADER LINE.

SELECT * FROM edid4 
JOIN edidc ON edidc~docnum = edid4~docnum     &amp;lt;= ERROR
INTO CORRESPONDING FIELDS OF TABLE a_edidd 
WHERE edid4~credat EQ '20071123'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR:&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;You cannot use comparisons with column references in pool and clustertables: "EDID4~DOCNUM".	&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do with it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 13:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098259#M735118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T13:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098260#M735119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't use "JOIN" statement with pool &amp;amp; cluster table !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;EDID4 is a cluster table&amp;lt;/b&amp;gt; ( join isn't allowed on this table ) You can see that in SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use "&amp;lt;b&amp;gt;for all entries"&amp;lt;/b&amp;gt; statement instead .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 13:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098260#M735119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T13:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098261#M735120</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 not join on Cluster tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 13:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098261#M735120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T13:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098262#M735121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Piotr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: a_edidd LIKE edidd OCCURS 0 WITH HEADER LINE.
 
SELECT * FROM edid4 &amp;lt;b&amp;gt;AS edid4&amp;lt;/b&amp;gt;
JOIN edidc &amp;lt;b&amp;gt;AS edidc&amp;lt;/b&amp;gt;
ON edidc~docnum = edid4~docnum     &amp;lt;= ERROR
INTO CORRESPONDING FIELDS OF TABLE a_edidd 
WHERE edid4~credat EQ '20071123'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: edid4 is cluster table so it won't work (but AS is a necessary statemet for joining tables)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 13:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098262#M735121</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-12-05T13:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098263#M735122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;edid4&amp;lt;/b&amp;gt; is a claster table. U can't join with that table. But U may select twice - one from &amp;lt;b&amp;gt;eddic&amp;lt;/b&amp;gt;, second - from &amp;lt;b&amp;gt;edid4&amp;lt;/b&amp;gt; for all entryes in &amp;lt;b&amp;gt;eddic&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Or find transparent table of that cluster. Sorry for may language...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 13:16:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098263#M735122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T13:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098264#M735123</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 cannot join transparent table and cluster table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead you can use FOR ALL ENTRIES to get the cluster table data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this example..BKPF is a transparent table and BSEG is a cluster table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BELNR GJAHR BUKRS&lt;/P&gt;&lt;P&gt;             INTO TABLE T_BKPF&lt;/P&gt;&lt;P&gt;             WHERE ERDAT = SY-DATUM.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF NOT T_BKPF[] IS INITIAL.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  SELECT BELNR GJAHR BUKRS BUZEI&lt;/P&gt;&lt;P&gt;               FROM BSEG&lt;/P&gt;&lt;P&gt;               INTO TABLE T_BSEG&lt;/P&gt;&lt;P&gt;               FOR ALL ENTRIES IN T_BKPF&lt;/P&gt;&lt;P&gt;               WHERE BELNR = T_BKPF-BELN&lt;/P&gt;&lt;P&gt;               AND       BUKRS = T_BKPF-BUKRS&lt;/P&gt;&lt;P&gt;              AND        GJAHR = T_BKPF-GJAHR.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 13:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join/m-p/3098264#M735123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T13:31:22Z</dc:date>
    </item>
  </channel>
</rss>

