<?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: Q: What does this statement do? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988579#M1342070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikael Kilåker  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This type of comment is being used when we are developing smart forms, in that case if we need to comment some text box then in condition tab we used to put 1 = 2, which is never possible and that is commented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So its totally upto the developer if he even uses it in normal coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rohit G&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2009 07:37:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-14T07:37:18Z</dc:date>
    <item>
      <title>Q: What does this statement do?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988573#M1342064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have come across the following code (in a SAP standard function module):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F 1 = 2. MESSAGE E008(R3). ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody please explain what this does? As I see it 1 is never equal to 2, so this if-statement is never true, hence I do not see the point of having it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Mikael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988573#M1342064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T07:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Q: What does this statement do?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988574#M1342065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will throw an compilation error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988574#M1342065</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-08-14T07:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Q: What does this statement do?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988575#M1342066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I have come across the following code (in a SAP standard function module):&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; IF 1 = 2. MESSAGE E008(R3). ENDIF. &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Can somebody please explain what this does? As I see it 1 is never equal to 2, so this if-statement is never true, hence I do not see the point of having it...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thank you in advance,&lt;/P&gt;&lt;P&gt;&amp;gt; Mikael&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Mikael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives a reference as to where the message E008 of Message Class R3 is being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP uses this cheeky trick to keep track where this message is being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988575#M1342066</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-08-14T07:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Q: What does this statement do?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988576#M1342067</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;Thank you for your answers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Rainer: It compiles fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Suhas:  Ok, so why do they not just write a comment then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mikael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988576#M1342067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T07:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Q: What does this statement do?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988577#M1342068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mikael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is generally used in BAPIs where the user gets an error in BAPIRET structure &amp;amp; if there is no reference of where the message is being populated &amp;amp; it will take some effort to find it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP uses this small trick to keep track where this message is being used. So that a "where-used" on the message will take the user to this line of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting other users' response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988577#M1342068</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-08-14T07:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Q: What does this statement do?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988578#M1342069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if Is validating for variable F1  = 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988578#M1342069</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-08-14T07:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Q: What does this statement do?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988579#M1342070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikael Kilåker  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This type of comment is being used when we are developing smart forms, in that case if we need to comment some text box then in condition tab we used to put 1 = 2, which is never possible and that is commented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So its totally upto the developer if he even uses it in normal coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rohit G&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988579#M1342070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T07:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Q: What does this statement do?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988580#M1342071</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;If 1 = 2.&lt;/P&gt;&lt;P&gt;msg..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;If the condition is true then only it will show that message  in else part you should give some message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That condition is useless. No use in the progarm, &lt;/P&gt;&lt;P&gt;Did u check out declaration part? wheather macros are defind?&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;pravin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988580#M1342071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T07:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Q: What does this statement do?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988581#M1342072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Awaiting other users' response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not necessary, your answer is 100% correct imho.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988581#M1342072</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-08-14T07:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Q: What does this statement do?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988582#M1342073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.articlesbase.com/information-technology-articles/sap-if-12-what-is-this-code-about-310549.html" target="test_blank"&gt;http://www.articlesbase.com/information-technology-articles/sap-if-12-what-is-this-code-about-310549.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988582#M1342073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T07:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Q: What does this statement do?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988583#M1342074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thank you for your answers,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; @ Rainer: It compiles fine.&lt;/P&gt;&lt;P&gt;&amp;gt; Best regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Mikael&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, it will not. For sure. F is not a keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988583#M1342074</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-08-14T07:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Q: What does this statement do?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988584#M1342075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rainier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I can see that I didn't copy the I in the IF statement, so the code I wrote in my original post would not work, but it should be an IF-statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mikael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 08:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/q-what-does-this-statement-do/m-p/5988584#M1342075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T08:40:16Z</dc:date>
    </item>
  </channel>
</rss>

