<?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 Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117251#M443320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.Select Distinct will cause perfromance issues, try to select the entire data and then use delete adjacent duplicates statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Try using brackets as given below for the join:&lt;/P&gt;&lt;P&gt; FROM  ( ( zvcoss AS a JOIN zvcssl AS b &lt;/P&gt;&lt;P&gt;             ON a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr )&lt;/P&gt;&lt;P&gt;JOIN zkcsks AS c ON b&lt;SUB&gt;kostl = c&lt;/SUB&gt;kostl )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2007 12:24:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-11T12:24:47Z</dc:date>
    <item>
      <title>Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117246#M443315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This statement is taking more time.&lt;/P&gt;&lt;P&gt;How to improve the performance of this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT c&lt;SUB&gt;bukrs c&lt;/SUB&gt;waers c&lt;SUB&gt;prctr b&lt;/SUB&gt;kostl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;kstar a&lt;/SUB&gt;versn a~gjahr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;p001 a&lt;/SUB&gt;p002 a&lt;SUB&gt;p003 a&lt;/SUB&gt;p004 a&lt;SUB&gt;p005 a&lt;/SUB&gt;p006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;p007 a&lt;/SUB&gt;p008 a&lt;SUB&gt;p009 a&lt;/SUB&gt;p010 a&lt;SUB&gt;p011 a&lt;/SUB&gt;p012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;p013 a&lt;/SUB&gt;p014 a&lt;SUB&gt;p015 a&lt;/SUB&gt;p016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPENDING TABLE itab_temp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM zvcoss AS a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN zvcssl AS b ON a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN zkcsks AS c ON b&lt;SUB&gt;kostl = c&lt;/SUB&gt;kostl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE ( a~lednr EQ '00'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND a~versn EQ '000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND b~kostl IN r_ccde&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND a~wrttp EQ '04'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND a~gjahr EQ p_fy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND a~kstar GE '0000000000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND a~kstar LE '0000999999' ) .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 03:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117246#M443315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T03:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117247#M443316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to minimize conditins in where clasue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges : r_kstar for zvcoss-kstar.&lt;/P&gt;&lt;P&gt;r_kstar-option = 'BT'&lt;/P&gt;&lt;P&gt;r_kstar-sign   = 'I'&lt;/P&gt;&lt;P&gt;r_kstar-low    = '0000000000'.&lt;/P&gt;&lt;P&gt;r_kstar-high  = '0000999999' .&lt;/P&gt;&lt;P&gt;append r_kstar.&lt;/P&gt;&lt;P&gt;clear   r_kstar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AND a~kstar  in r_kstar.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 04:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117247#M443316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T04:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117248#M443317</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;Try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. do not use appending table clause.&lt;/P&gt;&lt;P&gt;2. use index keys in joins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 04:50:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117248#M443317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T04:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117249#M443318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jogdand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you tell me clearly abt the index key u have mentioned&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 05:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117249#M443318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T05:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117250#M443319</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;1.Avoid APPENDING CLAUSE in the select query.instead use temporary internal table and move into the final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Split the joins.&lt;/P&gt;&lt;P&gt;You can first go for a join on zkcsks and zvcssl  and fetch the required records.&lt;/P&gt;&lt;P&gt;delete the duplicate entries and check if the table is inital. and then for all entries to fetch the data from zvcoss .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 08:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117250#M443319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T08:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117251#M443320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.Select Distinct will cause perfromance issues, try to select the entire data and then use delete adjacent duplicates statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Try using brackets as given below for the join:&lt;/P&gt;&lt;P&gt; FROM  ( ( zvcoss AS a JOIN zvcssl AS b &lt;/P&gt;&lt;P&gt;             ON a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr )&lt;/P&gt;&lt;P&gt;JOIN zkcsks AS c ON b&lt;SUB&gt;kostl = c&lt;/SUB&gt;kostl )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 12:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117251#M443320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T12:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117252#M443321</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;please remove distinct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will try to modify the database when executing this select and the results can be quite dangerous.&lt;/P&gt;&lt;P&gt;even now if the perfromance does not improve try For all entries statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Sunder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 14:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2117252#M443321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T14:25:53Z</dc:date>
    </item>
  </channel>
</rss>

