<?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: regarding select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316845#M1393676</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;  Please try to avoid nested select statement. The reason is&lt;/P&gt;&lt;P&gt;"A simple SELECT loop is a single database access whose result is passed to the ABAP program line by line. Nested SELECT loops mean that the number of accesses in the inner loop is multiplied by the number of accesses in the outer loop. You should therefore only use nested SELECT loops if the selection in the outer loop contains very few lines"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2009 07:02:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-27T07:02:15Z</dc:date>
    <item>
      <title>regarding select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316844#M1393675</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;i have written a select statement plz suggest , is it a good practise to write it in the given below format will it affect the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO CORRESPONDING FIELDS OF TABLE ZBSIS &lt;/P&gt;&lt;P&gt;           FROM BSIS&lt;/P&gt;&lt;P&gt;           WHERE BUDAT IN BUDAT&lt;/P&gt;&lt;P&gt;           AND HKONT IN &lt;/P&gt;&lt;P&gt;( SELECT SAKNR FROM ZTABLE_FLOW WHERE GSBER IN GSBER )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 06:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316844#M1393675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T06:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316845#M1393676</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;  Please try to avoid nested select statement. The reason is&lt;/P&gt;&lt;P&gt;"A simple SELECT loop is a single database access whose result is passed to the ABAP program line by line. Nested SELECT loops mean that the number of accesses in the inner loop is multiplied by the number of accesses in the outer loop. You should therefore only use nested SELECT loops if the selection in the outer loop contains very few lines"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 07:02:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316845#M1393676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T07:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316846#M1393677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using a sub query doesn't have any performance loop holes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are going the right way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhinab Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 07:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316846#M1393677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T07:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316847#M1393678</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;Definatly it will affect the performance.&lt;/P&gt;&lt;P&gt;1. Dont use nested Select statement instead use For All entries.&lt;/P&gt;&lt;P&gt;2. Dont Use corresponding fields in your select statement. Select only required fields and use an internal table of that type only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i am clear to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 07:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316847#M1393678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T07:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316848#M1393679</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 NOT A GOOD PRACTICE AT ALL..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go with individual selects.. if just 2 tables ur using then go with for all entries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont go with corresponding fields it will take time.. so use the field references while passing the data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 07:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316848#M1393679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T07:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316849#M1393680</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;It will affect the performance if number of records are more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestion is: Dont use Select * in place of it write down the field names and also try to avoid corresponding fields of table as well.....just map the fields accorind to your Internal table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Fetching the data, Sort the table with your primark eys so that if you are fetching another talbes baed on previos one then performance will be good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please confirm if it clears your doubt and appreciate me for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 07:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316849#M1393680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T07:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316850#M1393681</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;some performane tips for select :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Avoid use of  select * , instead give the specified fields u want to select&lt;/P&gt;&lt;P&gt;2) Avoid the nested select.&lt;/P&gt;&lt;P&gt;3) Select with index support.&lt;/P&gt;&lt;P&gt;4) If u need to select data from two table , then use for all entries .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shambhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 07:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316850#M1393681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T07:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316851#M1393682</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 NOT A GOOD PRACTICE AT ALL..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go with individual selects.. if just 2 tables ur using then go with for all entries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont go with corresponding fields it will take time.. so use the field references while passing the data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 07:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-statement/m-p/6316851#M1393682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T07:07:40Z</dc:date>
    </item>
  </channel>
</rss>

