<?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 problem with time_out error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548403#M1074148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this code below and I am getting a time_out error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_vbfa.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE buchk FROM vbuk INTO v_buchk&lt;/P&gt;&lt;P&gt;                       WHERE vbeln = i_vbfa-vbeln&lt;/P&gt;&lt;P&gt;                         AND buchk = 'A'.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      DELETE i_vbfa INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE vbtyp FROM vbrk INTO v_vbtyp&lt;/P&gt;&lt;P&gt;                         WHERE vbeln = i_vbfa-vbeln.&lt;/P&gt;&lt;P&gt;      IF v_vbtyp NE space.&lt;/P&gt;&lt;P&gt;        DELETE i_vbfa INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a select single within the loop, will it cause trigger the error? why? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2008 06:31:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-08T06:31:50Z</dc:date>
    <item>
      <title>problem with time_out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548403#M1074148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this code below and I am getting a time_out error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_vbfa.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE buchk FROM vbuk INTO v_buchk&lt;/P&gt;&lt;P&gt;                       WHERE vbeln = i_vbfa-vbeln&lt;/P&gt;&lt;P&gt;                         AND buchk = 'A'.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      DELETE i_vbfa INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE vbtyp FROM vbrk INTO v_vbtyp&lt;/P&gt;&lt;P&gt;                         WHERE vbeln = i_vbfa-vbeln.&lt;/P&gt;&lt;P&gt;      IF v_vbtyp NE space.&lt;/P&gt;&lt;P&gt;        DELETE i_vbfa INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a select single within the loop, will it cause trigger the error? why? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 06:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548403#M1074148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T06:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem with time_out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548404#M1074149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;for each record u r selecting the records from table that's why it is time out error.&lt;/P&gt;&lt;P&gt;performance way it is not suggestable.instead u can select the values and u can use read statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 06:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548404#M1074149</guid>
      <dc:creator>KK07</dc:creator>
      <dc:date>2008-10-08T06:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: problem with time_out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548405#M1074150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally the &lt;STRONG&gt;Time Out&lt;/STRONG&gt; occurs when the program is taking more time than system execution time.&lt;/P&gt;&lt;P&gt;the system execution time is maintained by basis people, commonly the time is between 10-20 minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your program is taking more than that time then the time out error is raised.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avoid using select single statement in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 06:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548405#M1074150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T06:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem with time_out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548406#M1074151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mukesh!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the 10~20 mins is the total time execution of the program? Would you know how many micro seconds does each select single takes to retrieve the data from teh database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 06:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548406#M1074151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T06:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem with time_out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548407#M1074152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Single selects are good if they are single selects. But here you are reading a bunch of single rows. Read them all you need in an internal table, this is very much faster. Then instead of peeaking the database in the loop do a read on the internal table. If possible, use a hashed table and your performance gain will be big.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 06:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548407#M1074152</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-10-08T06:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem with time_out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548408#M1074153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Create a internal table for i_vbuk with vbeln and buchk fields&lt;/P&gt;&lt;P&gt;and i_vbrk with vbeln and vbtyp fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write this before loop.&lt;/P&gt;&lt;P&gt;if i_vbfa[] is not initial.&lt;/P&gt;&lt;P&gt;select vbeln buchk into table i_vbuk for all entries in &lt;/P&gt;&lt;P&gt;i_vbfa where vbeln = i_vbfa-vbeln and buchk = 'A'.&lt;/P&gt;&lt;P&gt;select vbeln vbtyp into table i_vbrp for all entries in &lt;/P&gt;&lt;P&gt;i_vbrp where vbeln = i_vbfa-vbeln and vbtyp ne space.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;sort i_vbuk.&lt;/P&gt;&lt;P&gt;sort i_vbrp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_vbfa.&lt;/P&gt;&lt;P&gt;read table i_vbuk with key vbeln = i_vbfa-vbeln binary search.&lt;/P&gt;&lt;P&gt;          IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;                 DELETE i_vbfa .&lt;/P&gt;&lt;P&gt;          ELSE.&lt;/P&gt;&lt;P&gt;read table i_vbrk with key vbeln = i_vbfa-vbeln binary search.&lt;/P&gt;&lt;P&gt;           IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;                 DELETE i_vbfa .&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Madhan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Madhan Doraikannan on Oct 8, 2008 8:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 06:58:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548408#M1074153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T06:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem with time_out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548409#M1074154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; read table i_vbuk with key vbeln = i_vbfa-vbeln binary search.&lt;/P&gt;&lt;P&gt;&amp;gt; Edited by: Madhan Doraikannan on Oct 8, 2008 8:59 AM&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that special case i would prefer a hashed table rather then a sorted table. Read will be much faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 07:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548409#M1074154</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-10-08T07:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem with time_out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548410#M1074155</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 donot have much idea, but u can do SQL Trace using T.code ST05.&lt;/P&gt;&lt;P&gt;in that you will get what time  each select statement is taking and some other details also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mukesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 07:10:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-time-out-error/m-p/4548410#M1074155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T07:10:55Z</dc:date>
    </item>
  </channel>
</rss>

