<?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: Problem with join statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-statement/m-p/5614520#M1279202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your comment. I'm maintaining for this report because it is now a bit slow performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just found a view but there are no views for these three tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2009 08:05:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-19T08:05:57Z</dc:date>
    <item>
      <title>Problem with join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-statement/m-p/5614518#M1279200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table name equip which will get data from &lt;STRONG&gt;caufv&lt;/STRONG&gt; view and other tables as follow:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT
      ...
    into corresponding fields of table equip
    FROM caufv
              join afih on afih~aufnr = caufv~aufnr
              join iloa on iloa~iloan = afih~iloan
              join iflos  on iflos~tplnr = iloa~tplnr
              join iflotx on iflos~tplnr = iflotx~tplnr
              join vbak on vbak~aufnr = caufv~aufnr
              join equz on equz~equnr = afih~equnr
              join equi on equi~equnr = equz~equnr
              join vbap on vbak~vbeln = vbap~vbeln
    WHERE
          ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is &lt;STRONG&gt;using only one more JOIN statement&lt;/STRONG&gt; to add more following fields to display in ALV list:&lt;/P&gt;&lt;P&gt;1. Add service event type description (field source is &lt;STRONG&gt;T356_T-PRIOKX&lt;/STRONG&gt; ) where T356_T-PRIOK = QMEL-PRIOK and T356_T-ARTPR = u2018ZSu2019 and T356_T-SPRAS = SY-LANGU.&lt;/P&gt;&lt;P&gt;2. Add Service order type text (field source is &lt;STRONG&gt;T003P-TXT&lt;/STRONG&gt; ) where T003P-AUART = AUFK-AUART AND T003P-SPRAS = SY-LANGU.&lt;/P&gt;&lt;P&gt;3. Add Activity type text (field source is &lt;STRONG&gt;T353I_T-ILATX&lt;/STRONG&gt; ) where T353I_T- ILART = AFIH-ILART AND T353I_T-SPRAS = SY-LANGU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me. Points are for sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 07:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-statement/m-p/5614518#M1279200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T07:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-statement/m-p/5614519#M1279201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you are joining 9 tables already. it aint wise to join over 10 tables performancewise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 07:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-statement/m-p/5614519#M1279201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T07:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-statement/m-p/5614520#M1279202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your comment. I'm maintaining for this report because it is now a bit slow performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just found a view but there are no views for these three tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-statement/m-p/5614520#M1279202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T08:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-statement/m-p/5614521#M1279203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khanh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do consider another way of doing this - from the performance point of view. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of joining all 10 tables, try to use the SELECT statement with the addition FOR ALL ENTRIES IN. This will have to be done multiple times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-statement/m-p/5614521#M1279203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T08:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-statement/m-p/5614522#M1279204</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 is not not advised by SAP to use multiple joins in a query by performance wise.&lt;/P&gt;&lt;P&gt;Hence, please split your query into different segment and output your result records into to a final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ramani N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-statement/m-p/5614522#M1279204</guid>
      <dc:creator>former_member229729</dc:creator>
      <dc:date>2009-05-19T08:35:13Z</dc:date>
    </item>
  </channel>
</rss>

