<?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 Error Time limit excedeed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291264#M155407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help. I am running an ABAP program, and I get the following short dump: this error is "Time limit exceeded"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the program "Zxxxxxx" has exceeded the maximum permitted runtime and has therefore been terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how i can fix the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The struct of code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;field 1&lt;/P&gt;&lt;P&gt;field 2&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;Field n&lt;/P&gt;&lt;P&gt;INTO&lt;/P&gt;&lt;P&gt;IT_KNA1_1&lt;/P&gt;&lt;P&gt;IT_KNA1_2&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;IT_KNA1_n&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;KNA1 AS x INNET JOIN&lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;Field_1 EQ Field_X&lt;/P&gt;&lt;P&gt;AND Field_2 EQ Field_y&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;the problem is here -&amp;gt; AND Field_n EQ Field_tAPPEND it_kna1_x&lt;/P&gt;&lt;P&gt;END SELECT&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 an any answers.!! this problem is hardware or optimization code select?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jun 2006 14:50:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-02T14:50:22Z</dc:date>
    <item>
      <title>Error Time limit excedeed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291264#M155407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help. I am running an ABAP program, and I get the following short dump: this error is "Time limit exceeded"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the program "Zxxxxxx" has exceeded the maximum permitted runtime and has therefore been terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how i can fix the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The struct of code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;field 1&lt;/P&gt;&lt;P&gt;field 2&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;Field n&lt;/P&gt;&lt;P&gt;INTO&lt;/P&gt;&lt;P&gt;IT_KNA1_1&lt;/P&gt;&lt;P&gt;IT_KNA1_2&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;IT_KNA1_n&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;KNA1 AS x INNET JOIN&lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;Field_1 EQ Field_X&lt;/P&gt;&lt;P&gt;AND Field_2 EQ Field_y&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;the problem is here -&amp;gt; AND Field_n EQ Field_tAPPEND it_kna1_x&lt;/P&gt;&lt;P&gt;END SELECT&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 an any answers.!! this problem is hardware or optimization code select?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291264#M155407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error Time limit excedeed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291265#M155408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; WELCOME TO SDN&lt;/P&gt;&lt;P&gt;Time out error usually appears if there are many records in the production server . Try using &amp;lt;b&amp;gt;FOR ALL ENTRIES&amp;lt;/b&amp;gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;P&gt;Reward Points if it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291265#M155408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error Time limit excedeed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291266#M155409</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 inner join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use &amp;lt;b&amp;gt;FOR ALL ENTRIES&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:54:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291266#M155409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error Time limit excedeed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291267#M155410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xabier,&lt;/P&gt;&lt;P&gt; Modify your code as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_kna1 occurs 0,&lt;/P&gt;&lt;P&gt;        field1 like kna1-field1,&lt;/P&gt;&lt;P&gt;        field2 like kna1-field2,&lt;/P&gt;&lt;P&gt;        field3 like kna1-field3,&lt;/P&gt;&lt;P&gt;     end of it_kna1.&lt;/P&gt;&lt;P&gt;select field1&lt;/P&gt;&lt;P&gt;       field2&lt;/P&gt;&lt;P&gt;       field3&lt;/P&gt;&lt;P&gt;  from kna1&lt;/P&gt;&lt;P&gt;   into table it_kna1&lt;/P&gt;&lt;P&gt;where field1 = p_field1&lt;/P&gt;&lt;P&gt;  and field2 = p_field2.&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:54:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291267#M155410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error Time limit excedeed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291268#M155411</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;This is SELECT statement issue. You SELECT statement is getting so many rows for the selection criteria you have given that with in the specified limit, its unable to handle the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT directly into the table without ENDSELECT might help a little bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note :Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291268#M155411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error Time limit excedeed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291269#M155412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are doing a select statement probably without any indexed search. You also have a SELECT ... ENDSELECT which means you introduced a loop. These are causes for extremely long execution times. You need to change your code to reduce it. Can you post your actual code here so that we can finetune it to run faster?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One suggestion is that instead of a SELECT ... ENDSELECT, try to move all the records into an internal table in one single shot with the INTO TABLE itab option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291269#M155412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error Time limit excedeed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291270#M155413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;put a break point at that line  and try to debug the program u will find exactly what is happening there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be here main problem is your program is unable to verify all the condition what ever u gave in the select statement just review it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of select endselect use the  into table in select statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think it  would be helpful for u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291270#M155413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error Time limit excedeed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291271#M155414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A commit work will reset the time-out counter .&lt;/P&gt;&lt;P&gt;Place it before select statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use &amp;lt;b&amp;gt;for all entries&amp;lt;/b&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before using FOR ALL THE ENTRIES statements, check the internal table is not initial (if IT_KNA1 IS NOT INITIAL), else it will select for all the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess you need to optimize your code..so paste your code so that we can try to optimize it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use FM &amp;lt;b&amp;gt;sapgui_progress_indicator&amp;lt;/b&amp;gt; - this will exceed your time limit .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont write the code between select ..end select .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select directly into internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure you follow this  :&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Consolidated selections&lt;/P&gt;&lt;P&gt;No row by row processing&lt;/P&gt;&lt;P&gt;No check statements&lt;/P&gt;&lt;P&gt;No selections within loops&lt;/P&gt;&lt;P&gt;Selections are 'into' internal tables - no appends&lt;/P&gt;&lt;P&gt;SQL trace check completed&lt;/P&gt;&lt;P&gt;All programs checked to make sure that they are using the full index and in the    &lt;/P&gt;&lt;P&gt;Correct order.&lt;/P&gt;&lt;P&gt;Minimum or zero number of identical selects.&lt;/P&gt;&lt;P&gt;Use of appropriate Indexes&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 14:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291271#M155414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-02T14:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error Time limit excedeed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291272#M155415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mickel.&lt;/P&gt;&lt;P&gt;welcome to SDN.&lt;/P&gt;&lt;P&gt;this is due to the poor code.&lt;/P&gt;&lt;P&gt;please remove the endselect variant and use INTO TABLE addition to your select statment..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables mara.&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;       erdat like mara-erdat,&lt;/P&gt;&lt;P&gt;      end of itab,&lt;/P&gt;&lt;P&gt;      begin of itab2 occurs 0,&lt;/P&gt;&lt;P&gt;       matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;       maktx like makt-matkx,&lt;/P&gt;&lt;P&gt;      end of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select matnr erdat from mara into table itab &lt;/P&gt;&lt;P&gt;       where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not itab[] is initial.&lt;/P&gt;&lt;P&gt; select matnr maktx from makt into table itab2 for all entries in itab where matnr eq itab-matnr.&lt;/P&gt;&lt;P&gt;endif.&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;P&gt;&lt;/P&gt;&lt;P&gt;Mark all useful answers..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 15:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-excedeed/m-p/1291272#M155415</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-06-02T15:02:34Z</dc:date>
    </item>
  </channel>
</rss>

