<?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: Join Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490786#M1653209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hope you have got the solution to the issue u are facing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but see to it that to increase the performance of your query avoid using 'corresponding fields of' and 'join conditions' better make use of 'for all entries in'..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Dec 2011 10:18:48 GMT</pubDate>
    <dc:creator>mayankmrai</dc:creator>
    <dc:date>2011-12-28T10:18:48Z</dc:date>
    <item>
      <title>Join Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490783#M1653206</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 read the following doc about abap joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPSELECT_JOIN.htm" target="test_blank"&gt;http://help.sap.com/abapdocu_70/en/ABAPSELECT_JOIN.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and have coded something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT *
  INTO  CORRESPONDING FIELDS OF TABLE itab
  FROM  ( ( ( text AS p
            INNER JOIN book AS f ON p~book = f~book )

            INNER JOIN rep AS c ON c~id = f~id )
            INNER JOIN elt AS t ON t~tu = c~co )

WHERE p~vers = '1' AND
      f~vers = '1' AND
      c~vers = '1' AND
      t~vers = '1' AND
      p~langu   IN langu_s AND
      t~langu   IN langu_s.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to have all entries from rep !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I make a Left (outer) Join I have to remove the where clause, but i just want to get vers 1 from rep.&lt;/P&gt;&lt;P&gt;How else can I code it? The best thing would be to get all entries from rep and all from book, and join them if possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but ABAP Doc is talking only about inner and left outer join. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator Message: Please use a more meaningful subject line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Dec 29, 2011 2:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 09:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490783#M1653206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-28T09:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Join Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490784#M1653207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;but ABAP Doc is talking only about inner and left outer join&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Can you explain it.Yes you can check with for all entries.if it is more than three tables for all entries is better than join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 10:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490784#M1653207</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-12-28T10:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Join Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490785#M1653208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Alto,&lt;/P&gt;&lt;P&gt;      You can mention c~vers = '1'  in ON condition of Join itself. You don't have to mention it in where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Selva M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 10:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490785#M1653208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-28T10:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Join Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490786#M1653209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hope you have got the solution to the issue u are facing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but see to it that to increase the performance of your query avoid using 'corresponding fields of' and 'join conditions' better make use of 'for all entries in'..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 10:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490786#M1653209</guid>
      <dc:creator>mayankmrai</dc:creator>
      <dc:date>2011-12-28T10:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Join Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490787#M1653210</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;Fromthe discussion which i have a read and personal experince inner join most of the time performs better than for all entires. Please add a condtion for version thats it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 10:29:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490787#M1653210</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2011-12-28T10:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Join Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490788#M1653211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Nabheet, but if you use more than 3 tables which have huge data then you need to specify as many number of key fields as you can in the ON and WHERE conditions to avoid performance issue or to run faster than FOR ALL ENTRIES.&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;Selva M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 10:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490788#M1653211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-28T10:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Join Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490789#M1653212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JOIN statement bypass SAP buffering and access database table more faster. Of course, you can use BYPASSING BUFFER in FOR ALL ENTRIES too...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;depends on the requirement and just adjust accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 02:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490789#M1653212</guid>
      <dc:creator>former_member777515</dc:creator>
      <dc:date>2011-12-29T02:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Join Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490790#M1653213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a tool or transaction in SAP that will automatically generate select (join) statements.&lt;/P&gt;&lt;P&gt;I mean it should be possible to say how  to join this an that with a particular condition and&lt;/P&gt;&lt;P&gt;i will get a clear select statement, and I only have to adjust it a bit...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does something like that exists?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 08:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490790#M1653213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-29T08:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Join Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490791#M1653214</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 get directly select statement with all the condition with any of the tools provided by SAP. But you can find the join conditions between the tables using SQ01 or SQVI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. create Quick view ---&amp;gt; Select datasource as Table Join ---&amp;gt;Ok&lt;/P&gt;&lt;P&gt;2.Go to edit--&amp;gt;insert tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then It'll display the layout with join conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Selva M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 08:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table/m-p/8490791#M1653214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-29T08:55:41Z</dc:date>
    </item>
  </channel>
</rss>

