<?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: Problem in the time to execute my program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449399#M212935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi carlos,&lt;/P&gt;&lt;P&gt;with FOR ALL ENTRIES you could split your SELECT variant into two clauses which in turn will reduce the time taken by your program at the database server level.&lt;/P&gt;&lt;P&gt;later on you could loop thru the two itabs to get your desired result.i hope this will improve your performance.&lt;/P&gt;&lt;P&gt;have you tried this??.if not plz try it and check the runtime using runtime analysis.also do SQL Trace...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jun 2006 18:31:35 GMT</pubDate>
    <dc:creator>abdul_hakim</dc:creator>
    <dc:date>2006-06-23T18:31:35Z</dc:date>
    <item>
      <title>Problem in the time to execute my program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449394#M212930</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 need to search some tables that have much information. First I decide to make indexs to the tables to resolve the problem in the selects and the time to extract the data is repair but the program late 48 minutes because have 1 loop and 2 read table, so I decide to make joins in the tree tables to erase the two read tables but the time of the performance not change very much and this is only in the first month and I think what is happen if I search the twelve months!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the select that I only have in my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  SELECT a~ryear a~rpmax a~rtcur a~racct a~rbukrs a~prctr
         a~kslvt a~ksl01 a~ksl02 a~ksl03 a~ksl04 a~ksl05
         a~ksl06 a~ksl07 a~ksl08 a~ksl09 a~ksl10 a~ksl11
         a~ksl12 a~ksl13 a~ksl14 a~ksl15 a~ksl16 b~saknr
         b~txt20 b~ktopl c~day_a c~racct c~prctr    
         c~per_day c~average c~agregate c~accumulate 
         c~average_sap
     FROM  faglflext as a join skat as b 
           on a~racct = b~saknr 
           join zavg_bal_table as c      
           on a~racct = c~racct and a~prctr = c~prctr
    INTO CORRESPONDING FIELDS OF TABLE t_itab1
    where  a~rbukrs IN p_bukrs
      and  a~rldnr  = '0L'
      AND  a~racct  NE ''
      AND  a~ryear  = p_date+0(4)
      and  b~spras  eq sy-langu
      AND  b~ktopl  EQ 'CAPI'
      and  c~day_a  = p_date.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help people!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 18:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449394#M212930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T18:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in the time to execute my program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449395#M212931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi carlos,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;replace joins with FOR ALL ENTRIES variant for better performance.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 18:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449395#M212931</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-06-23T18:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in the time to execute my program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449396#M212932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't quite understand. Are you doing this select in a loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 18:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449396#M212932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T18:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in the time to execute my program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449397#M212933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I put FOR ALL ENTRIES I need to put the read tables and the time to execute the program has been poor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 18:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449397#M212933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T18:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in the time to execute my program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449398#M212934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, is outside the loop, not into.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 18:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449398#M212934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T18:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in the time to execute my program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449399#M212935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi carlos,&lt;/P&gt;&lt;P&gt;with FOR ALL ENTRIES you could split your SELECT variant into two clauses which in turn will reduce the time taken by your program at the database server level.&lt;/P&gt;&lt;P&gt;later on you could loop thru the two itabs to get your desired result.i hope this will improve your performance.&lt;/P&gt;&lt;P&gt;have you tried this??.if not plz try it and check the runtime using runtime analysis.also do SQL Trace...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 18:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449399#M212935</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-06-23T18:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in the time to execute my program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449400#M212936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you made a SQL-trace (ST05) to analyze the indices that the database use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the indexes of these tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any of the tabled are buffed, then the access with the join do not use the buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 18:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449400#M212936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T18:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in the time to execute my program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449401#M212937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I only have one of the three tables that you are using in our system, but it looks like you aren't using any fields in an index in your select.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  AND  a~racct  NE ''&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;won't use an index on racct (if there is one).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 18:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-time-to-execute-my-program/m-p/1449401#M212937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T18:34:46Z</dc:date>
    </item>
  </channel>
</rss>

