<?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 join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1010483#M78759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What fields do you have? What fields do you need? From SAP program SAPMM07S:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM V_SLGH_1 INTO TABLE YV_SLGH_1       
                       WHERE WERKS EQ XSBSE-WERKS 
                         AND LGORT EQ XSBSE-LGORT 
                         AND MTART IN RMTART      
                         AND BWKEY EQ WERKE-BWKEY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2005 02:28:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-20T02:28:11Z</dc:date>
    <item>
      <title>Inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1010481#M78757</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;How to do inner join between MARD and MBEW not using matnr. Please provide me with the code also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: sriram Ponna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 20:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1010481#M78757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T20:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1010482#M78758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use view V_SLGH_1 instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 21:05:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1010482#M78758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T21:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1010483#M78759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What fields do you have? What fields do you need? From SAP program SAPMM07S:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM V_SLGH_1 INTO TABLE YV_SLGH_1       
                       WHERE WERKS EQ XSBSE-WERKS 
                         AND LGORT EQ XSBSE-LGORT 
                         AND MTART IN RMTART      
                         AND BWKEY EQ WERKE-BWKEY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 02:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1010483#M78759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T02:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1010484#M78760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sriram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both MARD and MBEW are related to materials. I don't se why you would want to eliminate the material number out of the join. It will give you wrong results. Here is an example.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;u&amp;gt;MARD&amp;lt;/u&amp;gt;
MATNR    WERKS       LGORT
123      6000        STO1
456      6001        STO2

&amp;lt;u&amp;gt;MBEW&amp;lt;/u&amp;gt;
MATNR     BWKEY    ...
123       6001
456       6000
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when you join the two tables without using MATNR, using just MARD-WERKS = MBEW-BWKEY, then you will end up selecting the second record for from MBEW for the first record from MARD. This will get complicated if you include storage location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you want to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 03:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1010484#M78760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T03:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1010485#M78761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And... what was your solution? I think, posting your conclusion will help the forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 18:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1010485#M78761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T18:23:46Z</dc:date>
    </item>
  </channel>
</rss>

