<?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 statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682588#M620164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its advisable not to use select statement inside he loop , definitely, it ll reduce the performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2007 14:07:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-09T14:07:03Z</dc:date>
    <item>
      <title>select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682580#M620156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai friends,&lt;/P&gt;&lt;P&gt; Can we use SELECT statement in LOOP ... ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, what about the performance, can it be same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 13:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682580#M620156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T13:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682581#M620157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;we shdn't use SELECT stmt within the loop it will decreases the performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 13:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682581#M620157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T13:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682582#M620158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Dont use the SELECT statement with in the loop it will effect the performance.&lt;/P&gt;&lt;P&gt;It will be better to select the data before using the loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;harris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 13:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682582#M620158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682583#M620159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use, but performance wise it is not preferable.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are hitting the database table 'n' number of times if you call it inside a loop. where 'n' is the number of records,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, write SELECT outside a loop, using FOR ALL ENTRIES.&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 13:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682583#M620159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T13:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682584#M620160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use the Select statment in the LOOP and ENDLOOP. But it is performance issue, so better write the select out of the LOOP and use the READ statment with in the LOOP.&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 13:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682584#M620160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T13:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682585#M620161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample code........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT EBELN                        " Purchasing Document Number&lt;/P&gt;&lt;P&gt;          ERNAM                        " Name of Person who Created&lt;/P&gt;&lt;P&gt;                                       " the Object&lt;/P&gt;&lt;P&gt;          LIFNR                        " Vendor's account number&lt;/P&gt;&lt;P&gt;          EKGRP                        " Purchasing group&lt;/P&gt;&lt;P&gt;          BEDAT                        " Purchasing Document Date&lt;/P&gt;&lt;P&gt;     FROM EKKO&lt;/P&gt;&lt;P&gt;    INTO T_EBELN&lt;/P&gt;&lt;P&gt;   WHERE EBELN IN S_EBELN&lt;/P&gt;&lt;P&gt;      AND BEDAT IN S_BEDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT OBJECTCLAS                  " Object Class&lt;/P&gt;&lt;P&gt;           OBJECTID                    " Object value&lt;/P&gt;&lt;P&gt;           CHANGENR                    " Document change number&lt;/P&gt;&lt;P&gt;           USERNAME                    " User name&lt;/P&gt;&lt;P&gt;           UDATE                       " Creation date&lt;/P&gt;&lt;P&gt;      FROM CDHDR&lt;/P&gt;&lt;P&gt;      INTO TABLE T_CDHDR&lt;/P&gt;&lt;P&gt;   FOR ALL ENTRIES IN T_EBELN&lt;/P&gt;&lt;P&gt;     WHERE OBJECTID EQ T_EBELN-EBELN&lt;/P&gt;&lt;P&gt;       AND UDATE IN S_UDATE&lt;/P&gt;&lt;P&gt;       AND TCODE IN ('ME21N','ME22N','ME23N').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 13:35:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682585#M620161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T13:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682586#M620162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use no syntax error but it is performance issue try to avoid this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points to all helpful answers &lt;/P&gt;&lt;P&gt;kiran.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 13:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682586#M620162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T13:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682587#M620163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its advisable not to use select statement inside he loop , definitely, it ll reduce the performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 13:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682587#M620163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T13:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682588#M620164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its advisable not to use select statement inside he loop , definitely, it ll reduce the performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 14:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2682588#M620164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T14:07:03Z</dc:date>
    </item>
  </channel>
</rss>

