<?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/5742964#M1301919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veeraphol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You Should use the fields of a table in the Select statement in a sequence order &lt;STRONG&gt;to have a better Performance.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depeding upon the requirement we can use the Select &amp;amp; Endselect Loop...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2009 02:46:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-10T02:46:04Z</dc:date>
    <item>
      <title>Performance issue ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742962#M1301917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question sequence of field in select statement is impact with performance or not ? Please see the two select statement as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_bukrs TYPE bkpf-bukrs,&lt;/P&gt;&lt;P&gt;      l_belnr TYPE bkpf-belnr,&lt;/P&gt;&lt;P&gt;      l_gjahr TYPE bkpf-gjahr,&lt;/P&gt;&lt;P&gt;      l_blart TYPE bkpf-blart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_bukrs TYPE bkpf-bukrs,&lt;/P&gt;&lt;P&gt;            p_belnr TYPE bkpf-belnr,&lt;/P&gt;&lt;P&gt;            p_gjahr TYPE bkpf-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bukrs belnr gjahr blart&lt;/P&gt;&lt;P&gt;       INTO (l_bukrs,l_belnr,l_gjahr,l_blart)&lt;/P&gt;&lt;P&gt;FROM bkpf&lt;/P&gt;&lt;P&gt;WHERE bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;AND   belnr = p_belnr&lt;/P&gt;&lt;P&gt;AND   gjahr = p_gjahr.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This select statement is low performance if comparing with above select statement&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT blart gjahr belnr bukrs&lt;/P&gt;&lt;P&gt;       INTO (l_blart,l_gjahr,l_belnr,l_bukrs)&lt;/P&gt;&lt;P&gt;FROM bkpf&lt;/P&gt;&lt;P&gt;WHERE bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;AND   belnr = p_belnr&lt;/P&gt;&lt;P&gt;AND   gjahr = p_gjahr.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 02:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742962#M1301917</guid>
      <dc:creator>former_member722164</dc:creator>
      <dc:date>2009-06-10T02:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742963#M1301918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi veeraphol theamthong-on, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all as You Would know Using &lt;STRONG&gt;SELECT and ENDSELECT&lt;/STRONG&gt; is not a good practise (Its similar to We are fetching data from &lt;STRONG&gt;BKPF&lt;/STRONG&gt; in a loop).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We should Fetch data from &lt;STRONG&gt;BKPF&lt;/STRONG&gt; in to a Internal Table and then process with our logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT bukrs belnr gjahr blart
INTO (l_bukrs,l_belnr,l_gjahr,l_blart)
FROM bkpf
WHERE bukrs = p_bukrs
AND belnr = p_belnr
AND gjahr = p_gjahr.
ENDSELECT.

* This select statement is low performance if comparing with above select statement
" Yes because missing in the sequence of Key Fields. 
SELECT blart gjahr belnr bukrs
INTO (l_blart,l_gjahr,l_belnr,l_bukrs)
FROM bkpf
WHERE bukrs = p_bukrs
AND belnr = p_belnr
AND gjahr = p_gjahr.
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suneel G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 02:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742963#M1301918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T02:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742964#M1301919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veeraphol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You Should use the fields of a table in the Select statement in a sequence order &lt;STRONG&gt;to have a better Performance.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depeding upon the requirement we can use the Select &amp;amp; Endselect Loop...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 02:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742964#M1301919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T02:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742965#M1301920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must not use the select - endselect phrase for a system performence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the phrase, the system contects DB item by item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means the number of the commuting between application layer and dblayer is the same as the number of selected items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insted of doing this, you'd like to use select phrase with where phrase.&lt;/P&gt;&lt;P&gt;then you can minimize the commuting number. and it makes your system performance better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Jonghwan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: JONG HWAN PARK on Jun 10, 2009 4:55 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 02:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742965#M1301920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T02:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742966#M1301921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which T-Code for trace this performance ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 03:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742966#M1301921</guid>
      <dc:creator>former_member722164</dc:creator>
      <dc:date>2009-06-10T03:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742967#M1301922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try T-codes: ST05 (SQL Trace)&lt;/P&gt;&lt;P&gt;                   SE30&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 03:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742967#M1301922</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2009-06-10T03:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742968#M1301923</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;You should not use Select and end select.. And for better performance you should select in the same sequence as in the database... To check the performance of your program goto transaction SE30-&amp;gt;Give your program name and click on execute. Then execute your program completely once. Go back and then click on the 'Analyze' Button. You will be able to see the performance of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sneha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 03:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742968#M1301923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T03:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742969#M1301924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veeraphol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the Performance trace at ST05 or in SE30 Tcodes...&lt;/P&gt;&lt;P&gt;Also look for the documentation in SE30 for a good performance usage Guides,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 04:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5742969#M1301924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T04:41:22Z</dc:date>
    </item>
  </channel>
</rss>

