<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4010024#M958022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Savita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try Using FOR ALL ENTRIES and use all of your key fields to get the data. This must help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 05:59:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T05:59:21Z</dc:date>
    <item>
      <title>Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4010021#M958019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m using outer join on 4 tables. while debugging i m getting 39 entries when using joins on 3 tables, but when i use 4 th table entries increases to 42. It should not b increaseas i want entry from fourth table for corresponding fields of 3 tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz correct me where i m wrong &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;banfn a&lt;/SUB&gt;ekgrp a&lt;SUB&gt;afnam  a&lt;/SUB&gt;txz01 a&lt;SUB&gt;matnr a&lt;/SUB&gt;werks a&lt;SUB&gt;lgort a&lt;/SUB&gt;bednr&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;menge a&lt;/SUB&gt;meins a&lt;SUB&gt;badat a&lt;/SUB&gt;frgdt a&lt;SUB&gt;ebeln a&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;b&lt;SUB&gt;belnr  b&lt;/SUB&gt;bwart b~budat&lt;/P&gt;&lt;P&gt;c~preis&lt;/P&gt;&lt;P&gt;d~udate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from ( eban as a left outer join ekbe&lt;/P&gt;&lt;P&gt; as b  on&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;werks eq b&lt;/SUB&gt;werks and&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;ebeln eq b&lt;/SUB&gt;ebeln and&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;ebelp eq b&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join eipa as c on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c&lt;SUB&gt;ebeln = a&lt;/SUB&gt;ebeln and&lt;/P&gt;&lt;P&gt;c&lt;SUB&gt;ebelp = a&lt;/SUB&gt;ebelp and&lt;/P&gt;&lt;P&gt;c&lt;SUB&gt;werks = a&lt;/SUB&gt;werks&lt;/P&gt;&lt;P&gt;left join cdhdr as d on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d&lt;SUB&gt;objectid = a&lt;/SUB&gt;ebeln and&lt;/P&gt;&lt;P&gt;d~tcode ='ME29N' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into corresponding fields of&lt;/P&gt;&lt;P&gt;table eban_ekbe&lt;/P&gt;&lt;P&gt;where              a~ekgrp in s_ekgrp and&lt;/P&gt;&lt;P&gt;                   a~afnam in s_afnam and&lt;/P&gt;&lt;P&gt;                   a~matnr in s_matnr and&lt;/P&gt;&lt;P&gt;                   a~werks eq  p_werks and&lt;/P&gt;&lt;P&gt;                   a~lgort in s_lgort and&lt;/P&gt;&lt;P&gt;                   a~badat in s_badat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Savita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 05:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4010021#M958019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T05:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4010022#M958020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Savita,&lt;/P&gt;&lt;P&gt;Instead of doing the Outer join Why dont you use FOR ALL ENTRIES IN &amp;lt;TAB&amp;gt;.&lt;/P&gt;&lt;P&gt;This will defiantly resolve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;***********&lt;STRONG&gt;Reward Point if helpful&lt;/STRONG&gt;*************&amp;amp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 05:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4010022#M958020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T05:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4010023#M958021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;  You have not used the proper join conditions.Try to use keay fileds to join table if possible in your case. Other wise split your join to get the required data so that you will get the appropriate data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 05:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4010023#M958021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T05:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4010024#M958022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Savita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try Using FOR ALL ENTRIES and use all of your key fields to get the data. This must help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 05:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4010024#M958022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T05:59:21Z</dc:date>
    </item>
  </channel>
</rss>

