Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How do you make changes in a SAP Enhancement-Section so that it stays during upgrade?

Former Member
0 Kudos

  I have been looking through SCN and see a lot about enhancements but it is said that SAP will not support any code changes inside of their own enhancement sections and it will be deleted during upgrade.  What is you do an Enhancement->Replace?

  I need to modify the following code before the message w049. What should I do so that the change is ok after the next upgrade?

*       Field is not used on any screen in MIGO
        WHEN 8.
ENHANCEMENT-SECTION     lmigokl3_01 SPOTS es_saplmigo.
          IF s_action-display IS INITIAL.                  "1477221
*            issue message only if not in display mode     "1477221
             MESSAGE w049 WITH l_fieldname.
          ENDIF.                                           "1477221
END-ENHANCEMENT-SECTION.

2 REPLIES 2

Former Member
0 Kudos

Hi,

maybe you can use another enhancement, possibly an implicit one instead?

BR

Robert

0 Kudos

  Of course I could use two implicit enhancements to make the change by bracketing the SAP enhancement. I had read where one contributor implied that you could do what I was actually asking about using Enhancement->Replace?

  I was asking if that is true or not.

I know the other ways to do this so they are not relevant to the question.

Thank you anyway.

James