<?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: a block will be executed if the previous LOOP executed successfully in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280717#M1723966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure to understand your question, either very basic either very complex, &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I remain perplexed ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Raymond&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2013 06:49:47 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2013-02-14T06:49:47Z</dc:date>
    <item>
      <title>a block will be executed if the previous LOOP executed successfully</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280714#M1723963</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;After a loop statement, there is a statement after LOOP. If the LOOP was executed successfully, the following statement would be executed. For example, if the loop are executed 5 times, I wanna the following statements execute 5 times correspondingly other than 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;ts &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 06:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280714#M1723963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-14T06:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: a block will be executed if the previous LOOP executed successfully</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280715#M1723964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi T S,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your question is not clear. Can you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 06:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280715#M1723964</guid>
      <dc:creator>kakshat</dc:creator>
      <dc:date>2013-02-14T06:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: a block will be executed if the previous LOOP executed successfully</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280716#M1723965</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;You can take a counter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: lv_count type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_count = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_tab into gs_tab.&lt;/P&gt;&lt;P&gt;*---your code*..&lt;/P&gt;&lt;P&gt;lv_count = lv_count + 1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now &lt;/P&gt;&lt;P&gt;do lv_count times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 06:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280716#M1723965</guid>
      <dc:creator>Abhijit74</dc:creator>
      <dc:date>2013-02-14T06:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: a block will be executed if the previous LOOP executed successfully</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280717#M1723966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure to understand your question, either very basic either very complex, &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I remain perplexed ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Raymond&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 06:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280717#M1723966</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-02-14T06:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: a block will be executed if the previous LOOP executed successfully</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280718#M1723967</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;You can use a counter for this ....&lt;/P&gt;&lt;P&gt;like ... :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at i_tab into wa_tab.&lt;/P&gt;&lt;P&gt;your code .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc = 0.&lt;/P&gt;&lt;P&gt;Add counter to one.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then do counter times another loop which you want to execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help .... &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1214/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 06:54:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280718#M1723967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-14T06:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: a block will be executed if the previous LOOP executed successfully</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280719#M1723968</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;U can do it in 2 ways&lt;/P&gt;&lt;P&gt;1) Using nested&amp;nbsp; LOOP , i.e&lt;/P&gt;&lt;P&gt; LOOP.&lt;/P&gt;&lt;P&gt;code block___________&lt;/P&gt;&lt;P&gt;____________________&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; LOOP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */your code here&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)v_counter = 0.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB into WA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; */your code here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; v_counter&amp;nbsp; = v_counter + 1.&lt;/P&gt;&lt;P&gt;ENDLOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO v_counter times.&lt;/P&gt;&lt;P&gt;*/Your code here&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 09:04:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-block-will-be-executed-if-the-previous-loop-executed-successfully/m-p/9280719#M1723968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-14T09:04:56Z</dc:date>
    </item>
  </channel>
</rss>

