<?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 VOFM - problem copying code with Enhancement points in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731656#M1581033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In transaction VOFM (Data Transfer --&amp;gt; Orders), I have been asked to copy code from one routine (Routine 51) to a new custom routine. Code from source routine 51 has u201CEnhancement pointsu201D in it and there is code inside the u201CEnhancement pointsu201D.&lt;/P&gt;&lt;P&gt;I copied the code from routine 51 onto a note pad and removed the "Enhancement points/spots" but retained the code in it.  Then copied this code from notepad to the newly created routine.  After activating the routine, running program u201CRV80HGENu201D, updating the index of Main program (SAPFV45C),  I got syntax error because code inside ehancement has a structures which are not  recognized by the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I copied all the code from routine 51 to the new routine, without making any changes. I clicked save, it pops up a box asking information about "Enhancements". I do not know what the impact of processing this pop up screen is. I do not have much experience with "Enhancements" except putting some code in it.  Does anyone have any experience with similar situation and what do I do to copy code from an existing routine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated. Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Mar 2011 20:03:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-24T20:03:11Z</dc:date>
    <item>
      <title>VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731656#M1581033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In transaction VOFM (Data Transfer --&amp;gt; Orders), I have been asked to copy code from one routine (Routine 51) to a new custom routine. Code from source routine 51 has u201CEnhancement pointsu201D in it and there is code inside the u201CEnhancement pointsu201D.&lt;/P&gt;&lt;P&gt;I copied the code from routine 51 onto a note pad and removed the "Enhancement points/spots" but retained the code in it.  Then copied this code from notepad to the newly created routine.  After activating the routine, running program u201CRV80HGENu201D, updating the index of Main program (SAPFV45C),  I got syntax error because code inside ehancement has a structures which are not  recognized by the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I copied all the code from routine 51 to the new routine, without making any changes. I clicked save, it pops up a box asking information about "Enhancements". I do not know what the impact of processing this pop up screen is. I do not have much experience with "Enhancements" except putting some code in it.  Does anyone have any experience with similar situation and what do I do to copy code from an existing routine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated. Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 20:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731656#M1581033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-24T20:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731657#M1581034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vince,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you want to copy standard code which contains enhancement option implemented, into a custom code, I advise you to  copy the whole active code without copying lines ENHANCEMENT-POINT and ENHANCEMENT-SECTION, but retain the code of active implementations. I think it's what you did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the rules how the system knows if an implementation or code is active, I hope there's no error (otherwise, tell me so that I can correct it) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An enhancement spot and an implementation can both be linked to a switch, you'll see that switch in their "attributes" panel (SE18 or SE19 transaction, or double-click from ABAP editor).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If the enhancement spot is switched off, its implementations are not active.&lt;/P&gt;&lt;P&gt;2) If the enhancement spot is switched on, its implementations are active only if they are switched on&lt;/P&gt;&lt;P&gt;3) If an enhancement section has its enhancement spot active, and at least one of its implementations is active, then the code inside the enhancement section is deactivated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ENHANCEMENT-POINT z_point SPOTS z_es.
*$*$-Start: Z_POINT-----------------------------------------------------------------------------$*$*
ENHANCEMENT 1  Z_IMPL.    "active version
* code 1
ENDENHANCEMENT.
ENHANCEMENT 2  Z_IMPL2.    "active version
* code 2
ENDENHANCEMENT.
*$*$-End:   Z_POINT-----------------------------------------------------------------------------$*$*

ENHANCEMENT-SECTION z_section SPOTS z_es.
* code 3
END-ENHANCEMENT-SECTION.
*$*$-Start: Z_SECTION---------------------------------------------------------------------------$*$*
ENHANCEMENT 3  Z_IMPL3.    "active version
* code 4
ENDENHANCEMENT.
*$*$-End:   Z_SECTION---------------------------------------------------------------------------$*$*
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If z_es is switched off, no code is active&lt;/P&gt;&lt;P&gt;If z_es is switched on, and only z_impl is switched on, only "code1" and "code 3" are active&lt;/P&gt;&lt;P&gt;If z_es is switched on, and only z_impl3 is switched on, only "code 4" is active&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;I got syntax error because code inside ehancement has a structures which are not  recognized by the program&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell us more about it, I don't understand, I think you have made a little error (show the message, and the related pieces of code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 21:54:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731657#M1581034</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-03-24T21:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731658#M1581035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very  much for your response. You are really very knowledgeable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code that I have in source routine (T-code VOFM Data Transfer --&amp;gt; Orders Routine 51 ).  I have to copy it to the newly created target routine named 951 . Enhancement spot u201CES_SAPFV45Cu201D is active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="32" type="ul"&gt;&lt;P&gt;Begin of source code **************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DATEN_KOPIEREN_051.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF CVBAK-VBELN IS INITIAL.&lt;/P&gt;&lt;P&gt;    MESSAGE A247 WITH '051'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  VBAK-PS_PSP_PNR = CVBAK-PS_PSP_PNR.&lt;/P&gt;&lt;P&gt;  VBAK-GWLDT = CVBAK-GWLDT.&lt;/P&gt;&lt;P&gt;  VBAK-SUBMI = CVBAK-SUBMI.&lt;/P&gt;&lt;P&gt;  IF VBAK-LIFSK IS INITIAL.&lt;/P&gt;&lt;P&gt;    VBAK-LIFSK = CVBAK-LIFSK.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  VBAK-AUGRU = CVBAK-AUGRU.&lt;/P&gt;&lt;P&gt;ENHANCEMENT-POINT DATEN_KOPIEREN_051_10 SPOTS ES_SAPFV45C.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-Start: DATEN_KOPIEREN_051_10----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1  OI0_COMMON_SAPFV45C.    "active version&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IS-Oil enhancement                            "SO3K000495&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Addition of pipeline fields (MAP) for defaulting header data&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;between sales orders.  Also copies time pricing field (time) - MAP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MOVE-CORRESPONDING CVBAK TO OIC_PIPE.                 "so3k120207&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING CVBAK TO OID_EX.                   "so3k120207&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING OIC_PIPE TO VBAK.                  "so3k120207&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING OID_EX   TO VBAK.                  "so3k120207&lt;/P&gt;&lt;P&gt;  VBAK-OICHEADOFF = CVBAK-OICHEADOFF.                   "SO3K115387 AWH&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-End:   DATEN_KOPIEREN_051_10----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  IF VBAK-FAKSK = SPACE.&lt;/P&gt;&lt;P&gt;    VBAK-FAKSK = CVBAK-FAKSK.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  VBAK-WAERK = CVBAK-WAERK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF TVAK-VBTYP = CHARB OR             " Angebot&lt;/P&gt;&lt;P&gt;     TVAK-VBTYP = CHARE OR             " Lieferplan&lt;/P&gt;&lt;P&gt;     TVAK-VBTYP = CHARF OR             " Kontrakt&lt;/P&gt;&lt;P&gt;     TVAK-VBTYP = CHARG.               " Kontrakt&lt;/P&gt;&lt;P&gt;    VBAK-GUEBG = CVBAK-GUEBG.&lt;/P&gt;&lt;P&gt;    VBAK-GUEEN = CVBAK-GUEEN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  VBAK-AUTLF = CVBAK-AUTLF.&lt;/P&gt;&lt;P&gt;  IF NOT CVBAK-VDATU IS INITIAL&lt;/P&gt;&lt;P&gt;     AND VBAK-VBTYP CN VBTYP_RETOUR&lt;/P&gt;&lt;P&gt;     AND VBAK-VBTYP CN VBTYP_ANFO.&lt;/P&gt;&lt;P&gt;    VBAK-VPRGR = CVBAK-VPRGR.&lt;/P&gt;&lt;P&gt;    VBAK-VDATU = CVBAK-VDATU.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Pick-up date set for delivery orders (MAIS)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF TVAK-VBKLT EQ VBKLT_AUSL_AUFT.&lt;/P&gt;&lt;P&gt;    IF NOT CVBAK-VDATU IS INITIAL AND&lt;/P&gt;&lt;P&gt;         CVBAK-VPRGR EQ CHAR1.&lt;/P&gt;&lt;P&gt;      VBAK-ABHOD = CVBAK-ABHOD.&lt;/P&gt;&lt;P&gt;      VBAK-ABHOV = CVBAK-ABHOV.&lt;/P&gt;&lt;P&gt;      VBAK-ABHOB = CVBAK-ABHOB.&lt;/P&gt;&lt;P&gt;      VBAK-VDATU = CVBAK-VDATU.&lt;/P&gt;&lt;P&gt;      VBAK-VPRGR = CVBAK-VPRGR.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Proposed time set from Pick-up time&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF NOT CVBAK-ABHOV IS INITIAL.&lt;/P&gt;&lt;P&gt;      VBAK-VZEIT = CVBAK-ABHOV.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  VBAK-KVGR1 = CVBAK-KVGR1.&lt;/P&gt;&lt;P&gt;  VBAK-KVGR2 = CVBAK-KVGR2.&lt;/P&gt;&lt;P&gt;  VBAK-KVGR3 = CVBAK-KVGR3.&lt;/P&gt;&lt;P&gt;  VBAK-KVGR4 = CVBAK-KVGR4.&lt;/P&gt;&lt;P&gt;  VBAK-KVGR5 = CVBAK-KVGR5.&lt;/P&gt;&lt;P&gt;  VBAK-XBLNR = CVBAK-XBLNR.&lt;/P&gt;&lt;P&gt;  VBAK-ZUONR = CVBAK-ZUONR.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK1 = CVBAK-TAXK1.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK2 = CVBAK-TAXK2.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK3 = CVBAK-TAXK3.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK4 = CVBAK-TAXK4.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK5 = CVBAK-TAXK5.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK6 = CVBAK-TAXK6.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK7 = CVBAK-TAXK7.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK8 = CVBAK-TAXK8.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK9 = CVBAK-TAXK9.&lt;/P&gt;&lt;P&gt;  VBAK-XEGDR = CVBAK-XEGDR.&lt;/P&gt;&lt;P&gt;  VBAK-LANDTX = CVBAK-LANDTX.&lt;/P&gt;&lt;P&gt;  VBAK-STCEG_L = CVBAK-STCEG_L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  VBAK-ABRVW = CVBAK-ABRVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if cl_ops_switch_check=&amp;gt;ops_sfws_sc_advret1( ) eq charx.&lt;/P&gt;&lt;P&gt;    if gr_msr_sales is bound.&lt;/P&gt;&lt;P&gt;      if vbak-vbtyp eq vbtyp_ganf and&lt;/P&gt;&lt;P&gt;         cvbak-vbtyp eq vbtyp_reto.&lt;/P&gt;&lt;P&gt;        vbak-msr_id = cvbak-msr_id.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT-POINT DATEN_KOPIEREN_051_01 SPOTS ES_SAPFV45C.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-Start: DATEN_KOPIEREN_051_01----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1  ECO_HBS_SAPFV45C.    "active version&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IS A&amp;amp;D/E&amp;amp;C - RE-SCM: Copy Real Estate Object Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  vbak-swenr = cvbak-swenr.&lt;/P&gt;&lt;P&gt;  vbak-smenr = cvbak-smenr.&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-End:   DATEN_KOPIEREN_051_01----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT-POINT DATEN_KOPIEREN_051_11 SPOTS ES_SAPFV45C.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-Start: DATEN_KOPIEREN_051_11----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1  OIA_SAPFV45C.    "active version&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Copy Exchange Details, if required                     "SO3K015696&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if TVAK-VBTYP = 'G' and cvbak-oiexgnum ne space.        "SP2 KH&lt;/P&gt;&lt;P&gt;    PERFORM OIA_COPY_EXCHANGE_VBAK.                      "SO3K015696&lt;/P&gt;&lt;P&gt;  endif. "more readable/less perform.improve/same check in FORM  SP2 KH&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-End:   DATEN_KOPIEREN_051_11----&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;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="18" type="ul"&gt;&lt;P&gt; End of source code *****************************************************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did two things. First I did just like what you have mentioned. I copied all the code except for lines ENHANCEMENT-POINT and ENHANCEMENT-SECTION. When I do syntax check I got error that u201Coic_pipeu201D and u201Coid_exu201D is unknown. It is not declared in data statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I removed the code and copied the code from source routine u2013 exactly as shown above. When I clicked u201CSaveu201D button , I got a screen u201CChange Enhancement optionu201D &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know &lt;/P&gt;&lt;P&gt;-	which  buttons to select and what its Impact would be. &lt;/P&gt;&lt;P&gt;-                    Enhance Point name  =  u201CDATEN_KOPIEREN_051_10u201D . But this name is tied to the source routine 51. Do I re-name it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 16:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731658#M1581035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-28T16:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731659#M1581036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am re-posting this because the above post is garbled up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very  much for your response. You are really very knowledgeable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code that I have in source routine (T-code --&amp;gt;VOFM --&amp;gt; Data Transfer --&amp;gt; Orders --&amp;gt;  Routine 51 ).  &lt;/P&gt;&lt;P&gt;I have to copy it to the newly created target routine named 951 . Enhancement spot u201CES_SAPFV45Cu201D is active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="20" type="ul"&gt;&lt;P&gt; Begin of code from source routine 51 ********************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DATEN_KOPIEREN_051.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF CVBAK-VBELN IS INITIAL.&lt;/P&gt;&lt;P&gt;    MESSAGE A247 WITH '051'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  VBAK-PS_PSP_PNR = CVBAK-PS_PSP_PNR.&lt;/P&gt;&lt;P&gt;  VBAK-GWLDT = CVBAK-GWLDT.&lt;/P&gt;&lt;P&gt;  VBAK-SUBMI = CVBAK-SUBMI.&lt;/P&gt;&lt;P&gt;  IF VBAK-LIFSK IS INITIAL.&lt;/P&gt;&lt;P&gt;    VBAK-LIFSK = CVBAK-LIFSK.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  VBAK-AUGRU = CVBAK-AUGRU.&lt;/P&gt;&lt;P&gt;ENHANCEMENT-POINT DATEN_KOPIEREN_051_10 SPOTS ES_SAPFV45C.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-Start: DATEN_KOPIEREN_051_10----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1  OI0_COMMON_SAPFV45C.    "active version&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IS-Oil enhancement                            "SO3K000495&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Addition of pipeline fields (MAP) for defaulting header data&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;between sales orders.  Also copies time pricing field (time) - MAP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MOVE-CORRESPONDING CVBAK TO OIC_PIPE.                 "so3k120207&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING CVBAK TO OID_EX.                   "so3k120207&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING OIC_PIPE TO VBAK.                  "so3k120207&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING OID_EX   TO VBAK.                  "so3k120207&lt;/P&gt;&lt;P&gt;  VBAK-OICHEADOFF = CVBAK-OICHEADOFF.                   "SO3K115387 AWH&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-End:   DATEN_KOPIEREN_051_10----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  IF VBAK-FAKSK = SPACE.&lt;/P&gt;&lt;P&gt;    VBAK-FAKSK = CVBAK-FAKSK.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  VBAK-WAERK = CVBAK-WAERK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF TVAK-VBTYP = CHARB OR             " Angebot&lt;/P&gt;&lt;P&gt;     TVAK-VBTYP = CHARE OR             " Lieferplan&lt;/P&gt;&lt;P&gt;     TVAK-VBTYP = CHARF OR             " Kontrakt&lt;/P&gt;&lt;P&gt;     TVAK-VBTYP = CHARG.               " Kontrakt&lt;/P&gt;&lt;P&gt;    VBAK-GUEBG = CVBAK-GUEBG.&lt;/P&gt;&lt;P&gt;    VBAK-GUEEN = CVBAK-GUEEN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  VBAK-AUTLF = CVBAK-AUTLF.&lt;/P&gt;&lt;P&gt;  IF NOT CVBAK-VDATU IS INITIAL&lt;/P&gt;&lt;P&gt;     AND VBAK-VBTYP CN VBTYP_RETOUR&lt;/P&gt;&lt;P&gt;     AND VBAK-VBTYP CN VBTYP_ANFO.&lt;/P&gt;&lt;P&gt;    VBAK-VPRGR = CVBAK-VPRGR.&lt;/P&gt;&lt;P&gt;    VBAK-VDATU = CVBAK-VDATU.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Pick-up date set for delivery orders (MAIS)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF TVAK-VBKLT EQ VBKLT_AUSL_AUFT.&lt;/P&gt;&lt;P&gt;    IF NOT CVBAK-VDATU IS INITIAL AND&lt;/P&gt;&lt;P&gt;         CVBAK-VPRGR EQ CHAR1.&lt;/P&gt;&lt;P&gt;      VBAK-ABHOD = CVBAK-ABHOD.&lt;/P&gt;&lt;P&gt;      VBAK-ABHOV = CVBAK-ABHOV.&lt;/P&gt;&lt;P&gt;      VBAK-ABHOB = CVBAK-ABHOB.&lt;/P&gt;&lt;P&gt;      VBAK-VDATU = CVBAK-VDATU.&lt;/P&gt;&lt;P&gt;      VBAK-VPRGR = CVBAK-VPRGR.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Proposed time set from Pick-up time&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF NOT CVBAK-ABHOV IS INITIAL.&lt;/P&gt;&lt;P&gt;      VBAK-VZEIT = CVBAK-ABHOV.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  VBAK-KVGR1 = CVBAK-KVGR1.&lt;/P&gt;&lt;P&gt;  VBAK-KVGR2 = CVBAK-KVGR2.&lt;/P&gt;&lt;P&gt;  VBAK-KVGR3 = CVBAK-KVGR3.&lt;/P&gt;&lt;P&gt;  VBAK-KVGR4 = CVBAK-KVGR4.&lt;/P&gt;&lt;P&gt;  VBAK-KVGR5 = CVBAK-KVGR5.&lt;/P&gt;&lt;P&gt;  VBAK-XBLNR = CVBAK-XBLNR.&lt;/P&gt;&lt;P&gt;  VBAK-ZUONR = CVBAK-ZUONR.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK1 = CVBAK-TAXK1.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK2 = CVBAK-TAXK2.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK3 = CVBAK-TAXK3.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK4 = CVBAK-TAXK4.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK5 = CVBAK-TAXK5.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK6 = CVBAK-TAXK6.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK7 = CVBAK-TAXK7.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK8 = CVBAK-TAXK8.&lt;/P&gt;&lt;P&gt;  VBAK-TAXK9 = CVBAK-TAXK9.&lt;/P&gt;&lt;P&gt;  VBAK-XEGDR = CVBAK-XEGDR.&lt;/P&gt;&lt;P&gt;  VBAK-LANDTX = CVBAK-LANDTX.&lt;/P&gt;&lt;P&gt;  VBAK-STCEG_L = CVBAK-STCEG_L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  VBAK-ABRVW = CVBAK-ABRVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if cl_ops_switch_check=&amp;gt;ops_sfws_sc_advret1( ) eq charx.&lt;/P&gt;&lt;P&gt;    if gr_msr_sales is bound.&lt;/P&gt;&lt;P&gt;      if vbak-vbtyp eq vbtyp_ganf and&lt;/P&gt;&lt;P&gt;         cvbak-vbtyp eq vbtyp_reto.&lt;/P&gt;&lt;P&gt;        vbak-msr_id = cvbak-msr_id.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT-POINT DATEN_KOPIEREN_051_01 SPOTS ES_SAPFV45C.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-Start: DATEN_KOPIEREN_051_01----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1  ECO_HBS_SAPFV45C.    "active version&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IS A&amp;amp;D/E&amp;amp;C - RE-SCM: Copy Real Estate Object Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  vbak-swenr = cvbak-swenr.&lt;/P&gt;&lt;P&gt;  vbak-smenr = cvbak-smenr.&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-End:   DATEN_KOPIEREN_051_01----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT-POINT DATEN_KOPIEREN_051_11 SPOTS ES_SAPFV45C.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-Start: DATEN_KOPIEREN_051_11----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1  OIA_SAPFV45C.    "active version&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Copy Exchange Details, if required                     "SO3K015696&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if TVAK-VBTYP = 'G' and cvbak-oiexgnum ne space.        "SP2 KH&lt;/P&gt;&lt;P&gt;    PERFORM OIA_COPY_EXCHANGE_VBAK.                      "SO3K015696&lt;/P&gt;&lt;P&gt;  endif. "more readable/less perform.improve/same check in FORM  SP2 KH&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-End:   DATEN_KOPIEREN_051_11----&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;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="20" type="ul"&gt;&lt;P&gt; End of code from source routine 51 ********************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did two things. First I did just like what you have mentioned. I copied all the code except for lines ENHANCEMENT-POINT and ENHANCEMENT-SECTION. When I do syntax check I got error that u201Coic_pipeu201D and u201Coid_exu201D is unknown. It is not declared in data statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When above method did not work,  I copied the code from source routine u2013 exactly as shown above. When I clicked u201CSaveu201D button , I got a screen u201CChange Enhancement optionu201D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I do not know - which buttons to select and what its Impact would be.&lt;/P&gt;&lt;P&gt; - In theis pop-up screen  Enhancement Point name = u201CDATEN_KOPIEREN_051_10u201D . But this name is tied to the source routine 51. Do I re-name it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically how do I go about copying the code ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 16:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731659#M1581036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-28T16:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731660#M1581037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vince,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Enhancement spot u201CES_SAPFV45Cu201D is active.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It is one of the requirements but it isn't sufficient to know what code is to be copied. Check what I said above : You must also check if the enhancements are active (OI0_COMMON_SAPFV45C, ECO_HBS_SAPFV45C, and OIA_SAPFV45C) to know if you have to copy the code inside them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;When I do syntax check I got error that u201Coic_pipeu201D and u201Coid_exu201D is unknown. It is not declared in data statement.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As OIC_PIPE and OID_EX exist in OI0_COMMON_SAPFV45C enhancement, this one is probably not active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Then I removed the code and copied the code from source routine u2013 exactly as shown above. When I clicked u201CSaveu201D button , I got a screen u201CChange Enhancement optionu201D.&lt;/P&gt;&lt;P&gt;I do not know &lt;/P&gt;&lt;P&gt;- which  buttons to select and what its Impact would be. &lt;/P&gt;&lt;P&gt;- Enhance Point name  =  u201CDATEN_KOPIEREN_051_10u201D . But this name is tied to the source routine 51. Do I re-name it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Which code did you remove? I hope neither the one of routine 051, nor the one of the existing standard enhancements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I don't understand what you did exactly, but it seems you copied the "ENHANCEMENT-OPTION ... SPOTS ..." lines. Do not copy them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do as I said in my first answer. Tell me if it's not clear (and of course what is not clear and why).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 19:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731660#M1581037</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-03-28T19:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731661#M1581038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, copying standard code is basically not a good idea as future corrections to the standard code cannot be reported automatically to the copied code. Think twice, if it's worth calling the existing routine from yours, make a modification of the standard (at least, a modification would be automatically detected during upgrade or patch, while a copy is not), or do the copy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 20:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731661#M1581038</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-03-28T20:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731662#M1581039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick response. I am sorry I have not been very clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes all these enhancements (OI0_COMMON_SAPFV45C, ECO_HBS_SAPFV45C, and OIA_SAPFV45C) are active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first thing I did was just like you had suggested. I copied only the active code without copying lines ENHANCEMENT-POINT and ENHANCEMENT-SECTION. After copying when I did syntax check, I got syntax error that u201Coic_pipeu201D and u201Coid_exu201D is unknown. It is not declared in data statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I removed all the code from the new routine 951 and made it blank. Then I copied all the code from routine 51 and pasted it to new routine 951  u2013 including lines with ENHANCEMENT-POINT and ENHANCEMENT-SECTION.  When I clicked save, it displayed a screen u201CChange Enhancement Optionu201D .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is clear now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 20:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731662#M1581039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-28T20:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731663#M1581040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;very clear, Vince &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the standard code, these 2 structures are defined globally, or I understand nothing at all ! These variables are probably in another enhancement. Find them, and make sure your routine is positioned after these variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, "active enhancement" means that the enhancement has either no switch, or the switch is on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something else, maybe there's a bug in the enhancement framework (or maybe the switch framework), so check the notes. Maybe you'll have to open a customer message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 21:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731663#M1581040</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-03-28T21:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731664#M1581041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vince,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked my ECC 6.0 system, and could find that the 3 enhancements above are linked to switches OI0_COMMON_DS, ECO_HBS, OIA_EXCHANGES, which are all swtched off by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if yours are also switched off, don't copy these enhancements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: if you think that one day, these switches could be switched on, then you'd better create new enhancements based on these switches... But calling the standard routine from your code, or do a little modification of the standard, is maybe a better solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 16:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731664#M1581041</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-03-30T16:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731665#M1581042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You indeed are right. Switches are turned off in my system too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied all the code except the lines with Enhancements and the code inside it.  Now I do not have any syntax error or any knid of box popping up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested my changes and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite impressed by your knowledge and appreciate your help very much ( this thing had really started bothering me ) . I have awarded you max points I could .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please recommend something to read on this topic ? In past I have put code inside an existing enhancmenet point but I want to learn about the Enahncement spot/point/section /switch etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 22:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731665#M1581042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-30T22:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731666#M1581043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vince,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you're welcome. I recommend you to read the blogs of Thomas Weiss. You can reach them from the SDN Enhancement home page, or from the wiki &lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/The" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/The&lt;/A&gt;&lt;EM&gt;new&lt;/EM&gt;Enhancement&lt;EM&gt;Framework&lt;/EM&gt;and&lt;EM&gt;the&lt;/EM&gt;new&lt;EM&gt;kernel-based&lt;/EM&gt;BAdI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 22:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731666#M1581043</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-03-30T22:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731667#M1581044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Sandra. I will read these articles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 18:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731667#M1581044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-01T18:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: VOFM - problem copying code with Enhancement points</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731668#M1581045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not just call the original routine in the copy? Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt; &lt;SPAN class="L1S52"&gt;FORM bedingung_pruefen_904.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;PERFORM&lt;/SPAN&gt; bedingung_pruefen_018.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;INSERT &lt;SPAN class="L1S52"&gt;CODE&lt;/SPAN&gt; HERE&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ENDFORM&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 14:34:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vofm-problem-copying-code-with-enhancement-points/m-p/7731668#M1581045</guid>
      <dc:creator>bruno_esperanca</dc:creator>
      <dc:date>2012-07-25T14:34:26Z</dc:date>
    </item>
  </channel>
</rss>

