<?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 Time limit exceeded ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950332#M65091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying the following code which runs in debug mode but when I execute program without debugging mode it is giving short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message statement in the code outputs message in debug mode but not in normal one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Earier it was giving "sql statement too large" error thats why I have broken it into pieces still it is giving timeout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_MARA &amp;amp; T_VENDOR are the internal tables that contains values to select from EINA (Info 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;DO.&lt;/P&gt;&lt;P&gt;    REFRESH S_MATNR.&lt;/P&gt;&lt;P&gt;    S_MATNR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;    S_MATNR-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;    LOOP AT T_MARA FROM INDEX_FROM TO INDEX_TO.             &lt;/P&gt;&lt;P&gt;      S_MATNR-LOW = T_MARA-MATNR.                           &lt;/P&gt;&lt;P&gt;      APPEND S_MATNR.                                       &lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * FROM EINA APPENDING TABLE T_EINA&lt;/P&gt;&lt;P&gt;     WHERE  MATNR IN S_MATNR&lt;/P&gt;&lt;P&gt;       AND  LIFNR IN S_LIFNR&lt;/P&gt;&lt;P&gt;       AND  LOEKZ EQ ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    INDEX_FROM = INDEX_TO + 1.&lt;/P&gt;&lt;P&gt;    IF INDEX_FROM &amp;gt; MAXLINE.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    INDEX_TO = INDEX_TO + 1000.&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;MESSAGE&amp;lt;/b&amp;gt; S005(ZSRS) WITH 'selecting records from ' INDEX_FROM ' to '&lt;/P&gt;&lt;P&gt;INDEX_TO.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is somewhat urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2005 09:20:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-30T09:20:20Z</dc:date>
    <item>
      <title>Time limit exceeded ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950332#M65091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying the following code which runs in debug mode but when I execute program without debugging mode it is giving short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message statement in the code outputs message in debug mode but not in normal one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Earier it was giving "sql statement too large" error thats why I have broken it into pieces still it is giving timeout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_MARA &amp;amp; T_VENDOR are the internal tables that contains values to select from EINA (Info 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;DO.&lt;/P&gt;&lt;P&gt;    REFRESH S_MATNR.&lt;/P&gt;&lt;P&gt;    S_MATNR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;    S_MATNR-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;    LOOP AT T_MARA FROM INDEX_FROM TO INDEX_TO.             &lt;/P&gt;&lt;P&gt;      S_MATNR-LOW = T_MARA-MATNR.                           &lt;/P&gt;&lt;P&gt;      APPEND S_MATNR.                                       &lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * FROM EINA APPENDING TABLE T_EINA&lt;/P&gt;&lt;P&gt;     WHERE  MATNR IN S_MATNR&lt;/P&gt;&lt;P&gt;       AND  LIFNR IN S_LIFNR&lt;/P&gt;&lt;P&gt;       AND  LOEKZ EQ ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    INDEX_FROM = INDEX_TO + 1.&lt;/P&gt;&lt;P&gt;    IF INDEX_FROM &amp;gt; MAXLINE.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    INDEX_TO = INDEX_TO + 1000.&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;MESSAGE&amp;lt;/b&amp;gt; S005(ZSRS) WITH 'selecting records from ' INDEX_FROM ' to '&lt;/P&gt;&lt;P&gt;INDEX_TO.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is somewhat urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2005 09:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950332#M65091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-30T09:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Time limit exceeded ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950333#M65092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to run program in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;surjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2005 09:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950333#M65092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-30T09:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Time limit exceeded ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950334#M65093</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'm confused, you try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_MATNR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;S_MATNR-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;LOOP AT T_MARA . &lt;/P&gt;&lt;P&gt;S_MATNR-LOW = T_MARA-MATNR. &lt;/P&gt;&lt;P&gt;APPEND S_MATNR. &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM EINA into TABLE T_EINA&lt;/P&gt;&lt;P&gt;WHERE MATNR IN S_MATNR&lt;/P&gt;&lt;P&gt;AND LIFNR IN S_LIFNR&lt;/P&gt;&lt;P&gt;AND LOEKZ EQ ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is in debugging mode you may check one or twice, but actually it appends no of times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second one inside the loop we must avoid select statement especially append this will affect performence very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2005 09:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950334#M65093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-30T09:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Time limit exceeded ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950335#M65094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The statement too large refers most likely to Matnr - which could could be solved by using for all entries. But this would probably not solve your time-out issue. &lt;/P&gt;&lt;P&gt;What you could do (if you must) is instead of message use the fm sapgui_progress_indicator which can exceed the time-out parameter of a dialog process. Or consider to run it in Batch. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Check also if your select is provided by secondary index (there are one one material and one on supplier - which one is taken? )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2005 09:31:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950335#M65094</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2005-09-30T09:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Time limit exceeded ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950336#M65095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'll try to use FM sapgui_progress_indicator.&lt;/P&gt;&lt;P&gt;In the meanwhile could anybody plz help me in optimizing the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2005 10:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950336#M65095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-30T10:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Time limit exceeded ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950337#M65096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said first check which index is found. &lt;/P&gt;&lt;P&gt;Then you could use for all entries (by considering all typical pitfalls there - check of empty table etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you could reduce the network load by specifying which fields you need from EINA instead of fetching them all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another ideas is - are there duplicates in T_MATNR? - remove them first &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Use a subquery to reduce the numbers of database connects (this pressumes that you could retrieve the material by a database selection)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases the addition of package size or the open cursor statement with the fetch command is helpful but I am not sure if it is faster than your current solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2005 13:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950337#M65096</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2005-09-30T13:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Time limit exceeded ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950338#M65097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure S_LIFNR is not empty.&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, 30 Sep 2005 14:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/950338#M65097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-30T14:19:15Z</dc:date>
    </item>
  </channel>
</rss>

