<?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: Runtime error : Time out in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607404#M1277787</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;fetch data from AUFK...then for those entries fetch from afko/afpo this will solve to an extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if still it persists then u have to put ur report in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2009 08:58:56 GMT</pubDate>
    <dc:creator>Jay71</dc:creator>
    <dc:date>2009-05-11T08:58:56Z</dc:date>
    <item>
      <title>Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607393#M1277776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts...&lt;/P&gt;&lt;P&gt;I am trying to execute one program in production.. its giving me runtime error timed out....&lt;/P&gt;&lt;P&gt;I am giving you line on which it is showing runtime error...&lt;/P&gt;&lt;P&gt;Please check it n suggest me how can we optimize this code to avoid the same error...&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT afko~aufnr afko~aufpl afko~rueck afpo~matnr
  INTO   CORRESPONDING FIELDS OF TABLE it_temp_orders
  FROM   afko
  INNER  JOIN afpo ON
         afpo~aufnr = afko~aufnr
  WHERE  afko~aufnr  IN  s_aufnr
  AND    afko~dispo  IN  s_dispo
  AND    afpo~matnr  IN  s_matnr
  AND    afpo~dwerk  IN  s_werks
  AND    afpo~dauat  IN  s_auart.

  SORT it_temp_orders BY aufnr aufpl matnr rueck.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 07:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607393#M1277776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T07:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607394#M1277777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to execute your report with restricted values..that is fill entries in selection  screen fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 07:03:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607394#M1277777</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2009-05-11T07:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607395#M1277778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is not possible.. we are running it only for one day...&lt;/P&gt;&lt;P&gt;can we use some index to optimize selection? If yes then how can we use them...&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 07:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607395#M1277778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T07:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607396#M1277779</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;break this into two select queries......&lt;/P&gt;&lt;P&gt;use the below code to do the same....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : begin of fs_afko
              aufnr type afko-aufnr,
              aufpl type afko-aufpl,
              reuck type afko-reuck,
        end of fs_afko.

data : Begin of fs_afpo,
            aufnr type afpo-aufnr,
           matnr type afpo-matnr,
        End of fs_afpo.

data : t_afko type table of fs_afko,
         t_afpo type table of fs_afpo.


SELECT aufnr aufpl rueck 
  INTO   TABLE t_afko
  FROM   afko
  WHERE  afko~aufnr  IN  s_aufnr
  AND    afko~dispo  IN  s_dispo.

SELECT afpo~matnr
  INTO   TABLE t_afpo
  FROM   afpo
  FOR ALL ENTRIES IN t_afko
  WHERE  aufnr  =  t_afko-aufnr
  AND    afpo~matnr  IN  s_matnr
  AND    afpo~dwerk  IN  s_werks
  AND    afpo~dauat  IN  s_auart.

loop at t_afko into fs_afko.
  loop at t_afpo into fs_afpo where aufnr = fs_afko-aufnr.
    move-corresponding fs_afko to fs_temp_orders.
    move-corresponding fs_afpo to fs_temp_orders.
    append fs_temp_orders to it_temp_orders
  endloop.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 07:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607396#M1277779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T07:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607397#M1277780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SWATI,&lt;/P&gt;&lt;P&gt;instead of using join why dont go for all entries&lt;/P&gt;&lt;P&gt;it will be give better performance&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;afzal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 07:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607397#M1277780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T07:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607398#M1277781</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 you are running it for only one day, then check whether you can introduce any date field in the 'WHERE-USED' list of select query for instance (STRMP, ETRMP etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 07:13:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607398#M1277781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T07:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607399#M1277782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try with For all entries like this...!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT aufnr aufpl rueck 
  INTO table it_temp_orders " decalre a new table with the same sequence of DB table &amp;amp; Avoid Corresponding fields
  FROM afko
  WHERE  aufnr  IN  s_aufnr
  AND    dispo  IN  s_dispo.


SELECT aufnr aufpl rueck 
  INTO table it_temp_order1 " declare a new table with the same sequence of DB table &amp;amp; Avoid Corresponding fields
  FROM afko
  *for all entries in it_temp_orders*
  WHERE  aufnr  = it_temp_orders- aufnr
  AND    matnr  IN  s_matnr
  AND    dwerk  IN  s_werks
  AND    dauat  IN  s_auart.

 matnr

  SORT it_temp_orders BY aufnr aufpl matnr rueck.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still error then copy the runtime again and look where this time is the select from &lt;STRONG&gt;AFKO &amp;amp; from AFPO,,,,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 07:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607399#M1277782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T07:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607400#M1277783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Execute the report in Background, that way you can avoid timeout error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 07:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607400#M1277783</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2009-05-11T07:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607401#M1277784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are 2 options : - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 . You schedule this report in Background. If you schedule it in the Background then you will not get time out .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Execute the function module "TH_CHANGE_PARAMETER" before you run your report. Here in the parameter field you pass the value as "rdisp/max_wprun_time" and in the parameter value you pass the no of milisecods to which your spool time will be set. If you do so the spool time ( Or you can say Runtime ) will be incresed and you will not get the time out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this and Let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikhil Joshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 07:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607401#M1277784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T07:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607402#M1277785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not remove the join. For all entries will never give you better performance. Try to use the indexes available. Moreover, you don't have the date filter in your query. You are querying the whole table not for one day. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdullah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 08:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607402#M1277785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T08:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607403#M1277786</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;  See the below link.&lt;/P&gt;&lt;P&gt;  [https://www.sdn.sap.com/irj/scn/forums]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 08:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607403#M1277786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T08:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607404#M1277787</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;fetch data from AUFK...then for those entries fetch from afko/afpo this will solve to an extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if still it persists then u have to put ur report in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 08:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607404#M1277787</guid>
      <dc:creator>Jay71</dc:creator>
      <dc:date>2009-05-11T08:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error : Time out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607405#M1277788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a sticky thread at the top of the performance tuning forum. Kindly go through that thread to understand the disadvantages of for all entries in select statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Check this Link|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1174072"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdullah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 10:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-time-out/m-p/5607405#M1277788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T10:37:17Z</dc:date>
    </item>
  </channel>
</rss>

