<?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 check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check/m-p/2016215#M412015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;if i use check not within a loop is it possible? i have a function module where in this FM my coding as follows:&lt;/P&gt;&lt;P&gt;at any point of sy-subrc not eq 0, can it goes out of the FM? thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF vbrk-field1 = '5678'.  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  check vbrk-field1 = '5678'. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;    SELECT SINGLE fielda FROM tablea INTO wa_fielda&lt;/P&gt;&lt;P&gt;      WHERE fieldb EQ 'ABC'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IF sy-subrc = 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE fieldb FROM tableb INTO wa_fieldb&lt;/P&gt;&lt;P&gt;         WHERE fieldc EQ wa_fielda.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     IF sy-subrc = 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SELECT SINGLE fieldc FROM tablec INTO wa_fieldc&lt;/P&gt;&lt;P&gt;              WHERE fieldd EQ wa_fieldb.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       IF sy-subrc = 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          do something.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2007 23:43:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-21T23:43:15Z</dc:date>
    <item>
      <title>check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check/m-p/2016215#M412015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;if i use check not within a loop is it possible? i have a function module where in this FM my coding as follows:&lt;/P&gt;&lt;P&gt;at any point of sy-subrc not eq 0, can it goes out of the FM? thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF vbrk-field1 = '5678'.  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  check vbrk-field1 = '5678'. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;    SELECT SINGLE fielda FROM tablea INTO wa_fielda&lt;/P&gt;&lt;P&gt;      WHERE fieldb EQ 'ABC'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IF sy-subrc = 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE fieldb FROM tableb INTO wa_fieldb&lt;/P&gt;&lt;P&gt;         WHERE fieldc EQ wa_fielda.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     IF sy-subrc = 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SELECT SINGLE fieldc FROM tablec INTO wa_fieldc&lt;/P&gt;&lt;P&gt;              WHERE fieldd EQ wa_fieldb.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       IF sy-subrc = 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          do something.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 23:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check/m-p/2016215#M412015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T23:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check/m-p/2016216#M412016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it should come directly out of the FM if the CHECK is not inside a looping mechanism like LOOP, DO, WHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 23:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check/m-p/2016216#M412016</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-21T23:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check/m-p/2016217#M412017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use check statement out side of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&lt;/P&gt;&lt;P&gt;at any point of sy-subrc not eq 0, can it goes out of the FM? &lt;/P&gt;&lt;P&gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this depends on your code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 23:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check/m-p/2016217#M412017</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-21T23:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check/m-p/2016218#M412018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;el,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Yes it will come out of FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check/m-p/2016218#M412018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T03:13:14Z</dc:date>
    </item>
  </channel>
</rss>

