<?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: RE: performance issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272980#M1019501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually Thomas is right,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first you should check which tables are buffered! You should not remove select single on buffered tables from a loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the FOR ALL ENTRIES will not use the buffer (for single record buffers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should remove the select on unbuffered tables, and use FOR ALL ENTRIES into SORTED TABLES and use a read with key inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as allways, run traces first, maybe you actual performance problem is somewhere else!&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, 08 Aug 2008 07:37:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-08T07:37:02Z</dc:date>
    <item>
      <title>RE: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272974#M1019495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my report I am written 10 select statements in a loop.&lt;/P&gt;&lt;P&gt;How can we avoid this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can I replace with read 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;Regards,&lt;/P&gt;&lt;P&gt;sampath .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 12:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272974#M1019495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T12:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: RE: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272975#M1019496</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 may increase the performance of select statements by how you write them, not how many you write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 12:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272975#M1019496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T12:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: RE: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272976#M1019497</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 have to aviod select inside a loop... AS FAR AS POSSIBLE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather you use the loop and then read statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also run the transaction ST05 and ST30 and check the difference after the change...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These help you to analyse the performance...&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;sk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 12:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272976#M1019497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T12:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: RE: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272977#M1019498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hard to say based on the information provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select only few different values from &lt;STRONG&gt;buffered&lt;/STRONG&gt; tables using the full primary key, then there is no problem.&lt;/P&gt;&lt;P&gt;If you select many different values from tables that are not buffered, you should consider reading all entries into sorted tables before the loop, then access the entries inside the loop using read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 12:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272977#M1019498</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-08-07T12:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: RE: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272978#M1019499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sampath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It s better to avoid select statements inside the loop.&lt;/P&gt;&lt;P&gt;Instead select the data using FOR ALL ENTRIES and then read them using READ TABLE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prem Karthick on Aug 7, 2008 2:56 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 12:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272978#M1019499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T12:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: RE: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272979#M1019500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sampath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First write all the select statements outside the loop and define a relationship between those tables, such that there should be a link between all those tables  and then loop the item table.&lt;/P&gt;&lt;P&gt;Then read the internal tables inside the loop by using read statement with the fileds having  proper relationship.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 13:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272979#M1019500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T13:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: RE: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272980#M1019501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually Thomas is right,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first you should check which tables are buffered! You should not remove select single on buffered tables from a loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the FOR ALL ENTRIES will not use the buffer (for single record buffers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should remove the select on unbuffered tables, and use FOR ALL ENTRIES into SORTED TABLES and use a read with key inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as allways, run traces first, maybe you actual performance problem is somewhere else!&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, 08 Aug 2008 07:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-performance-issue/m-p/4272980#M1019501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T07:37:02Z</dc:date>
    </item>
  </channel>
</rss>

