<?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: Endless loop with WHILE ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485982#M1061981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2008 13:14:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-12T13:14:55Z</dc:date>
    <item>
      <title>Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485964#M1061963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fox,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bellow coding should terminate the function after a certain time in seconds (as input parameter) and displays the variable count. But it terminates at the end with the short dump since the count becomes an overflow. Thanks for you help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function xxxx&lt;/P&gt;&lt;P&gt;import: time_out type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: c_syuzeit TYPE sy-uzeit,&lt;/P&gt;&lt;P&gt;      count TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_syuzeit = sy-uzeit.&lt;/P&gt;&lt;P&gt;c_syuzeit = c_syuzeit + time_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE c_syuzeit &amp;gt; sy-uzeit.&lt;/P&gt;&lt;P&gt;ADD 1 TO count.&lt;/P&gt;&lt;P&gt;ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION xxx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485964#M1061963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T12:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485965#M1061964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use EXIT with certain condition in while endwhile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485965#M1061964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T12:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485966#M1061965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the problem?&lt;/P&gt;&lt;P&gt;here: WHILE c_syuzeit &amp;gt; sy-uzeit.&lt;/P&gt;&lt;P&gt;ADD 1 TO count.&lt;/P&gt;&lt;P&gt;ENDWHILE.&lt;/P&gt;&lt;P&gt;the value of syuzeit is not changed at all, which means the condition (c_syuzeit &amp;gt; sy-uzeit) will remain true for ever (or until count is overflown)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485966#M1061965</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-12T12:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485967#M1061966</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 this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE c_syuzeit &amp;gt; sy-uzeit.&lt;/P&gt;&lt;P&gt;ADD 1 TO count.&lt;/P&gt;&lt;P&gt;ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't change any value of c_syuzeit and sy-uzeit, therefore you get an endless loop.&lt;/P&gt;&lt;P&gt;Change any value of them an insert an exit-contition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485967#M1061966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T12:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485968#M1061967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well I thought the sy-uzeit is refreshed by the system automatically, isn't it like this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485968#M1061967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T12:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485969#M1061968</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; well I thought the sy-uzeit is refreshed by the system automatically, isn't it like this ?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But your &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;c_syuzeit = sy-uzeit.
c_syuzeit = c_syuzeit + time_out.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;condition would also be refreshed again if sy-uzeit is refreshed by the system automatically.&lt;/P&gt;&lt;P&gt;means again ENDLESS loop found &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485969#M1061968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T12:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485970#M1061969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Declare count TYPE p.&lt;/P&gt;&lt;P&gt;2. Quite unnecessary increase counter. Try simple count = 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485970#M1061969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T12:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485971#M1061970</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; well I thought the sy-uzeit is refreshed by the system automatically, isn't it like this ?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yeah, you must be right. Than probably the counter was too big, could you please try with smaller, like 1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485971#M1061970</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-12T12:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485972#M1061971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes but sy-uzeit will be chenged&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485972#M1061971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T12:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485973#M1061972</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; Hi Fox,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the endless loop will continue until Fox responds..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485973#M1061972</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2008-09-12T12:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485974#M1061973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use ABAP command WAIT seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485974#M1061973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T12:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485975#M1061974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is not correct since &lt;/P&gt;&lt;P&gt;c_syuzeit = sy-uzeit.&lt;/P&gt;&lt;P&gt;c_syuzeit = c_syuzeit + time_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are not part of the loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485975#M1061974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T12:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485976#M1061975</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;sy-uzeit will not refresh automatically. You should add the get time statement.&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: c_syuzeit TYPE sy-uzeit,
count TYPE i.

c_syuzeit = sy-uzeit.
c_syuzeit = c_syuzeit + time_out.

WHILE c_syuzeit &amp;gt; sy-uzeit.
get time.
ADD 1 TO count.
ENDWHILE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485976#M1061975</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2008-09-12T12:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485977#M1061976</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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; well I thought the sy-uzeit is refreshed by the system automatically, isn't it like this ?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; yeah, you must be right. Than probably the counter was too big, could you please try with smaller, like 1?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Guess Sy-uziet would not be refreshed as the while loops goes on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found Sy-uziet remain same in below piece of code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: c_syuzeit TYPE sy-uzeit,
count TYPE i.
data: time_out type i value '1'.
c_syuzeit = sy-uzeit.
c_syuzeit = c_syuzeit + time_out.

(Break-point)WHILE c_syuzeit &amp;gt; sy-uzeit.
ADD 1 TO count.
ENDWHILE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:since Function would not be called in Recursive way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 12:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485977#M1061976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T12:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485978#M1061977</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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; I Guess Sy-uziet would not be refreshed as the while loops goes on.quote}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also read it somewhere, I just could not find it now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following piese of code and sy-uzeit changes:&lt;/P&gt;&lt;P&gt;WRITE : / sy-uzeit.&lt;/P&gt;&lt;P&gt;WAIT UP TO 2 SECONDS.&lt;/P&gt;&lt;P&gt;WRITE : / sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, probably in some cases it changes, in some not. Would be great to know exactly when &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 13:00:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485978#M1061977</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-12T13:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485979#M1061978</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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; I Guess Sy-uziet would not be refreshed as the while loops goes on.quote}&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I have also read it somewhere, I just could not find it now.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I tried the following piese of code and sy-uzeit changes:&lt;/P&gt;&lt;P&gt;&amp;gt; WRITE : / sy-uzeit.&lt;/P&gt;&lt;P&gt;&amp;gt; WAIT UP TO 2 SECONDS.&lt;/P&gt;&lt;P&gt;&amp;gt; WRITE : / sy-uzeit.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; So, probably in some cases it changes, in some not. Would be great to know exactly when &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My quess is that wait up to n seconds is just a sap macro (such as break username) which actually uses the get time statement in order to calculate the seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 13:03:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485979#M1061978</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2008-09-12T13:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485980#M1061979</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;Sy-uzeit will always contain the time the report has been launched (it will not change during runtime). To update this variable you can use the ABAP command "GET TIME".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 13:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485980#M1061979</guid>
      <dc:creator>johndeconinck</dc:creator>
      <dc:date>2008-09-12T13:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485981#M1061980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that would process synchronous processing and this is not expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 13:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485981#M1061980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T13:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485982#M1061981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 13:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485982#M1061981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T13:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Endless loop with WHILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485983#M1061982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kami,&lt;/P&gt;&lt;P&gt;Well Well Well!!!!!!!!&lt;/P&gt;&lt;P&gt;I got the mistake u r doing.&lt;/P&gt;&lt;P&gt;Check below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: time TYPE sy-uzeit,
      counter TYPE i.
time = sy-uzeit + 3.

WHILE time &amp;gt; sy-uzeit.
ADD 1 TO counter.
ENDWHILE.
WRITE:/1 'counter = ', counter.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just debug this code. It works fine without any issues.&lt;/P&gt;&lt;P&gt;But if u directly execute the same code it gives timeout.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the explanation.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u debug for each statement COMMIT WORK will be executed and system fields will be updated like date, time.&lt;/P&gt;&lt;P&gt;(U can see the status message COMMIT WORK executed by the system.) But when u execute directly COMMIT WORK happend for the whole code once. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So sy-uzeit will ramain same in the loop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;So this condition will never fails.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u understand. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 13:19:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/endless-loop-with-while/m-p/4485983#M1061982</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-09-12T13:19:46Z</dc:date>
    </item>
  </channel>
</rss>

