<?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: Sourcecode Plugin - no open &amp;quot;IF&amp;quot; Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sourcecode-plugin-no-open-quot-if-quot-statement/m-p/6676146#M1448812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obviously this is the reason why. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for pointing that out. &lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Mar 2010 16:40:17 GMT</pubDate>
    <dc:creator>ChristianFi</dc:creator>
    <dc:date>2010-03-17T16:40:17Z</dc:date>
    <item>
      <title>Sourcecode Plugin - no open "IF" Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sourcecode-plugin-no-open-quot-if-quot-statement/m-p/6676143#M1448809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe I was misled by the impression that the coding of an enhancement is merged as soon as a load is generated and that the syntax-check consider original code as well as active enhancement as a whole. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this would be the case, following example should work but since the compiler states that no open if statement exists, I have some doubts if I did not miss something essential here. Could anybody help? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here goes the coding. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT /sew/cotest1 .
TYPE-POOLS: abap.

DATA g_test TYPE abap_bool.

IF g_test = abap_true.
  WRITE: 'TEST'.
ENHANCEMENT-POINT /SEW/COTEST1 SPOTS /SEW/COTEST1.
*$*$-Start: /SEW/COTEST1-------------------------------------------------$*$*
ENHANCEMENT 1  /SEW/COTEST1.    "active version
else.
  write: 'test'.
ENDENHANCEMENT.
*$*$-End:   /SEW/COTEST1-------------------------------------------------$*$*
ENDIF.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is that the normal if block is "enhanced" with an else block. The write statements do not make sense but this is not the point here. As soon as I try to activate the implementation of the inhancement I get the error message: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;No open "IF" statement&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;The enhancment is only active because I said "Activate anyway" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;P&gt;Thank you in advance. &lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 17, 2010 11:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 14:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sourcecode-plugin-no-open-quot-if-quot-statement/m-p/6676143#M1448809</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2010-03-17T14:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcecode Plugin - no open "IF" Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sourcecode-plugin-no-open-quot-if-quot-statement/m-p/6676144#M1448810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its because the 'IF' part is in your report and the 'else' part is in the enhancement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 15:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sourcecode-plugin-no-open-quot-if-quot-statement/m-p/6676144#M1448810</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-03-17T15:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcecode Plugin - no open "IF" Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sourcecode-plugin-no-open-quot-if-quot-statement/m-p/6676145#M1448811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the help for ENHANCEMENT:&lt;/P&gt;&lt;P&gt;&amp;gt;The control structures and processing blocks contained in the implementation must be complete. &lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 15:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sourcecode-plugin-no-open-quot-if-quot-statement/m-p/6676145#M1448811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-17T15:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcecode Plugin - no open "IF" Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sourcecode-plugin-no-open-quot-if-quot-statement/m-p/6676146#M1448812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obviously this is the reason why. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for pointing that out. &lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 16:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sourcecode-plugin-no-open-quot-if-quot-statement/m-p/6676146#M1448812</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2010-03-17T16:40:17Z</dc:date>
    </item>
  </channel>
</rss>

