<?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: regarding preform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045362#M421111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here when exit is encountered the processing of that subroutine will stop there and the statements after the exit will not get executed........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the control comes to the next statement after perform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;execute the following code then u will understand.&lt;/P&gt;&lt;P&gt;REPORT XYZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform rajesh.&lt;/P&gt;&lt;P&gt;Write / 'Rajesh1' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form rajesh.&lt;/P&gt;&lt;P&gt;Write / 'Rajesh2' .&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;Write / 'Rajesh3' .&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program will print the output as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajesh2.&lt;/P&gt;&lt;P&gt;Rajesh1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u have any doubt, Reply .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;Suresh...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Mar 2007 14:41:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-10T14:41:43Z</dc:date>
    <item>
      <title>regarding preform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045359#M421108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perform rajesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form rajesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some code.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what will hapen when exit triggers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       is it come out from perform or come out from form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; could u plz explain clearly step by step&lt;/P&gt;&lt;P&gt;with code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 14:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045359#M421108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T14:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: regarding preform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045360#M421109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit will come out of the form, which eventually means that it comes out of &lt;/P&gt;&lt;P&gt;the perform!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When and &amp;lt;b&amp;gt;EXIT&amp;lt;/b&amp;gt; is called inside, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;1. loop&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It exits the current loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;2. IF condition.&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it exits the current condition check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt; Form&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it exits the form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;event (start of selection) &amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it exits the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 14:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045360#M421109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T14:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: regarding preform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045361#M421110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; EXIT - will come out the routine.&lt;/P&gt;&lt;P&gt;For an example You want to come out of the loop if sy-tabix is greter than 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM populate_data.&lt;/P&gt;&lt;P&gt;FORM populate_data .&lt;/P&gt;&lt;P&gt;    Loop at internal table.&lt;/P&gt;&lt;P&gt;      if sy-tabix &amp;gt; 5.&lt;/P&gt;&lt;P&gt;          exit.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u r not clear let me know i will send the detail code.&lt;/P&gt;&lt;P&gt;By &lt;/P&gt;&lt;P&gt;Nava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 14:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045361#M421110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T14:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: regarding preform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045362#M421111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here when exit is encountered the processing of that subroutine will stop there and the statements after the exit will not get executed........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the control comes to the next statement after perform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;execute the following code then u will understand.&lt;/P&gt;&lt;P&gt;REPORT XYZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform rajesh.&lt;/P&gt;&lt;P&gt;Write / 'Rajesh1' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form rajesh.&lt;/P&gt;&lt;P&gt;Write / 'Rajesh2' .&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;Write / 'Rajesh3' .&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program will print the output as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajesh2.&lt;/P&gt;&lt;P&gt;Rajesh1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u have any doubt, Reply .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;Suresh...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 14:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045362#M421111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T14:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: regarding preform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045363#M421112</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;Please check this sample codes regarding exit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...

perform rajesh.

perform rajesh2.

...
form rajesh.
  
  if &amp;lt;condition&amp;gt; = &amp;lt;condition check&amp;gt;.
   exit.                  &amp;lt;--- Exit1
  else.
   &amp;lt;codes&amp;gt;.      
  endif.

  loop at &amp;lt;internal table&amp;gt;.
    if &amp;lt;condition&amp;gt; = &amp;lt;condition check&amp;gt;.
      exit.               &amp;lt;--- Exit2
    else.
      continue.
    endif.   
  endloop.
  
  &amp;lt;codes&amp;gt;.
  exit.                   &amp;lt;--- Exit3

endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit1:&lt;/P&gt;&lt;P&gt;The exit will exit from IF statement when the condition check is met. Then continue to perform loop statement.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit2:&lt;/P&gt;&lt;P&gt;The exit will exit from current loop when the condition check is met in IF statement. Then continue to perform next &amp;lt;codes&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit3:&lt;/P&gt;&lt;P&gt;The exit will exit from form rajesh and continue to perform rajesh2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 14:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045363#M421112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T14:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: regarding preform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045364#M421113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could u send it step by step  with comments&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 14:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045364#M421113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T14:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: regarding preform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045365#M421114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its clear thanks a lots&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 14:58:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-preform/m-p/2045365#M421114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T14:58:24Z</dc:date>
    </item>
  </channel>
</rss>

