<?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: Check 1 = 2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934009#M61540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please award points for helpful answers and mark this post as solved.  Thanks.&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>Tue, 30 Aug 2005 14:59:50 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-08-30T14:59:50Z</dc:date>
    <item>
      <title>Check 1 = 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934003#M61534</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;Can anyone explain the &amp;lt;b&amp;gt;'1 = 2'&amp;lt;/b&amp;gt; which you can find in SAP sources (for example :  SAPDBVAV, SAPDBVLV, SAPF011) ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rob Makelaar&lt;/P&gt;&lt;P&gt;The Netherlands&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 14:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934003#M61534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-30T14:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Check 1 = 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934004#M61535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks to me that it is being used as a way of exiting the FORM.  For example, in the program SAPF011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

FORM VORTRAG_AUF_GLEICHES_KONTO.

  IF CONTR-EXIST = SPACE.
    MIGTAB-RACCT = EXTR-RACCT.
    MIGTAB-BUKRS = EXTR-BUKRS.
    CASE CONTR-ERROR.
      WHEN 'SKA1'. MIGTAB-TEXT1 = TEXT-007.
      WHEN 'SKB1'. MIGTAB-TEXT1 = TEXT-008.
      WHEN 'T001'. MIGTAB-TEXT1 = TEXT-026.
    ENDCASE.
    COLLECT MIGTAB.
    CHECK 1 = 2.
  ENDIF.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it goes inside this IF statement, then it will never go any further in the FORM, it will exit at the CHECK 1 = 2.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why they didn't just use the "EXIT" statement.&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>Tue, 30 Aug 2005 14:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934004#M61535</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-30T14:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Check 1 = 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934005#M61536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a not possible equality, so you will stop at this point and exit the form. It's like an EXIT command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The people who make this code like to play &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&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;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 14:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934005#M61536</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-08-30T14:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Check 1 = 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934006#M61537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe the return code is different&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 14:41:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934006#M61537</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-08-30T14:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Check 1 = 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934007#M61538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a way to not execute the code of program after the control.&lt;/P&gt;&lt;P&gt;In a routine like FORM you could also write EXIT instead of CHECK 1 = 2 or...... CHECK 'BATMAN' = 'ROBIN'.... eh! eh! eh!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 14:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934007#M61538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-30T14:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Check 1 = 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934008#M61539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I suppose that this CHECK performs always a negative result.&lt;/P&gt;&lt;P&gt;"CHECK with a negative outcome terminates the current loop pass and goes back to the beginning of the loop to start the next pass, if there is one. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 14:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934008#M61539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-30T14:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Check 1 = 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934009#M61540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please award points for helpful answers and mark this post as solved.  Thanks.&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>Tue, 30 Aug 2005 14:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934009#M61540</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-30T14:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Check 1 = 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934010#M61541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes it used to make possible searching something (e.g. messages) via &amp;lt;b&amp;gt;where-used&amp;lt;/b&amp;gt; list. E.g. there are places where they collect messages into some application log without issueing it by MESSAGE statement, and obviously in that case you cannot find particular message via where-used list. And certainly something like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF 1 = 2.
  MESSAGE ....
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;can help somehow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 15:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-1-2/m-p/934010#M61541</guid>
      <dc:creator>sergey_korolev</dc:creator>
      <dc:date>2005-08-30T15:04:44Z</dc:date>
    </item>
  </channel>
</rss>

