<?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: select with inner join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329745#M1228201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can use, the probelm below is both tables has werks and you have to specify which tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the where condition if you give A-WERKS OR B-WERKS should solve the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathews&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2009 06:16:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-17T06:16:28Z</dc:date>
    <item>
      <title>select with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329744#M1228200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can we use where clause in select statement with inner join.&lt;/P&gt;&lt;P&gt;i am using following code which gives error (The column name "WERKS" has two meanings . .).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT A&lt;SUB&gt;MATNR A&lt;/SUB&gt;CHARG A&lt;SUB&gt;ERSDA B&lt;/SUB&gt;MENGE B~MEINS&lt;/P&gt;&lt;P&gt;      FROM MCHA AS A INNER JOIN CHVW AS B&lt;/P&gt;&lt;P&gt;      ON A&lt;SUB&gt;CHARG = B&lt;/SUB&gt;CHARG&lt;/P&gt;&lt;P&gt;      INTO TABLE T_OUTPUT1&lt;/P&gt;&lt;P&gt;      WHERE WERKS = PLANT AND CHARG = P_CHARG.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 06:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329744#M1228200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T06:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: select with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329745#M1228201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can use, the probelm below is both tables has werks and you have to specify which tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the where condition if you give A-WERKS OR B-WERKS should solve the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathews&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 06:16:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329745#M1228201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T06:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: select with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329746#M1228202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above where clause give&lt;/P&gt;&lt;P&gt;A-WERKS OR B-WERKS and&lt;/P&gt;&lt;P&gt;A-CHARG OR B-CHARG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Surinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 06:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329746#M1228202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T06:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: select with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329747#M1228203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes u can  use where clause in select statement with inner join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT A&lt;SUB&gt;MATNR A&lt;/SUB&gt;CHARG A&lt;SUB&gt;ERSDA B&lt;/SUB&gt;MENGE B~MEINS&lt;/P&gt;&lt;P&gt;FROM MCHA AS A INNER JOIN CHVW AS B&lt;/P&gt;&lt;P&gt;ON A&lt;SUB&gt;CHARG = B&lt;/SUB&gt;CHARG&lt;/P&gt;&lt;P&gt;INTO TABLE T_OUTPUT1&lt;/P&gt;&lt;P&gt;WHERE WERKS = PLANT AND CHARG = P_CHARG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" mention  the table name in where condition also like a&lt;SUB&gt;werks or b&lt;/SUB&gt;werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;egards&lt;/P&gt;&lt;P&gt;Rajendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 06:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329747#M1228203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T06:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: select with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329748#M1228204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT A~MATNR A~CHARG A~ERSDA B~MENGE B~MEINS
FROM MCHA AS A INNER JOIN CHVW AS B
ON A~CHARG = B~CHARG
INTO TABLE T_OUTPUT1
WHERE *A~*WERKS = PLANT AND *A~*CHARG = P_CHARG.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the above code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;~Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 06:21:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329748#M1228204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T06:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: select with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329749#M1228205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bupi Kaler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use where condition.&lt;/P&gt;&lt;P&gt;Here problem is you could use A&lt;SUB&gt;WERKS OR B&lt;/SUB&gt;WERKS instead of WERKS and&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;CHARG or B&lt;/SUB&gt;CHARG instead of CHARG in where condition.&lt;/P&gt;&lt;P&gt;It will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;P&gt;Prasad GVK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 06:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-inner-join/m-p/5329749#M1228205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T06:24:37Z</dc:date>
    </item>
  </channel>
</rss>

