<?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: Enhancements: Declaration vs. Code (static vs. dynamic Enhancement Points) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622928#M602474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You surely can write such statements in static enhancement-implementation, however the difference lies between being a conditional call and an unconditional call of implemnetations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incase the enhancement is not specified as static then it is supposed to be a dynamic implemenattion, which is called only if the status of its switch is ON, i.e a dynamic call at runtime. Whereas if it is a static implementation then the switch will not effect and the implemenattion is callled irrelevant to switch status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See abap help for Enahncement-point for more clarification and revert if any doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Encourage by rewarding points if useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2007 05:13:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-30T05:13:19Z</dc:date>
    <item>
      <title>Enhancements: Declaration vs. Code (static vs. dynamic Enhancement Points)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622925#M602471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I implement an implicit enhancement point, a popup with the buttons "Declaration" and "Code" appears. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the enhancement implementation I see later on that a "static enhancement point" (for declaration) or. a "dynamic enhancement point" (for Code) has been created. What's the difference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I choose "Declaration", I still can insert non-declarative statements like WRITE into the enhancement code, and these code parts are processed as well as the enhancements declared as "Code".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what's the sense of this distinction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael Umlauff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 21:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622925#M602471</guid>
      <dc:creator>michael_umlauff</dc:creator>
      <dc:date>2007-07-26T21:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancements: Declaration vs. Code (static vs. dynamic Enhancement Points)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622926#M602472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Refer below blog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/thomas.weiss/blog/2006/01/24/what-the-new-enhancement-framework-is-for-150-its-basic-structure-and-elements-for-beginners&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 05:21:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622926#M602472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T05:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancements: Declaration vs. Code (static vs. dynamic Enhancement Points)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622927#M602473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have carefully read all the five blogs of Thomas Weiss to the Enhancement Framework, but I didn't find any portion of text concerning the static vs. dynamic Enhancement-Points, or what is about the distinction between declaration and code. Could  you please cite the paragraph you mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael Umlauff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 08:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622927#M602473</guid>
      <dc:creator>michael_umlauff</dc:creator>
      <dc:date>2007-07-27T08:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancements: Declaration vs. Code (static vs. dynamic Enhancement Points)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622928#M602474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You surely can write such statements in static enhancement-implementation, however the difference lies between being a conditional call and an unconditional call of implemnetations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incase the enhancement is not specified as static then it is supposed to be a dynamic implemenattion, which is called only if the status of its switch is ON, i.e a dynamic call at runtime. Whereas if it is a static implementation then the switch will not effect and the implemenattion is callled irrelevant to switch status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See abap help for Enahncement-point for more clarification and revert if any doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Encourage by rewarding points if useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 05:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622928#M602474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T05:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancements: Declaration vs. Code (static vs. dynamic Enhancement Points)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622929#M602475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found an explanation like your answer in online help, but when I examine it I observe that the static enhancements aren't processed too if the switch is off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a little example: I have a very small report that outputs just one line by a form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]REPORT  zmu_enhance_test.&lt;/P&gt;&lt;P&gt;FORM output.&lt;/P&gt;&lt;P&gt;  WRITE: / 'This is Standard'.&lt;/P&gt;&lt;P&gt;ENDFORM.                   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  PERFORM output.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I enter Enhancement mode and show the implicit enhancements. I find two in the form, one at the beginning and one at the end. I enhance the first by a static and the second dynamic enhancement. I put both enhancements into a package that is switched by my switch &amp;lt;i&amp;gt;zmu_enhance&amp;lt;/i&amp;gt;, that is switched &amp;lt;i&amp;gt;off&amp;lt;/i&amp;gt; at now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]REPORT  zmu_enhance_test.&lt;/P&gt;&lt;P&gt;FORM output.&lt;/P&gt;&lt;P&gt;""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-Start: (1 )----&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 2  ZMU_ENH_IMPL_REPORT_DECL.    "active version&lt;/P&gt;&lt;P&gt;  write: / 'This is an implicit declaration enhancement'.&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-End:   (1 )----&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  WRITE: / 'This is Standard'.&lt;/P&gt;&lt;P&gt;"""""""""""""""""""""""""""""""""""""""""""""""""""""""" &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-Start: (2 )----&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1  ZMU_ENH_IMPL_REPORT_CODE.    "active version&lt;/P&gt;&lt;P&gt;  write: / 'This is an implicit code enhancement'.&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-End:   (2 )----&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  PERFORM output.[/code]&lt;/P&gt;&lt;P&gt;When I run my program, it seems to be unchanged. Nor the static neither the dynamic enhancement is processed. But when I &lt;/P&gt;&lt;P&gt;switch &amp;lt;i&amp;gt;zmu_enhance&amp;lt;/i&amp;gt; &amp;lt;i&amp;gt;on&amp;lt;/i&amp;gt; by a business function in SFW5, both enhancements are processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the question is still what is the difference between static(declaration) and dynamic(code) enhancement point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael[code][/code][code][/code]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 12:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622929#M602475</guid>
      <dc:creator>michael_umlauff</dc:creator>
      <dc:date>2007-07-30T12:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancements: Declaration vs. Code (static vs. dynamic Enhancement Points)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622930#M602476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried simulating the scenario you mentioned and its works the same way as you mentioned, however when i read the ABAPHELP documentation for switch under Enhancement-point this is what it says.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... STATIC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;: The addition STATIC is used to define a static source code enhancement. In a static source code enhancement, all incorporated source code plug-ins are taken into account when the program is executed, including those whose switch is in the status stand-by. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I believe that the status off will put the Enhancement implementation in OFF mode but the difference lies between the status mode Stand-by.&lt;/P&gt;&lt;P&gt;Incase of stand-by mode only static implementations are called and not the dynamic ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus this is what i hope is an acceptable explanation to your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 04:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622930#M602476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T04:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancements: Declaration vs. Code (static vs. dynamic Enhancement Points)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622931#M602477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are probably right: 10pt &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found another piece of documentation which fortifies your opinion. help.sap.com -&amp;gt; Switch Framework explains on page &amp;lt;a href="http://help.sap.com/saphelp_nw70/helpdata/en/4e/708441fd86030de10000000a1550b0/content.htm"&amp;gt;Switch States&amp;lt;/a&amp;gt; &lt;/P&gt;&lt;P&gt; for STAND BY:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Switches on all declarative Repository objects, that is, all switchable objects of the ABAP Dictionary and all static source code enhancements.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 17:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancements-declaration-vs-code-static-vs-dynamic-enhancement-points/m-p/2622931#M602477</guid>
      <dc:creator>michael_umlauff</dc:creator>
      <dc:date>2007-08-02T17:44:31Z</dc:date>
    </item>
  </channel>
</rss>

