<?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 with Select Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013522#M1698853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave Fischer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think the &lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CLIENT SPECIFIED&lt;/SPAN&gt; is not required&lt;/SPAN&gt; in the select statement because data will be fetched from the &lt;SPAN style="text-decoration: underline;"&gt;particular client&lt;/SPAN&gt; which your &lt;STRONG&gt;LOG ON&lt;/STRONG&gt; into,and more over if specify &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CLIENT SPECIFIED&lt;/SPAN&gt; in select statement then try to add WHERE clause &lt;STRONG&gt;Mandt = SY-MANDT&lt;/STRONG&gt;, if you hard coded as 800 or 900 then &lt;/P&gt;&lt;P&gt;if Your report&amp;nbsp; is moved from development to production den you cant change the value in WHERE clause. &lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/132648" /&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;U can check the Run time Analysis in SE30 of the report performance and for&amp;nbsp; SQL trace analysis ST05&amp;nbsp; .&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;My Advise is not use Client specified .&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Remove Mandt field and Client specified in select&amp;nbsp; statement it improve the performance of the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Thanks &amp;amp; regards ,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;MadhuKumar &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 11:35:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-08-28T11:35:39Z</dc:date>
    <item>
      <title>Performance Issue with Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013517#M1698848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a performance issue with a SELECT statement that is within code that I'm working on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;MANDT MATNR WERKS LGORT LABST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPEME INSME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;INT_MARD1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;MARD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLIENT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SPECIFIED&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;MATNR &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;S_MATNR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;WERKS &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;S_WERKS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;LGORT &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;S_LGORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm somewhat new to ABAP (and years from learning SQL) and having a difficult time knowing what the issue is here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 15:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013517#M1698848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-27T15:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013518#M1698849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;two suggestions&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;make an SQL trace (ST05)&lt;/LI&gt;&lt;LI&gt;why do you use CLIENT SPECIFIED (that should be an exception and for the use-case above I am not sure, if this makes sense)? And why do you not specify the client when using CLIENT SPECIFIED? -&amp;gt; my assumption would be that the system due to that does not use an index (but you can verify this with the trace)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Best regards&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 16:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013518#M1698849</guid>
      <dc:creator>schneidertho</dc:creator>
      <dc:date>2012-08-27T16:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013519#M1698850</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;Purpose of using CLIENT SPECIFIED is: you can then address the client fields in the individual clauses of the SELECT statement.&lt;/P&gt;&lt;P&gt;eg: select *&amp;nbsp; into &amp;lt;wa&amp;gt; from &amp;lt;dtab&amp;gt; CLIENT SPECIFIED &lt;STRONG&gt;where &lt;/STRONG&gt;MANDT = '800'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 05:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013519#M1698850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-28T05:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013520#M1698851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Janani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check the implications of using the &lt;A href="http://help.sap.com/abapdocu_731/en/abapfrom_clause.htm#!ABAP_ADDITION_1@1@"&gt;CLIENT SPECIFIED&lt;/A&gt; addition before using it? Whenever in doubt make sure you use the F1 key and since you are new to ABAP that'll help a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;SELECT &lt;/SPAN&gt;MANDT MATNR WERKS LGORT LABST&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPEME INSME&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;TABLE &lt;/SPAN&gt;INT_MARD1&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;FROM &lt;/SPAN&gt;MARD&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;CLIENT &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;SPECIFIED&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;WHERE &lt;/SPAN&gt;MATNR &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;S_MATNR&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;AND &lt;/SPAN&gt;WERKS &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;S_WERKS&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND &lt;/SPAN&gt;LGORT &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;S_LGORT.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your select query you've specified CLIENT SPECIFIED but have not used the MANDT field in your WHERE clause. This causes the &lt;SPAN style="text-decoration: underline;"&gt;data to be selected from all the clients&lt;/SPAN&gt; &amp;amp; hence the performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 05:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013520#M1698851</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2012-08-28T05:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013521#M1698852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we use a client specified statement with select statement it specifies manual client handling that means:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;when you use the client specified with select queries always remember to add mandt with where clause &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;to specify the client.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;select (fields) from table client specified into internal table where mandt = '800'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;if this mandt field is not specified then selection will be made across all the clients.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 09:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013521#M1698852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-28T09:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013522#M1698853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave Fischer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think the &lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CLIENT SPECIFIED&lt;/SPAN&gt; is not required&lt;/SPAN&gt; in the select statement because data will be fetched from the &lt;SPAN style="text-decoration: underline;"&gt;particular client&lt;/SPAN&gt; which your &lt;STRONG&gt;LOG ON&lt;/STRONG&gt; into,and more over if specify &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CLIENT SPECIFIED&lt;/SPAN&gt; in select statement then try to add WHERE clause &lt;STRONG&gt;Mandt = SY-MANDT&lt;/STRONG&gt;, if you hard coded as 800 or 900 then &lt;/P&gt;&lt;P&gt;if Your report&amp;nbsp; is moved from development to production den you cant change the value in WHERE clause. &lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/132648" /&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;U can check the Run time Analysis in SE30 of the report performance and for&amp;nbsp; SQL trace analysis ST05&amp;nbsp; .&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;My Advise is not use Client specified .&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Remove Mandt field and Client specified in select&amp;nbsp; statement it improve the performance of the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Thanks &amp;amp; regards ,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;MadhuKumar &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 11:35:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013522#M1698853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-28T11:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013523#M1698854</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;By specifying CLIENT SPECIFIED, automatic client handling is switched off. That means you have to specify client field in where clause, else it will fetch data from all the clients. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 12:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013523#M1698854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-29T12:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013524#M1698855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Dave Fischer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You don't want to use &lt;STRONG&gt;CLIENT SPECIFIED&lt;/STRONG&gt; so remove it and check. If you want to fetch records for all clients then no other way surely it will take sometime. Do you need to fetch all clients' records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dineshwar Singh Eswar.&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1011/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 11:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-select-statement/m-p/9013524#M1698855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-25T11:55:40Z</dc:date>
    </item>
  </channel>
</rss>

