<?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: Alternative for Join. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693250#M304289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me take a example for this problem&lt;/P&gt;&lt;P&gt;Lets say there are 8 table &lt;/P&gt;&lt;P&gt;tab1&lt;/P&gt;&lt;P&gt;tab2 and so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my select statement has a join condition as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select (fields) from &lt;/P&gt;&lt;P&gt;tab1 &lt;/P&gt;&lt;P&gt;    innerjoin tab2 on tab1&lt;SUB&gt;field1 = tab2&lt;/SUB&gt;field1&lt;/P&gt;&lt;P&gt;    innerjoin tab3 on tab3~field3 = tab1-field3&lt;/P&gt;&lt;P&gt;    innerjoin tab4 on tab4&lt;SUB&gt;field4 = tab2&lt;/SUB&gt;field4&lt;/P&gt;&lt;P&gt;    innerjoin tab5 on tab5&lt;SUB&gt;field1 = tab1&lt;/SUB&gt;field1 and&lt;/P&gt;&lt;P&gt;                      tab5~field5 = tab1-field5&lt;/P&gt;&lt;P&gt;    innerjoin tab6 on tab6~field5 = tab5-field5&lt;/P&gt;&lt;P&gt;    innerjoin tab7 on tab7~field1 = tab1-field1 and&lt;/P&gt;&lt;P&gt;                      tab7&lt;SUB&gt;field3 = tab3&lt;/SUB&gt;field3 and&lt;/P&gt;&lt;P&gt;                      tab7&lt;SUB&gt;field5 = tab5&lt;/SUB&gt;field5 and&lt;/P&gt;&lt;P&gt;    innerjoin tab8 on tab8&lt;SUB&gt;field8 = tab7&lt;/SUB&gt;field8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creaets a huge table from which fields are fetched.&lt;/P&gt;&lt;P&gt;Its a bit difficult to use For all entries in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can creating views be of any help in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2006 13:43:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-27T13:43:44Z</dc:date>
    <item>
      <title>Alternative for Join.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693247#M304286</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;   I am facing problem in breaking up a select statement which contains join between 10 tables.&lt;/P&gt;&lt;P&gt;can you people suggest me different options for removing join in a select statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 13:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693247#M304286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T13:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for Join.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693248#M304287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, instead of joins, use FOR ALL ENTRIES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 13:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693248#M304287</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-27T13:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for Join.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693249#M304288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 13:22:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693249#M304288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T13:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for Join.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693250#M304289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me take a example for this problem&lt;/P&gt;&lt;P&gt;Lets say there are 8 table &lt;/P&gt;&lt;P&gt;tab1&lt;/P&gt;&lt;P&gt;tab2 and so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my select statement has a join condition as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select (fields) from &lt;/P&gt;&lt;P&gt;tab1 &lt;/P&gt;&lt;P&gt;    innerjoin tab2 on tab1&lt;SUB&gt;field1 = tab2&lt;/SUB&gt;field1&lt;/P&gt;&lt;P&gt;    innerjoin tab3 on tab3~field3 = tab1-field3&lt;/P&gt;&lt;P&gt;    innerjoin tab4 on tab4&lt;SUB&gt;field4 = tab2&lt;/SUB&gt;field4&lt;/P&gt;&lt;P&gt;    innerjoin tab5 on tab5&lt;SUB&gt;field1 = tab1&lt;/SUB&gt;field1 and&lt;/P&gt;&lt;P&gt;                      tab5~field5 = tab1-field5&lt;/P&gt;&lt;P&gt;    innerjoin tab6 on tab6~field5 = tab5-field5&lt;/P&gt;&lt;P&gt;    innerjoin tab7 on tab7~field1 = tab1-field1 and&lt;/P&gt;&lt;P&gt;                      tab7&lt;SUB&gt;field3 = tab3&lt;/SUB&gt;field3 and&lt;/P&gt;&lt;P&gt;                      tab7&lt;SUB&gt;field5 = tab5&lt;/SUB&gt;field5 and&lt;/P&gt;&lt;P&gt;    innerjoin tab8 on tab8&lt;SUB&gt;field8 = tab7&lt;/SUB&gt;field8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creaets a huge table from which fields are fetched.&lt;/P&gt;&lt;P&gt;Its a bit difficult to use For all entries in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can creating views be of any help in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 13:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693250#M304289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T13:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for Join.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693251#M304290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly is the problem? IE, why are you doing this? Is there a performance issue here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 13:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693251#M304290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T13:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for Join.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693252#M304291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because of these joins this statement is taking a long time to execute. That is why i want it to be done in some other way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 13:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693252#M304291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T13:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for Join.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693253#M304292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's possible to split up the select, but difficult to say exactly how without seeing the exact code. Could you please post it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, a large join shouldn't cause a performance problem by itself, but if it's not well constructed (IE not using indexes) that can cause a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 13:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693253#M304292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T13:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for Join.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693254#M304293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;here is the actual select statement.&lt;/P&gt;&lt;P&gt;have a look at it and see what can be done with this.&lt;/P&gt;&lt;P&gt;I tried out to break it in two parts, but was unsucessful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT   AFKO~AUFNR         "Order Number&lt;/P&gt;&lt;P&gt;         AFKO~GSTRP         "Order Basic start date&lt;/P&gt;&lt;P&gt;         AFKO~GSTRS         "Order Scheduled start&lt;/P&gt;&lt;P&gt;         AFIH~PRIOK         "Maint order Priority&lt;/P&gt;&lt;P&gt;         AFIH~ILART         "Maint activity type&lt;/P&gt;&lt;P&gt;         AFIH~WARPL         "Maint plan&lt;/P&gt;&lt;P&gt;         AFIH~ABNUM         "Package num&lt;/P&gt;&lt;P&gt;         AFIH~WAPOS         "Maint item&lt;/P&gt;&lt;P&gt;         ILOA~TPLNR         "Functional location&lt;/P&gt;&lt;P&gt;         ILOA~ABCKZ         "ABC indicator for technical object&lt;/P&gt;&lt;P&gt;         AUFK~KTEXT         "Order Short text&lt;/P&gt;&lt;P&gt;         AUFK~AUART         "Order type&lt;/P&gt;&lt;P&gt;         AUFK~OBJNR         "object num of order&lt;/P&gt;&lt;P&gt;         AFVC~OBJNR         "Object num of operation&lt;/P&gt;&lt;P&gt;         AFVC~ANLZU         "Task list oper's sys condition&lt;/P&gt;&lt;P&gt;         CRHD~ARBPL         "Work center&lt;/P&gt;&lt;P&gt;         AFVV~ARBEI         "Plan hours for the activity&lt;/P&gt;&lt;P&gt;         AFVV~ISMNW         "Actual hours&lt;/P&gt;&lt;P&gt;         MPOS~WSTRA         "Strategy&lt;/P&gt;&lt;P&gt;         AFKO~PLNNR&lt;/P&gt;&lt;P&gt;         AFKO~PLNAL&lt;/P&gt;&lt;P&gt;         MHIS~ZAEHL         "Maint package&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FROM ( AFKO                        "afko: Order header&lt;/P&gt;&lt;P&gt;         INNER JOIN AUFK             "aufk: Order master data.&lt;/P&gt;&lt;P&gt;         ON  AUFK&lt;SUB&gt;AUFNR = AFKO&lt;/SUB&gt;AUFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         INNER JOIN AFIH             "afih: Maint order header&lt;/P&gt;&lt;P&gt;         ON  AFIH&lt;SUB&gt;AUFNR = AUFK&lt;/SUB&gt;AUFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         INNER JOIN ILOA             "iloa: PM Obj Loc &amp;amp; Acct Assgmt&lt;/P&gt;&lt;P&gt;         ON  ILOA&lt;SUB&gt;ILOAN = AFIH&lt;/SUB&gt;ILOAN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         INNER JOIN caufv             "&lt;/P&gt;&lt;P&gt;         ON  caufv&lt;SUB&gt;AUFNR = AFKO&lt;/SUB&gt;AUFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         INNER JOIN AFVC             "afvc: Operation within an order&lt;/P&gt;&lt;P&gt;         ON  AFVC&lt;SUB&gt;AUFPL = CAUFV&lt;/SUB&gt;AUFPL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         INNER JOIN AFVV             "afvv: qty/dates in operation&lt;/P&gt;&lt;P&gt;         ON  AFVV&lt;SUB&gt;AUFPL = AFKO&lt;/SUB&gt;AUFPL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         INNER JOIN CRHD             "crhd: Work Center Header&lt;/P&gt;&lt;P&gt;         ON  CRHD&lt;SUB&gt;OBJID = AFVC&lt;/SUB&gt;ARBID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         INNER JOIN PLAS&lt;/P&gt;&lt;P&gt;         ON  PLAS&lt;SUB&gt;PLNTY = AFVC&lt;/SUB&gt;PLNTY&lt;/P&gt;&lt;P&gt;         AND PLAS&lt;SUB&gt;PLNNR = AFVC&lt;/SUB&gt;PLNNR&lt;/P&gt;&lt;P&gt;         AND PLAS&lt;SUB&gt;PLNAL = AFVC&lt;/SUB&gt;PLNAL	&lt;/P&gt;&lt;P&gt;         AND PLAS&lt;SUB&gt;ZAEHL = AFVC&lt;/SUB&gt;ZAEHL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         INNER JOIN PLWP&lt;/P&gt;&lt;P&gt;         ON  PLWP&lt;SUB&gt;PLNTY = AFVC&lt;/SUB&gt;PLNTY&lt;/P&gt;&lt;P&gt;         AND PLWP&lt;SUB&gt;PLNNR = PLAS&lt;/SUB&gt;PLNNR&lt;/P&gt;&lt;P&gt;         AND PLWP&lt;SUB&gt;PLNAL = PLAS&lt;/SUB&gt;PLNAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         INNER JOIN MHIS             "mhis: Maint plan history&lt;/P&gt;&lt;P&gt;         ON MHIS&lt;SUB&gt;ZAEHL = PLWP&lt;/SUB&gt;PAKET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         LEFT OUTER JOIN MPOS        "mpos: Maint item&lt;/P&gt;&lt;P&gt;         ON  MPOS&lt;SUB&gt;WAPOS = AFIH&lt;/SUB&gt;WAPOS&lt;/P&gt;&lt;P&gt;         )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  INTO TABLE I_CO_MH3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WHERE      AFKO~GSTRS IN S_DATES    "Order scheduled start date&lt;/P&gt;&lt;P&gt;         AND AFKO~GSTRS IN R_ONE_YEAR "Restriction by year&lt;/P&gt;&lt;P&gt;         AND ILOA~TPLNR IN S_TPLNR    "func location input&lt;/P&gt;&lt;P&gt;         AND CRHD~OBJTY =  'A'        "Object types of CIM resource&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 14:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693254#M304293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T14:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for Join.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693255#M304294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks to me that your problem has more to do with the use of indexes rather than the join. Although there is an index on TPLNR in ILOA and OBJTY in CRHD, I don't think they will be restrictive enough to help much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 14:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693255#M304294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T14:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for Join.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693256#M304295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob thanks for the advice.&lt;/P&gt;&lt;P&gt;Can you please elaborate a bit more on this, and how how can we make this work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 14:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693256#M304295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T14:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for Join.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693257#M304296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu've used CAUFV in the  join, it's is a view for tables AFKO and AUFK. Take it out from join and use &lt;/P&gt;&lt;P&gt;ON AFVC&lt;SUB&gt;AUFPL = AFKO&lt;/SUB&gt;AUFPL in the next join condition with AFVC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 14:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693257#M304296</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-10-27T14:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for Join.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693258#M304297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I'm not sure I can. I was just trying to get you to find the source of the problem rather than just assuming the join was the sole source. I think you need to examine your logic to determine why you are selecting these fields from these tables using your selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 14:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-join/m-p/1693258#M304297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T14:31:19Z</dc:date>
    </item>
  </channel>
</rss>

