<?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: SELECT AND PERFORM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034174#M717818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT inside a loop shud be avoided..since it interacts with the database on every loop cycle..which is not gud for performance tuning..the interaction with the&lt;/P&gt;&lt;P&gt;database shud b as less as possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However u r free to write any number of PERFORMS within a loop..&lt;/P&gt;&lt;P&gt;making sure dat der r not ant SELECTS within those performs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope dis helps..&lt;/P&gt;&lt;P&gt;Reward all helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2007 06:56:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-06T06:56:41Z</dc:date>
    <item>
      <title>SELECT AND PERFORM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034173#M717817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PLZ SEND ME IF I WRITE SELECT AND PERFORM STMTS B/W LOOP AND END LOOP THEN WHAT HAPPENS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 06:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034173#M717817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T06:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT AND PERFORM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034174#M717818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT inside a loop shud be avoided..since it interacts with the database on every loop cycle..which is not gud for performance tuning..the interaction with the&lt;/P&gt;&lt;P&gt;database shud b as less as possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However u r free to write any number of PERFORMS within a loop..&lt;/P&gt;&lt;P&gt;making sure dat der r not ant SELECTS within those performs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope dis helps..&lt;/P&gt;&lt;P&gt;Reward all helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 06:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034174#M717818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T06:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT AND PERFORM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034175#M717819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Nothing happens., It will create  a performance issue&lt;/P&gt;&lt;P&gt;say the LOOPED ITAB having 1 lakh records,&lt;/P&gt;&lt;P&gt;and in that loop you used a select to some database table&lt;/P&gt;&lt;P&gt;so for that 1 lakh records over that table is get locked every time  and consumes lot of time&lt;/P&gt;&lt;P&gt;so better fetch the data outside using for all entries into a itab and READ that itab in the loop and do it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 06:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034175#M717819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T06:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT AND PERFORM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034176#M717820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP has a 3-tier architecture.....wherein you have a presentation server(SAP GUI) , APPlication server (where abap programs are run) and the database server from where the data is fetched. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select statements are sent to the database server. Loops are executed at the application server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus if you have select statements inside loops, you will be repeatedly fetching data from the database server eachtime loop is executed (thereby affecting the performance of your program). better way is to first fetch all the required data in a single shot and then use it in the program. &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;Priyank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Priyank Jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 06:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034176#M717820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T06:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT AND PERFORM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034177#M717821</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;NOTE : Don't use Select statement with in loop it causes number of hits on database, so it decrease the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose if interna table contain 1lack records&lt;/P&gt;&lt;P&gt;Now if use select with loop internal table (1 lacks records) then program should hit the database 1 lack times and retrieview data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this situation, use the for all entries to select the data corresponding internal table before the loop.&lt;/P&gt;&lt;P&gt;with in loop we can use READ statement to get records form itab.... which increase the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in  the same case for perorm &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 07:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034177#M717821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T07:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT AND PERFORM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034178#M717822</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;Its a good Practice of Not using Select within the LOOP..ENDLOOP..&lt;/P&gt;&lt;P&gt;Only for the Performance Reasons...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this you can Use  for All Entries  for the table in whose LOOP ..ENDLOOP.. Select is being Used..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within LOOP ...ENDLOOP u can use Read Statement to fetch records obtained by For All Entries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it clears to some extent..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 07:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-perform/m-p/3034178#M717822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T07:11:59Z</dc:date>
    </item>
  </channel>
</rss>

