<?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: related to do enddo statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/related-to-do-enddo-statement/m-p/3887313#M933802</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;If that DO/ENDDO block is not in a form which is called more times in runtime, it makes no sense that CLEAR statement. I don't know the program logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside tha that DO, clearing w_week will affect nothing. However, will prevent next time to enter inside it again (if the is one). If you want to end the block you should use statement EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2008 11:40:09 GMT</pubDate>
    <dc:creator>valter_oliveira</dc:creator>
    <dc:date>2008-05-29T11:40:09Z</dc:date>
    <item>
      <title>related to do enddo statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/related-to-do-enddo-statement/m-p/3887310#M933799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends ,&lt;/P&gt;&lt;P&gt;my friend had written this code .in this he has used do and endo statement.&lt;/P&gt;&lt;P&gt;here w_week contains value = 3 during runtime.&lt;/P&gt;&lt;P&gt;but he is internally clearing that value .eventhough report is working fine .&lt;/P&gt;&lt;P&gt;i couldn't understand .please if u know update me on this.&lt;/P&gt;&lt;P&gt; regards,]&lt;/P&gt;&lt;P&gt;diana&lt;/P&gt;&lt;P&gt;DO w_week TIMES.&lt;/P&gt;&lt;P&gt;      IF so_date-low IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;        CLEAR: wa_weektable, w_week.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            date   = so_date-low&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            week   = wa_weektable-week&lt;/P&gt;&lt;P&gt;            monday = wa_weektable-monday&lt;/P&gt;&lt;P&gt;            sunday = wa_weektable-sunday.&lt;/P&gt;&lt;P&gt;        wa_weektable-wday = so_date-low.&lt;/P&gt;&lt;P&gt;        APPEND wa_weektable TO it_weektable.&lt;/P&gt;&lt;P&gt;        CLEAR wa_weektable.&lt;/P&gt;&lt;P&gt;        so_date-low = so_date-low + 1.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 11:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/related-to-do-enddo-statement/m-p/3887310#M933799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T11:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: related to do enddo statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/related-to-do-enddo-statement/m-p/3887311#M933800</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;initially the value of w_week is 3 so the do...enddo will be processed for 3 times. after this looping number of times is assigned u r changing the value of that variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 11:36:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/related-to-do-enddo-statement/m-p/3887311#M933800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T11:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: related to do enddo statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/related-to-do-enddo-statement/m-p/3887312#M933801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the "CLEAR w_week" is just a bug that can be removed.&lt;/P&gt;&lt;P&gt;When first reaching the DO loop, the system will evaluate the contents of w_week once. Subsequent changes will have no effect.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 11:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/related-to-do-enddo-statement/m-p/3887312#M933801</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-05-29T11:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: related to do enddo statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/related-to-do-enddo-statement/m-p/3887313#M933802</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;If that DO/ENDDO block is not in a form which is called more times in runtime, it makes no sense that CLEAR statement. I don't know the program logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside tha that DO, clearing w_week will affect nothing. However, will prevent next time to enter inside it again (if the is one). If you want to end the block you should use statement EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 11:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/related-to-do-enddo-statement/m-p/3887313#M933802</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-05-29T11:40:09Z</dc:date>
    </item>
  </channel>
</rss>

