<?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: performance tuning problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363622#M1234405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please adopt following methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Please write separate SELECT statments so query will be faster since join on three table takes lot of  &lt;DEL&gt;memory&lt;/DEL&gt; time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. User database view to select data from EKKO and EKPO and then select data from EKET table since you have user  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; AND eket~rsnum NE space &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; to restrict EKET table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Please get all the key fields in WHERE conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use ST05 trace to check if indexes are used by optimizer to select data or table is scanned. &lt;/P&gt;&lt;P&gt;If it is scanned then you need to rewrite the WHERE clause.&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;&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sunil Sawaikar on Mar 23, 2009 12:38 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sunil Sawaikar on Mar 24, 2009 7:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2009 11:36:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-23T11:36:26Z</dc:date>
    <item>
      <title>performance tuning problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363619#M1234402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a select query as shown below. here i am facing the performance issue with the this query. can any one plz suggest the better way to optimize the performance of this query....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  ekko&lt;SUB&gt;ebeln  ekko&lt;/SUB&gt;loekz  ekko&lt;SUB&gt;lifnr  ekko&lt;/SUB&gt;ekorg  ekko~ekgrp&lt;/P&gt;&lt;P&gt;          ekpo&lt;SUB&gt;werks  ekpo&lt;/SUB&gt;pstyp  ekpo&lt;SUB&gt;loekz  ekpo&lt;/SUB&gt;elikz  ekpo~menge&lt;/P&gt;&lt;P&gt;         ekpo&lt;SUB&gt;matnr  eket&lt;/SUB&gt;ebeln  eket&lt;SUB&gt;ebelp  eket&lt;/SUB&gt;etenr  eket~rsnum&lt;/P&gt;&lt;P&gt;          eket~eindt INTO&lt;/P&gt;&lt;P&gt;        (ekko-ebeln, ekko-loekz, ekko-lifnr, ekko-ekorg, ekko-ekgrp,&lt;/P&gt;&lt;P&gt;         ekpo-werks, ekpo-pstyp, ekpo-loekz, ekpo-elikz, ekpo-menge,&lt;/P&gt;&lt;P&gt;          ekpo-matnr, eket-ebeln, eket-ebelp, eket-etenr, eket-rsnum,&lt;/P&gt;&lt;P&gt;          eket-eindt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             FROM eket INNER JOIN ekpo&lt;/P&gt;&lt;P&gt;               ON ( eket&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln AND&lt;/P&gt;&lt;P&gt;                    eket&lt;SUB&gt;ebelp = ekpo&lt;/SUB&gt;ebelp )&lt;/P&gt;&lt;P&gt;                       INNER JOIN ekko&lt;/P&gt;&lt;P&gt;               ON ( ekpo&lt;SUB&gt;ebeln = ekko&lt;/SUB&gt;ebeln )&lt;/P&gt;&lt;P&gt;               WHERE  ekko~ebeln       IN ebeln&lt;/P&gt;&lt;P&gt;               AND    ekko~loekz       EQ ' '&lt;/P&gt;&lt;P&gt;               AND    ekko~lifnr       IN lifnr&lt;/P&gt;&lt;P&gt;               AND    ekko~ekorg       IN ekorg&lt;/P&gt;&lt;P&gt;               AND    ekko~ekgrp       IN ekgrp&lt;/P&gt;&lt;P&gt;              AND    ekpo~werks       IN werks&lt;/P&gt;&lt;P&gt;               AND    ekpo~pstyp       EQ  '3'&lt;/P&gt;&lt;P&gt;               AND    ekpo~loekz       EQ  space&lt;/P&gt;&lt;P&gt;               AND    ekpo~elikz       EQ  space&lt;/P&gt;&lt;P&gt;               AND    ekpo~menge       NE  0&lt;/P&gt;&lt;P&gt;               AND    eket~rsnum       NE space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some statements...&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 11:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363619#M1234402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T11:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363620#M1234403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
WHERE ekko~ebeln IN ebeln
AND ekko~loekz EQ ' '
AND ekko~lifnr IN lifnr
AND ekko~ekorg IN ekorg
AND ekko~ekgrp IN ekgrp
AND ekpo~werks IN werks
AND ekpo~pstyp EQ '3'
AND ekpo~loekz EQ space
AND ekpo~elikz EQ space
AND ekpo~menge NE 0
AND eket~rsnum NE space.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please add which IN clauses are actually filled !!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 11:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363620#M1234403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T11:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363621#M1234404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT.....ENDSELECT Degrades the preformance.It increases the database hits.&lt;/P&gt;&lt;P&gt;So more number of hits degrades performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use array operation...(i.e INTO TABLE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT &amp;lt;FIELDS&amp;gt; FORM &amp;lt;TABLE&amp;gt; INTO TABLE &amp;lt;ITAB&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 11:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363621#M1234404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T11:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363622#M1234405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please adopt following methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Please write separate SELECT statments so query will be faster since join on three table takes lot of  &lt;DEL&gt;memory&lt;/DEL&gt; time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. User database view to select data from EKKO and EKPO and then select data from EKET table since you have user  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; AND eket~rsnum NE space &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; to restrict EKET table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Please get all the key fields in WHERE conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use ST05 trace to check if indexes are used by optimizer to select data or table is scanned. &lt;/P&gt;&lt;P&gt;If it is scanned then you need to rewrite the WHERE clause.&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;&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sunil Sawaikar on Mar 23, 2009 12:38 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sunil Sawaikar on Mar 24, 2009 7:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 11:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363622#M1234405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T11:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363623#M1234406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; 1. Please write separate SELECT statments so query will be faster since join on&lt;/P&gt;&lt;P&gt;&amp;gt;  three table takes lot of memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nonsense ... sorry, politeness does not help to stop this repeated nonsense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is simply incorrect!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 12:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363623#M1234406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T12:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363624#M1234407</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;we are filling ekorg and werks feilds in the selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 05:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363624#M1234407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T05:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363625#M1234408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi:&lt;/P&gt;&lt;P&gt; i would advice to use function module ADSPCM_READ_EKPO_ALL, instead of select statement &lt;/P&gt;&lt;P&gt;Where the matter of conditions are concerned , which can be taken in under loops.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 05:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363625#M1234408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T05:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363626#M1234409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sashi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That function module ADSPCM_READ_EKPO_ALL is not available in my system.&lt;/P&gt;&lt;P&gt;is it standard one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dharani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 13:53:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-problem/m-p/5363626#M1234409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T13:53:25Z</dc:date>
    </item>
  </channel>
</rss>

