<?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 (multiple tables access) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-multiple-tables-access/m-p/8004493#M1607055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Blaiso;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know Why did use this method? Because this method not healthy and has more performance problem.&lt;/P&gt;&lt;P&gt;If you want to more performance you add some index to tables.  &lt;/P&gt;&lt;P&gt;If you want to "Correct Result", You must know tables relation between tables, according to your specific scenario. &lt;/P&gt;&lt;P&gt;I suggest to you, use loop method and itab at this status.&lt;/P&gt;&lt;P&gt;You can examine bellow way &lt;/P&gt;&lt;P&gt;Se38-&amp;gt;Environment-&amp;gt;Performance Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2011 06:17:14 GMT</pubDate>
    <dc:creator>former_member212713</dc:creator>
    <dc:date>2011-06-14T06:17:14Z</dc:date>
    <item>
      <title>inner join (multiple tables access)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-multiple-tables-access/m-p/8004492#M1607054</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;Could you pl look into the code and let me now what that inner join is doing? I am thinking that data from all tables AFKO, AFVC, MSEG, EKBE, ESLL, T430 are selected and extracted but someone told me without further explanations that data are extracted only from AFKO, AFVC. From MSEG, EKBE, ESLL the join is only doing a validation check and I am not understanding that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;      OPEN CURSOR WITH HOLD s_cursor FOR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT&lt;/P&gt;&lt;P&gt;   t1~mandt  AS mandt&lt;/P&gt;&lt;P&gt;   t1~aufnr  AS aufnr&lt;/P&gt;&lt;P&gt;   t1~aufpl  AS aufpl&lt;/P&gt;&lt;P&gt;   t2~aplzl  AS aplzl&lt;/P&gt;&lt;P&gt;   t2~banfn  AS banfn&lt;/P&gt;&lt;P&gt;   t2~bnfpo  AS bnfpo&lt;/P&gt;&lt;P&gt;   t3~ebeln  AS ebeln&lt;/P&gt;&lt;P&gt;   t3~ebelp  AS ebelp&lt;/P&gt;&lt;P&gt;   t4~vgabe  AS vgabe&lt;/P&gt;&lt;P&gt;   t4~belnr  AS belnr&lt;/P&gt;&lt;P&gt;   t4~buzei  AS buzei&lt;/P&gt;&lt;P&gt;   t4~gjahr  AS gjahr&lt;/P&gt;&lt;P&gt;   t4~zekkn  AS zekkn&lt;/P&gt;&lt;P&gt;   t4~srvpos AS srvpos&lt;/P&gt;&lt;P&gt;   t6~menge  AS menge                                       "D02K924592&lt;/P&gt;&lt;P&gt;   t3~dmbtr  AS dmbtr                                       "D02K924378&lt;/P&gt;&lt;P&gt;   t4~cpudt  AS cpudt&lt;/P&gt;&lt;P&gt;   t4~shkzg  AS shkzg&lt;/P&gt;&lt;P&gt;   t4~budat  AS budat&lt;/P&gt;&lt;P&gt;   t3~lifnr  AS lifnr&lt;/P&gt;&lt;P&gt;   t2~vornr  AS vornr_sactv&lt;/P&gt;&lt;P&gt;   t7~vornr  AS vornr_actv&lt;/P&gt;&lt;P&gt;   t2~sumnr  AS sumnr&lt;/P&gt;&lt;P&gt;   t2~prctr  AS prctr&lt;/P&gt;&lt;P&gt;   t6~meins  AS meins                                       "D02K924592&lt;/P&gt;&lt;P&gt;   t3~waers  AS waers                                       "D02K924378&lt;/P&gt;&lt;P&gt;   t3~sakto  AS kstar                                       "D02K924456&lt;/P&gt;&lt;P&gt;   t6~packno AS packno                                      "D02K924592&lt;/P&gt;&lt;P&gt;   t6~introw AS introw                                      "D02K924592&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     FROM afko AS t1&lt;/P&gt;&lt;P&gt;     INNER JOIN afvc AS t2 ON  t2&lt;SUB&gt;mandt = t1&lt;/SUB&gt;mandt&lt;/P&gt;&lt;P&gt;                           AND t2&lt;SUB&gt;aufpl = t1&lt;/SUB&gt;aufpl&lt;/P&gt;&lt;P&gt;     INNER JOIN mseg AS t3 ON  t3&lt;SUB&gt;mandt = t2&lt;/SUB&gt;mandt          "D02K924373&lt;/P&gt;&lt;P&gt;                          AND  t3&lt;SUB&gt;aufpl = t2&lt;/SUB&gt;aufpl          "D02K924373&lt;/P&gt;&lt;P&gt;                          AND  t3&lt;SUB&gt;aplzl = t2&lt;/SUB&gt;aplzl          "D02K924373&lt;/P&gt;&lt;P&gt;     INNER JOIN ekbe AS t4 ON  t4&lt;SUB&gt;mandt = t3&lt;/SUB&gt;mandt&lt;/P&gt;&lt;P&gt;                           AND t4&lt;SUB&gt;ebeln = t3&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;                           AND t4&lt;SUB&gt;ebelp = t3&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;                           AND t4&lt;SUB&gt;zekkn = t3&lt;/SUB&gt;zekkn          "D02K924373&lt;/P&gt;&lt;P&gt;                           AND t4~vgabe = 1                 "D02K924373&lt;/P&gt;&lt;P&gt;                           AND t4&lt;SUB&gt;gjahr = t3&lt;/SUB&gt;mjahr          "D02K924373&lt;/P&gt;&lt;P&gt;                           AND t4&lt;SUB&gt;belnr = t3&lt;/SUB&gt;mblnr          "D02K924373&lt;/P&gt;&lt;P&gt;                           AND t4&lt;SUB&gt;buzei = t3&lt;/SUB&gt;zeile          "D02K924373&lt;/P&gt;&lt;P&gt;     INNER JOIN t430 AS t5 ON  t5&lt;SUB&gt;mandt = t2&lt;/SUB&gt;mandt          "D02K924489&lt;/P&gt;&lt;P&gt;                           AND t5~plnaw = '*'               "D02K924489&lt;/P&gt;&lt;P&gt;                           AND t5&lt;SUB&gt;steus = t2&lt;/SUB&gt;steus          "D02K924489&lt;/P&gt;&lt;P&gt;                           AND t5~service = 'X'             "D02K924489&lt;/P&gt;&lt;P&gt;     LEFT OUTER JOIN esll AS t6 ON t6&lt;SUB&gt;mandt = t4&lt;/SUB&gt;mandt      "D02K924592&lt;/P&gt;&lt;P&gt;                               AND t6&lt;SUB&gt;packno = t4&lt;/SUB&gt;packno    "D02K924592&lt;/P&gt;&lt;P&gt;                               AND t6&lt;SUB&gt;introw = t4&lt;/SUB&gt;introw    "D02K924592&lt;/P&gt;&lt;P&gt;     INNER JOIN afvc AS t7 ON  t2&lt;SUB&gt;mandt = t7&lt;/SUB&gt;mandt&lt;/P&gt;&lt;P&gt;                           AND t2&lt;SUB&gt;aufpl = t7&lt;/SUB&gt;aufpl&lt;/P&gt;&lt;P&gt;                           AND t2&lt;SUB&gt;sumnr = t7&lt;/SUB&gt;aplzl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHERE   t1~mandt =    sy-mandt&lt;/P&gt;&lt;P&gt;       AND    t1~aufnr LIKE '00006%'&lt;/P&gt;&lt;P&gt;       AND    t1~aufnr IN   l_r_aufnr&lt;/P&gt;&lt;P&gt;       AND    t2~prctr =    '0000005080'&lt;/P&gt;&lt;P&gt;       AND    t2~sumnr &amp;lt;&amp;gt;   '00000000'&lt;/P&gt;&lt;P&gt;       AND    t4~vgabe =    1&lt;/P&gt;&lt;P&gt;       AND    t4~cpudt IN   l_r_cpudt&lt;/P&gt;&lt;P&gt;       AND    t2~steus IN   l_r_steus                      "D02K924627&lt;/P&gt;&lt;P&gt;       AND    t5~steus IN   l_r_steus.                     "D02K924627.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2011 19:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-multiple-tables-access/m-p/8004492#M1607054</guid>
      <dc:creator>former_member649905</dc:creator>
      <dc:date>2011-06-13T19:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: inner join (multiple tables access)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-multiple-tables-access/m-p/8004493#M1607055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Blaiso;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know Why did use this method? Because this method not healthy and has more performance problem.&lt;/P&gt;&lt;P&gt;If you want to more performance you add some index to tables.  &lt;/P&gt;&lt;P&gt;If you want to "Correct Result", You must know tables relation between tables, according to your specific scenario. &lt;/P&gt;&lt;P&gt;I suggest to you, use loop method and itab at this status.&lt;/P&gt;&lt;P&gt;You can examine bellow way &lt;/P&gt;&lt;P&gt;Se38-&amp;gt;Environment-&amp;gt;Performance Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 06:17:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-multiple-tables-access/m-p/8004493#M1607055</guid>
      <dc:creator>former_member212713</dc:creator>
      <dc:date>2011-06-14T06:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: inner join (multiple tables access)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-multiple-tables-access/m-p/8004494#M1607056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Melih,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying, this program fetch online data (in R/3) and pass them to the setup tables for BW. Now certain tables (in R/3)would be archived based on archiving like PS_Project, MM_Matbel...&lt;/P&gt;&lt;P&gt;Generic datasource need to be put in place in case archived data + online data may need to be load (full load) to BW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Archived data are indexed using PBS functionality&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to now exactly from which tables(with explanation please), data are extrated on that program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 14:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-multiple-tables-access/m-p/8004494#M1607056</guid>
      <dc:creator>former_member649905</dc:creator>
      <dc:date>2011-06-14T14:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: inner join (multiple tables access)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-multiple-tables-access/m-p/8004495#M1607057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue clarified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 13:05:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-multiple-tables-access/m-p/8004495#M1607057</guid>
      <dc:creator>former_member649905</dc:creator>
      <dc:date>2011-06-15T13:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: inner join (multiple tables access)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-multiple-tables-access/m-p/8004496#M1607058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered by myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 13:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-multiple-tables-access/m-p/8004496#M1607058</guid>
      <dc:creator>former_member649905</dc:creator>
      <dc:date>2011-06-15T13:06:00Z</dc:date>
    </item>
  </channel>
</rss>

