<?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 Replacing an existing Souce Code Plug-In in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-an-existing-souce-code-plug-in/m-p/2877179#M675412</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;I am working in ECC6 and in program SAPMF02K, SAP defined an Enhancement-Section in Form CHECK_REPRUE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT-SECTION     CHECK_REPRUE_01 SPOTS ES_MF02KFMC INCLUDE BOUND.&lt;/P&gt;&lt;P&gt;    IF ( LFM1-XERSY = 'X'   OR&lt;/P&gt;&lt;P&gt;         LFM1-XNBWY = 'X'   OR    " RR 11.11.99&lt;/P&gt;&lt;P&gt;         LFM1-XERSR = 'X' ) AND&lt;/P&gt;&lt;P&gt;         LFM1-WEBRE IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE W146(WY).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Automatische WE-Abrechnung erfordert auch WE-bezogene Rechnungsprüfu&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;END-ENHANCEMENT-SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They also created and enhancement for this enchancement section:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 2  DIMP_GENERAL_MF02KFMC.    "active version&lt;/P&gt;&lt;P&gt;    IF ( LFM1-XERSY = 'X'   OR&lt;/P&gt;&lt;P&gt;         LFM1-XNBWY = 'X'   OR    " RR 11.11.99&lt;/P&gt;&lt;P&gt;         LFM1-XERSR = 'X' ) AND&lt;/P&gt;&lt;P&gt;         LFM1-WEBRE IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE W146(WY).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Automatische WE-Abrechnung erfordert auch WE-bezogene Rechnungsprüfu&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our business has decided that they do not want this warning message to display, so I created a replacement of the SAP enchancement by right clicking on the SAP supplied enhancement, choosing Enhancement Implementation-&amp;gt;Replace. I then inserted my replacement code saved and pressed activate enhancement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1  ZZ_ES_REPRUE01.    "active version    "replacing DIMP_GENERAL_MF02KFMC&lt;/P&gt;&lt;P&gt;    IF ( LFM1-XERSY = 'X'   OR&lt;/P&gt;&lt;P&gt;         LFM1-XNBWY = 'X'   OR    " RR 11.11.99&lt;/P&gt;&lt;P&gt;         LFM1-XERSR = 'X' ) AND&lt;/P&gt;&lt;P&gt;         LFM1-WEBRE IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MESSAGE W146(WY).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Automatische WE-Abrechnung erfordert auch WE-bezogene Rechnungsprüfu&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything activated fine, but when I run the program I still get the warning. I stepped through it in debug and my replacement enhancement does not seem to have replaced the SAP code. I already read all 5 blogs that Thomas Weiss wrote about Enhancement Framework, the help files, and the other PDFs that are listed on &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/2342e1f3-0b01-0010-a186-fdd404884050" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/2342e1f3-0b01-0010-a186-fdd404884050&lt;/A&gt; &lt;A href="original link is broken"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something? I was wondering about if I need to set a switch in SFW1 or the other switch framework transactions, but nothing seems evident. Please let me know if I am missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Gregg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. As I noted, I already read the documents, blogs, and help files listed above, so please do not post a reponse listing those as answers since I have already read them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2007 18:57:30 GMT</pubDate>
    <dc:creator>GreggHinkle</dc:creator>
    <dc:date>2007-10-03T18:57:30Z</dc:date>
    <item>
      <title>Replacing an existing Souce Code Plug-In</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-an-existing-souce-code-plug-in/m-p/2877179#M675412</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;I am working in ECC6 and in program SAPMF02K, SAP defined an Enhancement-Section in Form CHECK_REPRUE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT-SECTION     CHECK_REPRUE_01 SPOTS ES_MF02KFMC INCLUDE BOUND.&lt;/P&gt;&lt;P&gt;    IF ( LFM1-XERSY = 'X'   OR&lt;/P&gt;&lt;P&gt;         LFM1-XNBWY = 'X'   OR    " RR 11.11.99&lt;/P&gt;&lt;P&gt;         LFM1-XERSR = 'X' ) AND&lt;/P&gt;&lt;P&gt;         LFM1-WEBRE IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE W146(WY).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Automatische WE-Abrechnung erfordert auch WE-bezogene Rechnungsprüfu&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;END-ENHANCEMENT-SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They also created and enhancement for this enchancement section:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 2  DIMP_GENERAL_MF02KFMC.    "active version&lt;/P&gt;&lt;P&gt;    IF ( LFM1-XERSY = 'X'   OR&lt;/P&gt;&lt;P&gt;         LFM1-XNBWY = 'X'   OR    " RR 11.11.99&lt;/P&gt;&lt;P&gt;         LFM1-XERSR = 'X' ) AND&lt;/P&gt;&lt;P&gt;         LFM1-WEBRE IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE W146(WY).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Automatische WE-Abrechnung erfordert auch WE-bezogene Rechnungsprüfu&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our business has decided that they do not want this warning message to display, so I created a replacement of the SAP enchancement by right clicking on the SAP supplied enhancement, choosing Enhancement Implementation-&amp;gt;Replace. I then inserted my replacement code saved and pressed activate enhancement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1  ZZ_ES_REPRUE01.    "active version    "replacing DIMP_GENERAL_MF02KFMC&lt;/P&gt;&lt;P&gt;    IF ( LFM1-XERSY = 'X'   OR&lt;/P&gt;&lt;P&gt;         LFM1-XNBWY = 'X'   OR    " RR 11.11.99&lt;/P&gt;&lt;P&gt;         LFM1-XERSR = 'X' ) AND&lt;/P&gt;&lt;P&gt;         LFM1-WEBRE IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MESSAGE W146(WY).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Automatische WE-Abrechnung erfordert auch WE-bezogene Rechnungsprüfu&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything activated fine, but when I run the program I still get the warning. I stepped through it in debug and my replacement enhancement does not seem to have replaced the SAP code. I already read all 5 blogs that Thomas Weiss wrote about Enhancement Framework, the help files, and the other PDFs that are listed on &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/2342e1f3-0b01-0010-a186-fdd404884050" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/2342e1f3-0b01-0010-a186-fdd404884050&lt;/A&gt; &lt;A href="original link is broken"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something? I was wondering about if I need to set a switch in SFW1 or the other switch framework transactions, but nothing seems evident. Please let me know if I am missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Gregg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. As I noted, I already read the documents, blogs, and help files listed above, so please do not post a reponse listing those as answers since I have already read them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 18:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-an-existing-souce-code-plug-in/m-p/2877179#M675412</guid>
      <dc:creator>GreggHinkle</dc:creator>
      <dc:date>2007-10-03T18:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing an existing Souce Code Plug-In</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-an-existing-souce-code-plug-in/m-p/2877180#M675413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I fixed my issue but I wanted to let others know the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After messing around with this for a long time, I double clicked on the enhancement ID of the SAP supplied enhancement that I was trying to replace which was DIMP_GENERAL_MF02KFMC (Enhancement definition line is shown below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 2  DIMP_GENERAL_MF02KFMC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I looked in the properties tab for this enhancement, I noticed that it was switched off. The switch was DIMP_GENERAL. I went to SFW1 to see what all was included in this switch, but I decided that I did not was to turn this switch on. So then I removed my enhancement that I replaced the SAP supplied enhancement and created an new enhancement. This time I created it directly from the enhancement-point and saved and activated. When I ran it, my enhancement code was executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the learning here is do not try to replace an existing enhancement unless you have confirmed that it is actually switched on. If the existing enhancement is not switched on, create your enhancement directly for the enhancement-section instead of replacing the existing enhancement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck to all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gregg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 12:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-an-existing-souce-code-plug-in/m-p/2877180#M675413</guid>
      <dc:creator>GreggHinkle</dc:creator>
      <dc:date>2007-10-04T12:37:54Z</dc:date>
    </item>
  </channel>
</rss>

