<?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: Query optimizaing for performance tune in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056199#M1502670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 06:18:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-22T06:18:30Z</dc:date>
    <item>
      <title>Query optimizaing for performance tune</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056194#M1502665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;              The below  query is taking a lot of time to execute.The main problem is with table S022.This table is going for full table scan everytime  even if we give a lot of selection criteria.So is there any alternate table for S022.In selection screen the mandatory fields are Location,plant and Phase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT a~aufnr      "Order number&lt;/P&gt;&lt;P&gt;         e~arbpl      "Work center&lt;/P&gt;&lt;P&gt;         e~plnum      "Plaaned order&lt;/P&gt;&lt;P&gt;         b~objnr      "Object number&lt;/P&gt;&lt;P&gt;         a~werks      "plant&lt;/P&gt;&lt;P&gt;         c~charg      "Batch&lt;/P&gt;&lt;P&gt;         d~gamng      "qty&lt;/P&gt;&lt;P&gt;         d~gmein      "UOM&lt;/P&gt;&lt;P&gt;         d~plnbez     "Material&lt;/P&gt;&lt;P&gt;         d~aufpl      "routing no&lt;/P&gt;&lt;P&gt;         d~aprio      "Order priority&lt;/P&gt;&lt;P&gt;         d~fevor      "Responsible planner group/department&lt;/P&gt;&lt;P&gt;         f~aufpl      "Routing no&lt;/P&gt;&lt;P&gt;         f~aplzl      "general counter&lt;/P&gt;&lt;P&gt;         f~vornr      "Phase&lt;/P&gt;&lt;P&gt;         f~arbid      "workcenter&lt;/P&gt;&lt;P&gt;         f~ltxa1      "text&lt;/P&gt;&lt;P&gt;         g~objty      "Object type&lt;/P&gt;&lt;P&gt;         g~stand      " Location&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF TABLE t_afpo&lt;/P&gt;&lt;P&gt;          FROM (  (  ( (  ( s022 AS e&lt;/P&gt;&lt;P&gt;                      INNER JOIN aufk AS a ON   a&lt;SUB&gt;aufnr = e&lt;/SUB&gt;aufnr )&lt;/P&gt;&lt;P&gt;                      INNER JOIN jest AS b ON   a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr )&lt;/P&gt;&lt;P&gt;                      INNER JOIN afpo AS c ON   c&lt;SUB&gt;aufnr = a&lt;/SUB&gt;aufnr&lt;/P&gt;&lt;P&gt;                                           AND  a&lt;SUB&gt;werks = c&lt;/SUB&gt;dwerk )&lt;/P&gt;&lt;P&gt;                      INNER JOIN afko AS d ON   d&lt;SUB&gt;aufnr = c&lt;/SUB&gt;aufnr&lt;/P&gt;&lt;P&gt;                      INNER JOIN afvc AS f ON   f&lt;SUB&gt;aufpl   = d&lt;/SUB&gt;aufpl&lt;/P&gt;&lt;P&gt;                                           AND  f&lt;SUB&gt;vornr   = e&lt;/SUB&gt;vornr )&lt;/P&gt;&lt;P&gt;                     INNER JOIN crhd AS g ON    g&lt;SUB&gt;arbpl = e&lt;/SUB&gt;arbpl&lt;/P&gt;&lt;P&gt;                                               AND g&lt;SUB&gt;objid = f&lt;/SUB&gt;arbid )&lt;/P&gt;&lt;P&gt;            WHERE    a~werks  IN s_werks&lt;/P&gt;&lt;P&gt;            AND      d~plnbez IN s_matnr&lt;/P&gt;&lt;P&gt;            AND      d~fevor  IN s_fevor&lt;/P&gt;&lt;P&gt;            AND      e~arbpl  IN s_arbpl&lt;/P&gt;&lt;P&gt;            AND      e~aufnr  IN s_aufnr&lt;/P&gt;&lt;P&gt;            AND      a~auart  IN r_auart&lt;/P&gt;&lt;P&gt;            AND      e~ssavd  IN s_date&lt;/P&gt;&lt;P&gt;            AND      e~vornr  IN s_vornr&lt;/P&gt;&lt;P&gt;            AND      g~stand   IN s_stand&lt;/P&gt;&lt;P&gt;            AND      a~loekz  NE 'X'&lt;/P&gt;&lt;P&gt;            AND      b~stat = c_i0002&lt;/P&gt;&lt;P&gt;            AND      b~inact = space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 05:25:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056194#M1502665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T05:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Query optimizaing for performance tune</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056195#M1502666</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;i would suggest that dont put too many joins in the select statement..&lt;/P&gt;&lt;P&gt;if possible try to put mulitple select statements using "for all entries".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also join the table only with key fields so that the data fetching will be more faster..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are not able to use the key fields try with index fields provided by SAP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if that is also not working then create Zindex field for the table which is using more time to fetch the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 06:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056195#M1502666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T06:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query optimizaing for performance tune</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056196#M1502667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JK,&lt;/P&gt;&lt;P&gt;          You mean to say Zindex for the SAP standard tables?..Please elaborate in detail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 06:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056196#M1502667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T06:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query optimizaing for performance tune</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056197#M1502668</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;Sorry for the late response. i was on vacation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes.. we can create Zindex in the standard table which will act as an secondary index and will reterive the data faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 07:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056197#M1502668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-22T07:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query optimizaing for performance tune</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056198#M1502669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JK, could you please tell me the procedure for that..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 11:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056198#M1502669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-27T11:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Query optimizaing for performance tune</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056199#M1502670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 06:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-optimizaing-for-performance-tune/m-p/7056199#M1502670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-22T06:18:30Z</dc:date>
    </item>
  </channel>
</rss>

