<?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/3612253#M870271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MSEG&lt;SUB&gt;MBLNR MSEG&lt;/SUB&gt;MJAHR MSEG&lt;SUB&gt;MATNR MSEG&lt;/SUB&gt;WERKS MSEG~BUKRS&lt;/P&gt;&lt;P&gt;MSEG&lt;SUB&gt;LGORT MSEG&lt;/SUB&gt;LIFNR MSEG&lt;SUB&gt;MENGE MSEG&lt;/SUB&gt;MEINS MSEG~EBELN&lt;/P&gt;&lt;P&gt;MSEG&lt;SUB&gt;EBELP MSEG&lt;/SUB&gt;INSMK&lt;/P&gt;&lt;P&gt;MARD&lt;SUB&gt;MATNR MARD&lt;/SUB&gt;INSME&lt;/P&gt;&lt;P&gt;MKPF&lt;SUB&gt;MBLNR MKPF&lt;/SUB&gt;MJAHR MKPF~BUDAT&lt;/P&gt;&lt;P&gt;INTO TABLE IMSEG_MARD FROM MSEG&lt;/P&gt;&lt;P&gt;INNER JOIN MARD ON  MSEG&lt;SUB&gt;MATNR = MARD&lt;/SUB&gt;MATNR &lt;/P&gt;&lt;P&gt;INNER JOIN MKPF ON  MSEG&lt;SUB&gt;MBLNR  = MKPF&lt;/SUB&gt;MBLNR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE MSEG~WERKS IN PLANT AND&lt;/P&gt;&lt;P&gt;MSEG~BUKRS IN COMPANY AND&lt;/P&gt;&lt;P&gt;MSEG~LIFNR IN VENDOR AND&lt;/P&gt;&lt;P&gt;BUDAT IN GR_DATE AND&lt;/P&gt;&lt;P&gt;MSEG~INSMK EQ 'X' AND&lt;/P&gt;&lt;P&gt;MARD~INSME  EQ '0.000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : IMSEG_MARD .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2008 04:48:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-28T04:48:37Z</dc:date>
    <item>
      <title>INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612250#M870268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Frds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have inner join three tables MARA, MARD, MKPF .In DEV its working correctly ,while going for bulk datas it will work correct.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check my select statement and give me some tips.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  SELECT MSEG&lt;SUB&gt;MBLNR MSEG&lt;/SUB&gt;MJAHR MSEG&lt;SUB&gt;MATNR MSEG&lt;/SUB&gt;WERKS MSEG~BUKRS&lt;/P&gt;&lt;P&gt;         MSEG&lt;SUB&gt;LGORT MSEG&lt;/SUB&gt;LIFNR MSEG&lt;SUB&gt;MENGE MSEG&lt;/SUB&gt;MEINS MSEG~EBELN&lt;/P&gt;&lt;P&gt;         MSEG&lt;SUB&gt;EBELP MSEG&lt;/SUB&gt;INSMK&lt;/P&gt;&lt;P&gt;         MARD&lt;SUB&gt;MATNR MARD&lt;/SUB&gt;INSME&lt;/P&gt;&lt;P&gt;         MKPF&lt;SUB&gt;MBLNR MKPF&lt;/SUB&gt;MJAHR MKPF~BUDAT&lt;/P&gt;&lt;P&gt;    INTO TABLE IMSEG_MARD FROM MSEG&lt;/P&gt;&lt;P&gt;    INNER JOIN MARD ON MARD&lt;SUB&gt;MATNR = MSEG&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;    INNER JOIN MKPF ON MKPF&lt;SUB&gt;MBLNR = MSEG&lt;/SUB&gt;MBLNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         WHERE MSEG~WERKS IN PLANT   AND&lt;/P&gt;&lt;P&gt;               MSEG~BUKRS IN COMPANY AND&lt;/P&gt;&lt;P&gt;               MSEG~LIFNR IN VENDOR  AND&lt;/P&gt;&lt;P&gt;               BUDAT IN GR_DATE  AND&lt;/P&gt;&lt;P&gt;               MSEG~INSMK EQ 'X' AND&lt;/P&gt;&lt;P&gt;               MARD~INSME &amp;lt;&amp;gt; '0.000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : IMSEG_MARD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Pari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 04:37:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612250#M870268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T04:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612251#M870269</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;it will work fine even though you have bunch of data in DEV/Quality/Prod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have more than 3 tables then its better to use for all entries with respect to performance point of view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 04:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612251#M870269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T04:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612252#M870270</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;It will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 04:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612252#M870270</guid>
      <dc:creator>ak_upadhyay</dc:creator>
      <dc:date>2008-03-28T04:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612253#M870271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MSEG&lt;SUB&gt;MBLNR MSEG&lt;/SUB&gt;MJAHR MSEG&lt;SUB&gt;MATNR MSEG&lt;/SUB&gt;WERKS MSEG~BUKRS&lt;/P&gt;&lt;P&gt;MSEG&lt;SUB&gt;LGORT MSEG&lt;/SUB&gt;LIFNR MSEG&lt;SUB&gt;MENGE MSEG&lt;/SUB&gt;MEINS MSEG~EBELN&lt;/P&gt;&lt;P&gt;MSEG&lt;SUB&gt;EBELP MSEG&lt;/SUB&gt;INSMK&lt;/P&gt;&lt;P&gt;MARD&lt;SUB&gt;MATNR MARD&lt;/SUB&gt;INSME&lt;/P&gt;&lt;P&gt;MKPF&lt;SUB&gt;MBLNR MKPF&lt;/SUB&gt;MJAHR MKPF~BUDAT&lt;/P&gt;&lt;P&gt;INTO TABLE IMSEG_MARD FROM MSEG&lt;/P&gt;&lt;P&gt;INNER JOIN MARD ON  MSEG&lt;SUB&gt;MATNR = MARD&lt;/SUB&gt;MATNR &lt;/P&gt;&lt;P&gt;INNER JOIN MKPF ON  MSEG&lt;SUB&gt;MBLNR  = MKPF&lt;/SUB&gt;MBLNR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE MSEG~WERKS IN PLANT AND&lt;/P&gt;&lt;P&gt;MSEG~BUKRS IN COMPANY AND&lt;/P&gt;&lt;P&gt;MSEG~LIFNR IN VENDOR AND&lt;/P&gt;&lt;P&gt;BUDAT IN GR_DATE AND&lt;/P&gt;&lt;P&gt;MSEG~INSMK EQ 'X' AND&lt;/P&gt;&lt;P&gt;MARD~INSME  EQ '0.000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : IMSEG_MARD .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 04:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612253#M870271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T04:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612254#M870272</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;Do avoid Inner Join.please use For all Entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Nehru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 04:51:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612254#M870272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T04:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612255#M870273</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;1.Inorder to improve the performance of your query , make sure that the &lt;STRONG&gt;order of fields in the "WHERE" should follow the order of fields in the DDIC TABLES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. use SQL trace to point out the performance of your query while executing with data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~&lt;SUB&gt;Lakshmiraj&lt;/SUB&gt;~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 04:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612255#M870273</guid>
      <dc:creator>abapdeveloper20</dc:creator>
      <dc:date>2008-03-28T04:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612256#M870274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RAJA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You havent mwentioned INTO CORRESPONDIN FIELDS OF&lt;/P&gt;&lt;P&gt;and no BRACKETS MENTIONED which i've made BOLD..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MSEG&lt;SUB&gt;MBLNR MSEG&lt;/SUB&gt;MJAHR MSEG&lt;SUB&gt;MATNR MSEG&lt;/SUB&gt;WERKS MSEG~BUKRS&lt;/P&gt;&lt;P&gt;MSEG&lt;SUB&gt;LGORT MSEG&lt;/SUB&gt;LIFNR MSEG&lt;SUB&gt;MENGE MSEG&lt;/SUB&gt;MEINS MSEG~EBELN&lt;/P&gt;&lt;P&gt;MSEG&lt;SUB&gt;EBELP MSEG&lt;/SUB&gt;INSMK&lt;/P&gt;&lt;P&gt;MARD&lt;SUB&gt;MATNR MARD&lt;/SUB&gt;INSME&lt;/P&gt;&lt;P&gt;MKPF&lt;SUB&gt;MBLNR MKPF&lt;/SUB&gt;MJAHR MKPF~BUDAT&lt;/P&gt;&lt;P&gt;INTO &lt;STRONG&gt;CORRESPONDING FIELDS OF&lt;/STRONG&gt; TABLE IMSEG_MARD FROM &lt;STRONG&gt;((MSEG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INNER JOIN MARD ON MARD&lt;SUB&gt;MATNR = MSEG&lt;/SUB&gt;MATNR)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INNER JOIN MKPF ON MKPF&lt;SUB&gt;MBLNR = MSEG&lt;/SUB&gt;MBLNR)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WHERE MSEG~WERKS IN PLANT AND&lt;/P&gt;&lt;P&gt;MSEG~BUKRS IN COMPANY AND&lt;/P&gt;&lt;P&gt;MSEG~LIFNR IN VENDOR AND&lt;/P&gt;&lt;P&gt;BUDAT IN GR_DATE AND&lt;/P&gt;&lt;P&gt;MSEG~INSMK EQ 'X' AND&lt;/P&gt;&lt;P&gt;MARD~INSME '0.000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : IMSEG_MARD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 04:55:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612256#M870274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T04:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612257#M870275</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;If you use it like below then it will be more efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MBLNR MJAHR MATNR WERKS BUKRS&lt;/P&gt;&lt;P&gt;LGORT LIFNR MENGE MEINS EBELN&lt;/P&gt;&lt;P&gt;EBELP INSMK&lt;/P&gt;&lt;P&gt;FROM MSEG INTO CORRESPONDING FIELDS OF TABLE IT_MSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF IT_MSEG IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;MATNR INSME&lt;/P&gt;&lt;P&gt;FROM MARD&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_MARD&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_MSEG&lt;/P&gt;&lt;P&gt;WHERE MATNR = IT_MSEG-MATNR.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF IT_MSEG_MARD IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;MBLNR MJAHR BUDAT&lt;/P&gt;&lt;P&gt;FROM MKPF&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE  &lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_MSEG_MARD&lt;/P&gt;&lt;P&gt;WHERE MBLNR = IT_MSEG_MARD-MBLNR.&lt;/P&gt;&lt;P&gt;AND MATNR = IT_MSEG_MARD-MATNR.&lt;/P&gt;&lt;P&gt;AND &lt;/P&gt;&lt;P&gt;MSEG-WERKS IN PLANT AND&lt;/P&gt;&lt;P&gt;MSEG-BUKRS IN COMPANY AND&lt;/P&gt;&lt;P&gt;MSEG-LIFNR IN VENDOR AND&lt;/P&gt;&lt;P&gt;BUDAT IN GR_DATE AND&lt;/P&gt;&lt;P&gt;MSEG-INSMK EQ 'X' AND&lt;/P&gt;&lt;P&gt;MARD-INSME EQ '0.000'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : ITMSEG_MARD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&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;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 05:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/3612257#M870275</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-03-28T05:02:07Z</dc:date>
    </item>
  </channel>
</rss>

