<?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: Error: Time limit exceeded... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125110#M446032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your helpful replies. However, Can you please elnlighten me on what does the PACKAGE statement do and how can I use database view to my advantage? my main problem is not on the select statement but on the loop statement afterwards where the time limit error occurs since the internal table contains around 550K of records. Examples will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thank you guys and take care!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2007 07:19:47 GMT</pubDate>
    <dc:creator>aris_hidalgo</dc:creator>
    <dc:date>2007-04-10T07:19:47Z</dc:date>
    <item>
      <title>Error: Time limit exceeded...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125105#M446027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently modifying a report where it exceeds the time alloted for programs to run&lt;/P&gt;&lt;P&gt;in our production server which is 10 minutes. I debbuged the report and found out that it fetches &lt;/P&gt;&lt;P&gt;around 550k to 700k of records from tables VBAK and VBAP. After selecting, the internal table &lt;/P&gt;&lt;P&gt;will now be looped and this where the report stops since it cannot process the huge volume of records&lt;/P&gt;&lt;P&gt;which is 550k++. I need help on how to fix this since I can't think of anyway to limit the records being&lt;/P&gt;&lt;P&gt;fetched. Below is the select statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;vbeln b&lt;/SUB&gt;posnr a~auart&lt;/P&gt;&lt;P&gt;         a&lt;SUB&gt;vkorg a&lt;/SUB&gt;vtweg a~kunnr&lt;/P&gt;&lt;P&gt;         b&lt;SUB&gt;matnr b&lt;/SUB&gt;pstyv b~spart&lt;/P&gt;&lt;P&gt;    FROM vbak AS a&lt;/P&gt;&lt;P&gt;   INNER JOIN vbap AS b&lt;/P&gt;&lt;P&gt;      ON a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;   APPENDING TABLE lt_vbap&lt;/P&gt;&lt;P&gt;   WHERE a~auart IN lr_auart&lt;/P&gt;&lt;P&gt;     AND a~vbeln IN s_vbeln&lt;/P&gt;&lt;P&gt;     AND a~vbeln IN s_vbill&lt;/P&gt;&lt;P&gt;     AND a~vbtyp EQ p_vbtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_vbap ASSIGNING &amp;lt;wa_vbap&amp;gt;.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me out here guys. Thank you and take care!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 06:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125105#M446027</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2007-04-10T06:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Time limit exceeded...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125106#M446028</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;If there are no other ways to improvise the execution time and we are bound for certain time, we have to execute the program in background rather than executing in foreground. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 06:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125106#M446028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T06:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Time limit exceeded...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125107#M446029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;t_mara type table of mara with header line,&lt;/P&gt;&lt;P&gt;t_mara1 type table of mara with header line.&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;  from mara&lt;/P&gt;&lt;P&gt;  into table t_mara&lt;/P&gt;&lt;P&gt;  package size 5000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lines of t_mara to t_mara1.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this PACKAGE SIZE option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 06:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125107#M446029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T06:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Time limit exceeded...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125108#M446030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vitraylab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;vbeln b&lt;/SUB&gt;posnr a~auart&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;vkorg a&lt;/SUB&gt;vtweg a~kunnr&lt;/P&gt;&lt;P&gt;b&lt;SUB&gt;matnr b&lt;/SUB&gt;pstyv b~spart&lt;/P&gt;&lt;P&gt;FROM vbak AS a&lt;/P&gt;&lt;P&gt;INNER JOIN vbap AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;INTO TABLE lt_vbap&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt;PACKAZE SIZE 30000&lt;/P&gt;&lt;P&gt;WHERE a~auart IN lr_auart&lt;/P&gt;&lt;P&gt;AND a~vbeln IN s_vbeln&lt;/P&gt;&lt;P&gt;AND a~vbeln IN s_vbill&lt;/P&gt;&lt;P&gt;AND a~vbtyp EQ p_vbtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the functionality here, which you have written in between  loop end loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change the packaze size according to your program run  time  10 minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 06:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125108#M446030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T06:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Time limit exceeded...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125109#M446031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Viraylab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each time the program is exiguted it takes much time to fetch required data(may be more than 10 min)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the solution which takes much smaller time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Database view from  the two tables vbak and vbap with join condtion on vbeln.&lt;/P&gt;&lt;P&gt;Now write a select query from that view&lt;/P&gt;&lt;P&gt;(You can fetch data from view as is from db table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It definitily reduces time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you got it.But do some analyzation on view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrs,&lt;/P&gt;&lt;P&gt;Rama chary.Pammi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 06:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125109#M446031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T06:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Time limit exceeded...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125110#M446032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your helpful replies. However, Can you please elnlighten me on what does the PACKAGE statement do and how can I use database view to my advantage? my main problem is not on the select statement but on the loop statement afterwards where the time limit error occurs since the internal table contains around 550K of records. Examples will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thank you guys and take care!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 07:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125110#M446032</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2007-04-10T07:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Time limit exceeded...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125111#M446033</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;In thew query there is not date specified so its trying to list down all the documents available in the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure about the requirement at your end but i feel report should always be bounded by time criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kapadia&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Assigning points is the way to say thanks in SDN.&lt;/STRONG&gt;***&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 07:22:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-time-limit-exceeded/m-p/2125111#M446033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T07:22:30Z</dc:date>
    </item>
  </channel>
</rss>

