<?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: left outer join using For All Entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605118#M1437968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let me ellaborate&lt;/P&gt;&lt;P&gt;in table1 ,there are 2 enties ,X ,Y&lt;/P&gt;&lt;P&gt;in table2, there are 3 entries corresponding to X.no entry for Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; select * from table2 for all entries in table1 into table itab &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;i get only 3 rows in the ITAB.but i want entry Y  with null values in other field.I mean 4 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we do this.&lt;/P&gt;&lt;P&gt;Plz explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: raghunandan mj on Feb 5, 2010 11:04 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Feb 2010 09:43:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-05T09:43:05Z</dc:date>
    <item>
      <title>left outer join using For All Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605116#M1437966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to implement left outer join using for all entries In REPORTS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 09:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605116#M1437966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-05T09:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: left outer join using For All Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605117#M1437967</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;FOR ALL ENTRIES is used in place of JOINS for performance reasons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know ther is no separate option in for all entries for left outer join.&lt;/P&gt;&lt;P&gt;If you want to achieve left outer join resulset, then you will have to specify the &lt;/P&gt;&lt;P&gt;where conditions in FOR ALL ENTRIES so that it will give you that resultset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 09:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605117#M1437967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-05T09:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: left outer join using For All Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605118#M1437968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let me ellaborate&lt;/P&gt;&lt;P&gt;in table1 ,there are 2 enties ,X ,Y&lt;/P&gt;&lt;P&gt;in table2, there are 3 entries corresponding to X.no entry for Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; select * from table2 for all entries in table1 into table itab &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;i get only 3 rows in the ITAB.but i want entry Y  with null values in other field.I mean 4 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we do this.&lt;/P&gt;&lt;P&gt;Plz explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: raghunandan mj on Feb 5, 2010 11:04 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 09:43:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605118#M1437968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-05T09:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: left outer join using For All Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605119#M1437969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; FOR ALL ENTRIES is used in place of JOINS for performance reasons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;THIS IS ABSOLUTELY INCORRECT&lt;/SPAN&gt;&lt;/STRONG&gt; Check the Performance forum for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 10:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605119#M1437969</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-02-05T10:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: left outer join using For All Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605120#M1437970</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 use For all Entries for the left outer joins as&lt;/P&gt;&lt;P&gt;they can be used in place of Inner Joins that is so as to&lt;/P&gt;&lt;P&gt;avoid Multiple number of inner joins we can use for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 10:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605120#M1437970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-05T10:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: left outer join using For All Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605121#M1437971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;performance is a different case... it not correct to say which one is the best in every situation... &lt;/P&gt;&lt;P&gt;check this thread for details... &lt;SPAN __default_attr="1174072" __jive_macro_name="threadID"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and any ways... &lt;/P&gt;&lt;P&gt;please be clear with your requirements... if you are using joins then why for all entries are needed??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i guess you want to use a tables content to compare during join of another two tables.. in that case.. you can create a range table for that particular field and pass the value from your internal table to this range table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and while writing the join you can use like : vblen in GT_VBELN --&amp;gt; this being a range table.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but 1 more constraint is this range table should not contain more than 5K records..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 10:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605121#M1437971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-05T10:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: left outer join using For All Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605122#M1437972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mansi,&lt;/P&gt;&lt;P&gt;this is how i populate &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT VGBEL LFIMG POSNR VBELN FROM LIPS INTO  TABLE IT_delv  FOR ALL ENTRIES IN IT_VBAP WHERE VGBEL = IT_VBAP-VBELN.

LOOP AT IT_delv INTO WA_delv.
 WA_FINAL-VBELN_1 = WA_DELV-VBELN_1.
 WA_FINAL-LFDAT =   WA_DELV-LFDAT.
 WA_FINAL-LFIMG   = WA_DELV-LFIMG.
 WA_FINAL-POSNR2 =   WA_DELV-POSNR2..
 APPEND WA_FINAL TO IT_FINAL.
 CLEAR: WA_FINAL , WA_delv.
 ENDLOOP.

 LOOP AT IT_FINAL INTO WA_FINAL.
 READ TABLE IT_vbap INTO WA_vbap WITH KEY VGBEL = WA_FINAL-VBELN.
  WA_FINAL-VBELN = WA_VBAP-VBELN.
 WA_FINAL-MATNR = WA_VBAP-MATNR.
 WA_FINAL-KWMENG = WA_VBAP-KWMENG.
 WA_FINAL-NETWR = WA_VBAP-NETWR.
 MODIFY IT_FINAL FROM WA_FINAL.
 ENDLOOP.
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is , it_vbap has 5 five records A,B,C,D,E.&lt;/P&gt;&lt;P&gt;in it_delv ,there are 20 record corrresponding to A,B,D of IT_VBAP.&lt;/P&gt;&lt;P&gt;in final table i wont get info of recors B,E. I want those info also in final table ..how can i do that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 10:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-using-for-all-entries/m-p/6605122#M1437972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-05T10:57:09Z</dc:date>
    </item>
  </channel>
</rss>

