<?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 Exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit/m-p/1495589#M230128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote one exam in the sapdomain and it has got one question as follows.&lt;/P&gt;&lt;P&gt;if we have Exit in the loop of a sub Routine which is called from a programme what is the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sapdomain gave the answer as exit from loop. But I read in the book as if we have exit in the program, the program comes out and displays the list which is contradicting from the above. Please clarify. please eloborate as much as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Sep 2006 18:47:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-05T18:47:58Z</dc:date>
    <item>
      <title>Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit/m-p/1495589#M230128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote one exam in the sapdomain and it has got one question as follows.&lt;/P&gt;&lt;P&gt;if we have Exit in the loop of a sub Routine which is called from a programme what is the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sapdomain gave the answer as exit from loop. But I read in the book as if we have exit in the program, the program comes out and displays the list which is contradicting from the above. Please clarify. please eloborate as much as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 18:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit/m-p/1495589#M230128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T18:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit/m-p/1495590#M230129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you read &amp;amp; got in the exam are both correct. Only the context differs.. that is the reason SAP recommends use of EXIT only inside a loop; To exit processing blocks, use the statement RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 18:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit/m-p/1495590#M230129</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-09-05T18:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit/m-p/1495591#M230130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The behaviour of exit is diff in diff situations&lt;/P&gt;&lt;P&gt;if you use it in coditional loops like do..enddo, while..endwhile and loop and loop ....it will comeout of the conditional loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it behaves diff in events...&lt;/P&gt;&lt;P&gt;if you use exit in your prog it won't leave the prog but it depends where you used exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example if you use exit after start-of-selection then program goes to the list(report output) without processing further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use in initialization then it will directly to the selection screen without processing further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 21:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit/m-p/1495591#M230130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T21:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit/m-p/1495592#M230131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the EXIT command works as per the use, as per the question you got in sapdomain the EXIT commnad had been used inside the LOOP so it come out from the loop, if the same EXIT command used inside the program than it would have been comout from the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the EXIT command works as per current flow of the program, if current flow is inside the loop statement than it comes out from that particular loop statement , and if the same EXIT command is inside the program than it ll come out from that program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 05:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit/m-p/1495592#M230131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T05:46:57Z</dc:date>
    </item>
  </channel>
</rss>

