<?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 Performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395121#M191529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even i have break up join into select statement but still performance is slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even i have created index on MSEG on the required fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any thing that i have to mention in ABAP for indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2006 11:35:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-10T11:35:23Z</dc:date>
    <item>
      <title>Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395108#M191516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m using this particular inner join.&lt;/P&gt;&lt;P&gt;The performance is quite good in development system but in Prod. System performance become very low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT G&lt;SUB&gt;MBLNR G&lt;/SUB&gt;BWART G&lt;SUB&gt;XAUTO G&lt;/SUB&gt;MENGE G&lt;SUB&gt;DMBTR F&lt;/SUB&gt;BUDAT F~XBLNR&lt;/P&gt;&lt;P&gt;INTO TABLE IT_TEMP&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;MSEG AS G&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;MKPF AS F&lt;/P&gt;&lt;P&gt;ON G&lt;SUB&gt;MBLNR = F&lt;/SUB&gt;MBLNR AND&lt;/P&gt;&lt;P&gt;G&lt;SUB&gt;MJAHR = F&lt;/SUB&gt;MJAHR&lt;/P&gt;&lt;P&gt;WHERE G~BWART IN ('101','102','601','602','309','321','322') AND&lt;/P&gt;&lt;P&gt;G~MATNR EQ IT_MARA-MATNR&lt;/P&gt;&lt;P&gt;AND G~WERKS IN PLANT&lt;/P&gt;&lt;P&gt;AND G~LGORT IN S_LGORT&lt;/P&gt;&lt;P&gt;AND F~BUDAT GE VARDATELOW&lt;/P&gt;&lt;P&gt;AND F~BUDAT LE VARDATEHIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i can do to make the performance high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 07:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395108#M191516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T07:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395109#M191517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i  think  this   code  is  ok. if  it  is  possible  add  more  key  field  other  wise  it  looks   very  sound....&lt;/P&gt;&lt;P&gt;performance  problem   is  due   to another  part  of  code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ya  in devlopment  system it  is  work  fine  becoz  in production there  are  mass  of  data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 08:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395109#M191517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T08:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395110#M191518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, i dunno the precedings of this code. but is there a select option for any of the key fields of these tables say MBLNR on selection screen? I think that's the only way to improve the performance. Also you have given a range of BWART so to say in ur code. it's very much identical to creating a range. Instead of that if u can create an internal table for the same and then use for all entries in ur slect statement, it'll still improve the performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 08:41:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395110#M191518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T08:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395111#M191519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)I had doubt regarding the statement in WHERE conidition in your select query(G~MATNR EQ IT_MARA-MATNR).&lt;/P&gt;&lt;P&gt;2)If you are specifying this from internal table value then your SELECT will be in LOOP...ENDLOOP.&lt;/P&gt;&lt;P&gt;3)If this the case, then avoid SELECT statement between LOOP...ENDLOOP.This makes your performance very low.&lt;/P&gt;&lt;P&gt;4)If this the case, then write SELECT query with out G~MATNR EQ IT_MARA-MATNR in where condition and Have this condition on IT_TEMP after retriving the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 08:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395111#M191519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T08:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395112#M191520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;this is because the data load will be more on production system than the development system.&lt;/P&gt;&lt;P&gt;so split your joins and replace it with &amp;lt;b&amp;gt;FOR ALL ENTRIES&amp;lt;/b&amp;gt; for better performance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 08:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395112#M191520</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-07-10T08:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395113#M191521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The sql is fine, but&lt;/P&gt;&lt;P&gt;   i would personally suggest the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Since MSEG and MKPF are   &lt;/P&gt;&lt;P&gt;   HEAVY TRANSACTION TABLES,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. We should AVOID Using joins, on such tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;4. The ideal way is to,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   a) fetch first data from any one table. eg MKPF&lt;/P&gt;&lt;P&gt;      in an internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   b) then fetch data from MSEG&lt;/P&gt;&lt;P&gt;     using FOR ALL ENTRIES concept.&lt;/P&gt;&lt;P&gt;  &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. INTERNAL TABLE CONCEPT&lt;/P&gt;&lt;P&gt;  -- Thats the BEAUTY of ABAP Lanaguage,&lt;/P&gt;&lt;P&gt;     which SAP has introduced.&lt;/P&gt;&lt;P&gt;  -- Instead of pulling data from database,&lt;/P&gt;&lt;P&gt;     in ONE SHOT,&lt;/P&gt;&lt;P&gt;     we should use INTERNAL TABLES,&lt;/P&gt;&lt;P&gt;     as an intermediate,&lt;/P&gt;&lt;P&gt;     and get the data in STEPS,&lt;/P&gt;&lt;P&gt;     (instead of getting using EXTENSIVE JOINS, &lt;/P&gt;&lt;P&gt;     and taxing the database)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 08:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395113#M191521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T08:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395114#M191522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur prompt replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m using it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT MBLNR BWART XAUTO MENGE DMBTR&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF IT_TEMP&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  FOR ALL ENTRIES IN IT_MARA&amp;lt;/b&amp;gt;  FROM MSEG&lt;/P&gt;&lt;P&gt;  WHERE&lt;/P&gt;&lt;P&gt;  BWART IN ('101','102','601','602','309','321','322') AND&lt;/P&gt;&lt;P&gt;  MATNR = IT_MARA-MATNR AND&lt;/P&gt;&lt;P&gt;  WERKS IN PLANT AND&lt;/P&gt;&lt;P&gt;  LGORT IN S_LGORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It_mara contains the matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it gives the error:&lt;/P&gt;&lt;P&gt;Unable to interpret FOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m using 4.6B&lt;/P&gt;&lt;P&gt;Is it valid in 4.6 B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 09:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395114#M191522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T09:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395115#M191523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Sachin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following Code modification&lt;/P&gt;&lt;P&gt;if not IT_MARA[] is initial.&lt;/P&gt;&lt;P&gt;SELECT MBLNR &lt;/P&gt;&lt;P&gt;       MJAHR&lt;/P&gt;&lt;P&gt;       BWART &lt;/P&gt;&lt;P&gt;       XAUTO &lt;/P&gt;&lt;P&gt;       MENGE &lt;/P&gt;&lt;P&gt;       DMBTR &lt;/P&gt;&lt;P&gt;       INTO TABLE IT_MSEG&lt;/P&gt;&lt;P&gt;       WHERE BWART IN ('101','102','601','602','309','321','322') AND&lt;/P&gt;&lt;P&gt;             MATNR EQ IT_MARA-MATNR AND&lt;/P&gt;&lt;P&gt;             WERKS IN PLANT AND&lt;/P&gt;&lt;P&gt;             LGORT IN S_LGORT.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt; SORT IT_MSEG BY MBLNR MJAHR.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT IT_MSEG[] IS INITIAL.&lt;/P&gt;&lt;P&gt;SELECT BUDAT &lt;/P&gt;&lt;P&gt;       XBLNR&lt;/P&gt;&lt;P&gt;       INTO TABLE IT_mkpf&lt;/P&gt;&lt;P&gt;       FROM MKPF &lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN IT_MSEG       &lt;/P&gt;&lt;P&gt;       WHERE MBLNR = IT_MSEG-MBLNR AND&lt;/P&gt;&lt;P&gt;             MJAHR = IT_MSEG-MJAHR AND&lt;/P&gt;&lt;P&gt;             BUDAT BETWEEN VARDATELOW AND VARDATEHIGH.&lt;/P&gt;&lt;P&gt;ENDIF.&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;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sreenivasulu Ponnadi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 09:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395115#M191523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T09:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395116#M191524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. it should be some thing like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MBLNR BWART XAUTO MENGE DMBTR&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FROM MSEG&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF IT_TEMP&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FOR ALL ENTRIES IN IT_MARA &lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;MATNR = IT_MARA-MATNR&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;AND BWART IN ('101','102','601','602','309','321','322') AND WERKS IN PLANT &lt;/P&gt;&lt;P&gt;AND LGORT IN S_LGORT.&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 09:08:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395116#M191524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T09:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395117#M191525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MBLNR BWART XAUTO MENGE DMBTR&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF table IT_TEMP&lt;/P&gt;&lt;P&gt;FROM MSEG&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_MARA&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;BWART IN ('101','102','601','602','309','321','322') AND&lt;/P&gt;&lt;P&gt;MATNR = IT_MARA-MATNR AND&lt;/P&gt;&lt;P&gt;WERKS IN PLANT AND&lt;/P&gt;&lt;P&gt;LGORT IN S_LGORT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 09:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395117#M191525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T09:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395118#M191526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Use the fields in the where condition in this order shown below &lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;WERKS&lt;/P&gt;&lt;P&gt;LGORT&lt;/P&gt;&lt;P&gt;BWART&lt;/P&gt;&lt;P&gt;and BUDAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now run this statement in PROD, and check in SE30 the perfomance of the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishnaraju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 10:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395118#M191526</guid>
      <dc:creator>vrkrishnaraju_mudunuri</dc:creator>
      <dc:date>2006-07-10T10:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395119#M191527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See that u select the fields in Select stmt in database table order.It has a maximum impact on performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 10:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395119#M191527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T10:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395120#M191528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;
SELECT G~MBLNR G~BWART G~XAUTO G~MENGE G~DMBTR F~BUDAT F~XBLNR
INTO TABLE IT_TEMP
FROM
MSEG AS G
INNER JOIN
MKPF AS F
ON G~MBLNR = F~MBLNR AND
G~MJAHR = F~MJAHR
WHERE G~BWART IN R_BWART AND
G~MATNR EQ IT_MARA-MATNR--&amp;gt; Dont Use For all Entries ( try to make use of Ranges ) like marnt in r_matnr.
AND G~WERKS IN PLANT
AND G~LGORT IN S_LGORT
AND F~BUDAT GE VARDATELOW
AND F~BUDAT LE VARDATEHIGH.&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and try to use / create secondary Indexess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 11:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395120#M191528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T11:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395121#M191529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even i have break up join into select statement but still performance is slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even i have created index on MSEG on the required fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any thing that i have to mention in ABAP for indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 11:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395121#M191529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T11:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395122#M191530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you are already using most of the fields in the secondary index on material, so I'd get rid of any index you created for this one program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check to see if PLANT or S_LGORT are empty. If either of them is, this could be your 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>Mon, 10 Jul 2006 13:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395122#M191530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T13:42:05Z</dc:date>
    </item>
  </channel>
</rss>

