<?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: Include Activation Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819733#M1314702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; You mean in an INCLUDE program we can have AT SELECTION-SCREEN, START-OF-SELECTION statements (for e.g.,).&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; If you have ever created a dynpro or function group, you'll see that all the logic (and events) are in includes.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Rob&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is foolish of me. Thank God, weekend's coming &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2009 15:50:35 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2009-06-26T15:50:35Z</dc:date>
    <item>
      <title>Include Activation Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819726#M1314695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,      &lt;/P&gt;&lt;P&gt;      I have a very small question.&lt;/P&gt;&lt;P&gt;I created a program which runs very much fine. But now I want that program to be changed as an include and use it in another program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I created an include in the other program and copied the whole executable program into the include. (Deleting the report stmt.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for some reason it is giving me the error at the time of activation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It says.&lt;/P&gt;&lt;P&gt;"Incorrect nesting Before the statement Form the structure introduced by the if must be concluded by endif."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no IF that is open before the form. I'm not sure why this error is coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error line it is showing is just at the line of first Form (Form-Endform).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I check for syntax it is just giving no errors. Except statement not accessible, because it is an include. so no worries here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so can some one please guide me if there is some thing else I need to do before coping the code from executable to include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;-Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 14:12:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819726#M1314695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T14:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Include Activation Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819727#M1314696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try activating , your executable program and include together.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 14:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819727#M1314696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T14:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Include Activation Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819728#M1314697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an idea. But did you have any EVENTS statements included in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logically thinking an INCLUDE program must not have any events. I think this may be the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check &amp;amp; rectify.&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, 26 Jun 2009 14:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819728#M1314697</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-06-26T14:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Include Activation Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819729#M1314698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course an include can have event statements.  They can have &lt;STRONG&gt;any&lt;/STRONG&gt; abap in.  There's nothing to stop you, for example, putting all the code of your "AT SELECTION-SCREEN" event in an include, if you want to.  Includes are just code fragments, nothing more.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find out what the problem is when you have an outer program using an include, copy and paste the text of the include into your outer program at the point where you have the include statement (overwriting it of course).. A syntax check should reveal the nature of the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want functionality to be reused, rather than an include it's far better to encapsulate it in a class.  ( Or if you're not OO yet, then a function module ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Jun 26, 2009 5:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 15:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819729#M1314698</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-06-26T15:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Include Activation Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819730#M1314699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mean in an INCLUDE program we can have AT SELECTION-SCREEN, START-OF-SELECTION statements (for e.g.,).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a new info for me, 'coz i have never tried this &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;)&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, 26 Jun 2009 15:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819730#M1314699</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-06-26T15:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Include Activation Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819731#M1314700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Every one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    The problem is solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 15:37:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819731#M1314700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T15:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Include Activation Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819732#M1314701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; You mean in an INCLUDE program we can have AT SELECTION-SCREEN, START-OF-SELECTION statements (for e.g.,).&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you have ever created a dynpro or function group, you'll see that all the logic (and events) are in includes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 15:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819732#M1314701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T15:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Include Activation Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819733#M1314702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; You mean in an INCLUDE program we can have AT SELECTION-SCREEN, START-OF-SELECTION statements (for e.g.,).&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; If you have ever created a dynpro or function group, you'll see that all the logic (and events) are in includes.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Rob&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is foolish of me. Thank God, weekend's coming &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 15:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819733#M1314702</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-06-26T15:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Include Activation Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819734#M1314703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; This is foolish of me. Thank God, weekend's coming :-P&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We all learn...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use includes only for organising code - not for modularisation or reuse.  (There are some exceptions, but they're few and far between).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A lot of people misunderstand the use of includes.  For example, if they see &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF condition.
  INCLUDE a.
ELSE.
  INCLUDE b.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  they think that include a is only included if the condition is met.  But both includes are *always" included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Think about the above if include a held &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Do some stuff
ENDIF.
IF some other condition.
* Do some more stuff&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would be syntactically perfectly valid.  And extremely confusing...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2009 05:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-activation-error/m-p/5819734#M1314703</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-06-27T05:08:53Z</dc:date>
    </item>
  </channel>
</rss>

