<?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: Optimisation issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934516#M1151044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can create a new index for  that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the new index must have&lt;/P&gt;&lt;P&gt;Mandt and then all the fields that u are using in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before creating the index i recomend that run txn st05, activate the trace, then run your query, stop the trace and try to find out wich join or where is with more rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Dec 2008 23:58:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-23T23:58:54Z</dc:date>
    <item>
      <title>Optimisation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934512#M1151040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a code which is exceeding 10000 microsec timelimit. So there is a code dump.&lt;/P&gt;&lt;P&gt;Can u  suggst me a way to replace this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT imptt~point&lt;/P&gt;&lt;P&gt;    APPENDING CORRESPONDING FIELDS OF TABLE tb_data&lt;/P&gt;&lt;P&gt;    FROM ( imptt INNER JOIN iflo ON iflo&lt;SUB&gt;objnr = imptt&lt;/SUB&gt;mpobj )&lt;/P&gt;&lt;P&gt;    FOR   ALL entries IN ra_tplnr&lt;/P&gt;&lt;P&gt;    WHERE iflo~tplnr  EQ ra_tplnr-low&lt;/P&gt;&lt;P&gt;    AND   imptt~indct EQ po_indct&lt;/P&gt;&lt;P&gt;    AND   iflo~swerk  IN so_swerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking in advance!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 23:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934512#M1151040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T23:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934513#M1151041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this document -&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm" target="test_blank"&gt;http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, I hope u are checking for internal table initial before using FOR ALL ENTERIES on it.&lt;/P&gt;&lt;P&gt;Also, it is preferable to SPLIT your select statement into 2 to perform better since you are using JOIN, FORL ALL ENTERIES and APPENDING all together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or execute the code in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Khare on Dec 24, 2008 4:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 23:14:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934513#M1151041</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2008-12-23T23:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934514#M1151042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you simply tell me how should i remove the inner join?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 23:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934514#M1151042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T23:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934515#M1151043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for advice But The client said she doesn't want to execute it in background( Tough lady!!  )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 23:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934515#M1151043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T23:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934516#M1151044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can create a new index for  that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the new index must have&lt;/P&gt;&lt;P&gt;Mandt and then all the fields that u are using in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before creating the index i recomend that run txn st05, activate the trace, then run your query, stop the trace and try to find out wich join or where is with more rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 23:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934516#M1151044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T23:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934517#M1151045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I have run st05 and found that this is the query( which i posted )  where i have maximum duration spent while running. Thats why i am asking you people to tell me an alternet way of doing the same thing which the uery does.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 00:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934517#M1151045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T00:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934518#M1151046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have 2 options then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) split the query in two or 3, you need to create a WA, and filled with all the data u need, not from a single query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) create a new index with the fields of the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES is very very slow try to not to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wheck if the stadistics are up to date (basis) sometimes the indexes may not work because of that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 16:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-issue/m-p/4934518#M1151046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T16:25:27Z</dc:date>
    </item>
  </channel>
</rss>

