<?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: Inner and outer Join statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-and-outer-join-statement/m-p/1938352#M387857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Try the following stmt. In the below stmt I used both joins as inner joins. you can also use outer joins in their place. Here itab is an internal table with only one field serge. If you want additional fields also along with serge, define them in the internal table and specify them in the select statement from which table u want which field as i done it for serge. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select equi&lt;SUB&gt;serge from equi inner join zgmard on equi&lt;/SUB&gt;matnr = zgmard&lt;SUB&gt;matnr inner join eqbs on zgmard&lt;/SUB&gt;werks = eqbs~werks into table itab.&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;rajasekhar.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2007 22:48:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-06T22:48:38Z</dc:date>
    <item>
      <title>Inner and outer Join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-and-outer-join-statement/m-p/1938350#M387855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three tables..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZGMARD&lt;/P&gt;&lt;P&gt;EQUI&lt;/P&gt;&lt;P&gt;EQBS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZGMARD tables has &lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;WERKS&lt;/P&gt;&lt;P&gt;LGORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EQUI table has&lt;/P&gt;&lt;P&gt;EQUNR&lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;SERGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EQBS table has&lt;/P&gt;&lt;P&gt;EQUNR&lt;/P&gt;&lt;P&gt;WERKS&lt;/P&gt;&lt;P&gt;PLANT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is I need a join statement where&lt;/P&gt;&lt;P&gt;dependeding on MATNR,WERKS and LGORT from ZGMARD I should be able to get the SERGE.(depending on tables EQUI and EQBS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 21:54:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-and-outer-join-statement/m-p/1938350#M387855</guid>
      <dc:creator>former_member764673</dc:creator>
      <dc:date>2007-02-06T21:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inner and outer Join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-and-outer-join-statement/m-p/1938351#M387856</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;Select matnr werks lgort into table i_zgmard from zgmard&lt;/P&gt;&lt;P&gt;  where matnr in s_matnr&lt;/P&gt;&lt;P&gt;     and  werks in s_werks&lt;/P&gt;&lt;P&gt;     and  lgort in s_lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;equnr a&lt;/SUB&gt;matnr a&lt;SUB&gt;serge b&lt;/SUB&gt;B_WERK&lt;/P&gt;&lt;P&gt;  into table i_equi from equi as a inner join eqbs as b&lt;/P&gt;&lt;P&gt;  for all entries in i_zgmard&lt;/P&gt;&lt;P&gt;  where a~matnr = i_zgmard-matnr&lt;/P&gt;&lt;P&gt;     and  b~b_werk = i_zgmard-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming matnr, werks and lgort to be select-options. In eqbx table plant is B_WERK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 22:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-and-outer-join-statement/m-p/1938351#M387856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T22:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Inner and outer Join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-and-outer-join-statement/m-p/1938352#M387857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Try the following stmt. In the below stmt I used both joins as inner joins. you can also use outer joins in their place. Here itab is an internal table with only one field serge. If you want additional fields also along with serge, define them in the internal table and specify them in the select statement from which table u want which field as i done it for serge. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select equi&lt;SUB&gt;serge from equi inner join zgmard on equi&lt;/SUB&gt;matnr = zgmard&lt;SUB&gt;matnr inner join eqbs on zgmard&lt;/SUB&gt;werks = eqbs~werks into table itab.&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;rajasekhar.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 22:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-and-outer-join-statement/m-p/1938352#M387857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T22:48:38Z</dc:date>
    </item>
  </channel>
</rss>

