<?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: optimizing the code for better performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-the-code-for-better-performance/m-p/3866851#M929316</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;did u run this through st05? and are all the values are passed to all the fields in where condition ??? if yes, then imporvement on this select is difficult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhumitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2008 13:12:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-09T13:12:30Z</dc:date>
    <item>
      <title>optimizing the code for better performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-the-code-for-better-performance/m-p/3866850#M929315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Frds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program performance is getting degraded because of the below select statement which fetches the &lt;STRONG&gt;OBJECTID&lt;/STRONG&gt;  from &lt;STRONG&gt;CDHDR&lt;/STRONG&gt; table for the &lt;STRONG&gt;given period&lt;/STRONG&gt; and the &lt;STRONG&gt;T code VA02.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select   objectid&lt;/P&gt;&lt;P&gt;    from   cdhdr&lt;/P&gt;&lt;P&gt;     into   table gt_itab&lt;/P&gt;&lt;P&gt;  where   objectclas  in  lr_objectclas&lt;/P&gt;&lt;P&gt;     and   objectid    in  lr_objectid&lt;/P&gt;&lt;P&gt;     and   changenr    in  lr_changenr&lt;/P&gt;&lt;P&gt;     and   username    in  lr_user&lt;/P&gt;&lt;P&gt;     and   udate       in  s_date&lt;/P&gt;&lt;P&gt;     and   utime       in  lr_utime&lt;/P&gt;&lt;P&gt;     and   tcode       =   'VA02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have tried with the primary key sequence and also by selecting the distinct data. Still it is taking more time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do needful to tune this for better performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 12:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-the-code-for-better-performance/m-p/3866850#M929315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T12:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing the code for better performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-the-code-for-better-performance/m-p/3866851#M929316</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;did u run this through st05? and are all the values are passed to all the fields in where condition ??? if yes, then imporvement on this select is difficult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhumitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 13:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-the-code-for-better-performance/m-p/3866851#M929316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T13:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing the code for better performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-the-code-for-better-performance/m-p/3866852#M929317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check SQL trace:&lt;/P&gt;&lt;P&gt;/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order of the fields in the where condition is nearyl irrelevant, it is important which inclause are filled&lt;/P&gt;&lt;P&gt;see details in SQL Trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check Explain for this statement to see what index is taken, is it the primary key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise come back with duration, executions and records for this select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 14:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-the-code-for-better-performance/m-p/3866852#M929317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T14:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing the code for better performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-the-code-for-better-performance/m-p/3866853#M929318</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;replace your where condition by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTCLASS = VERKBELEG &lt;/P&gt;&lt;P&gt;OBJECTID = order number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regrads,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 16:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-the-code-for-better-performance/m-p/3866853#M929318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T16:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing the code for better performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-the-code-for-better-performance/m-p/3866854#M929319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reddy!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try writing only those fields that u want to put ur conditions on in where condition.&lt;/P&gt;&lt;P&gt;Also are u using ranges that u have used "in" in where condition.&lt;/P&gt;&lt;P&gt;Try "=" option..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also c to it that u dnt use select query widin loop-endloop.This also degrades the performence....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * single objectid&lt;/P&gt;&lt;P&gt;from cdhdr&lt;/P&gt;&lt;P&gt;into table gt_itab&lt;/P&gt;&lt;P&gt;where objectclas = lr_objectclas&lt;/P&gt;&lt;P&gt;and tcode = 'VA02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2008 01:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-the-code-for-better-performance/m-p/3866854#M929319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-10T01:43:13Z</dc:date>
    </item>
  </channel>
</rss>

