Skip to Content
Author's profile photo jyotheswar p

Enhancement adjustment using transaction SPAU_ENH

Hello All,

In this blog I will try to explain some simple steps on how to adjust enhancements using SPAU_ENH transaction. This is normally a post upgrade activity we do after the upgrade of the system.

  • Use transaction SPAU_ENH to view the objects that has to be adjusted.
  • You will see a screen similar to below snapshot. You have 2 sections in this. Composite Enhancement Impl and Non Composite Enhancement Impl. You may have to expand both these list to see the list of enhancements that needs to be adjusted.


Here we further drill down through these Nodes and eventually you will see all the list of enhancements that has to be adjusted.

  • Once the list is expanded, you should be able to see all Custom Enhancement implementations marked with four different color codes. We mostly are interested in RED and YELLOW, because these are the once which will cause issues in future if not adjusted. Preferably it would be good if we can adjust all the implementations.
  • For all these enhancements irrespective of the color, You might have to do impact analysis on custom enhancement implementation due to code changes/adjustments done by SAP . You have to specifically looks for Standard SAP variables used in our custom enhancement and up to what extent they could affect your custom enhancement due to new changes in standard SAP code.

Check the below explanations and actions that has to be taken when you encounter these in SPAU_ENH

1. Red

SAP might or might not successfully adjust the code,It varies case by case. We might have to manually go through the source code and fix the issue. Usually this happens if there is a syntax error while SAP tried to adjust and activate the code during upgrade. Mostly the issue will be with custom enhancement implemented.Once you fix the syntax issue and validate the code, you can confirm the adjustment.

Below is an example how SAP explains the error:-

Red Example.png

2. Yellow


SAP did successfully adjust the code but it needs us to take care of additional steps manually to complete this process. This usually happens in case SAP added / removed a new method to a BADI or Enhancement. Here we have to follow the instructions SAP suggests. Once the steps are complete, validate the code and confirm the adjustment

Below is an example how SAP explains the conflict:-

yellow example.png

SAP also provides you the possible solutions in this case depending on the type of conflict. Use these options to adjust the enhancement. In this example you have 2 options either implement the new method or Delete the implementation if not needed.

yellow example 1.png

3. Green


SAP had adjusted the standard code successfully. It expects you to validate your Enhancement and confirm the adjustment.

You see green light when SAP adjusts/changes the code Before an Enhancement Implementation Element.

4. Grey


SAP may or may not have changed any code in this module. It appears in the list because we have a Custom enhancement in standard code. In case if SAP had adjusted/Changed code in this module, Then it should be After an Enhancement Implementation Element.

However in either case we have to review the enhancement, compare the code and confirm the adjustment.

Note: The above definitions and examples provided are based on most probable & general issues found in my experience and these might change depending on the individual system or scenario.

  • For adjusting the enhancements. You may follow the below steps.

a) Go to transaction SPAU_ENH and select the enhancement you want to adjust and press the change push button as below.


b) Once you enter change mode click the conflict push button shown below to view the conflict.


c) You can use the below push buttons to compare the code after and before upgrade and do a Syntax check after fixing the code if needed.


You will see split screen editor to validate the differences in the source code.

code comp.png

d) Once we are satisfied with code modifications confirm the adjustments by clicking the below shown button to complete the adjustment.


  • Be cautious while adjusting and saving them in a single transport, Make sure not to send any unwanted, test and partially developed enhancements to upper environments. These SPAU transports are sent as post upgrade activity with minimal or no testing to upper environments, unwanted code may cause inconsistent system behavior .

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Useful blog. could you also have the color legend to follow in your blog. that will help. also there are some process when right clicked on the object in SPAU_ENH.. what are those?

      for others this is one more blog i found is useful:  http://www.****************/Tutorials/Others/Upgrade/SPAU_ENH.htm

      Author's profile photo jyotheswar p
      jyotheswar p
      Blog Post Author

      Thank you very much for the feedback 🙂 .

      I will try keep enhancing this blog with your inputs as well. I am not sure if i understand your intent of Color legend. Please elaborate if possible.



      Author's profile photo Jerrie Lee Wilmore
      Jerrie Lee Wilmore

      prema, the additional blog link is incomplete when i look. any way to change that?


      Author's profile photo Former Member
      Former Member

      Tomorrow I'm starting a SPAU and SPAU_ENH revision for a customer and I was looking for info like this.

      So usefull!

      Author's profile photo Arjun Kadian
      Arjun Kadian

      Thanks for this information. Can you please let us know what has to be done for error enhancements in SPAU_ENH for adjustment type as Enhancement option was deleted.

      Author's profile photo jyotheswar p
      jyotheswar p
      Blog Post Author

      Oops. I missed checking my account for a while.

      Can you elaborate a little more on the issue. Are you saying that there is custom Enhancement created within a standard Enhancement-option which was deleted by SAP?

      Author's profile photo Kenneth Moore
      Kenneth Moore

      Nice!  Thanks!

      Author's profile photo Patrick Dean
      Patrick Dean

      Thanks for the tutorial, very detailed and usual high standard!

      Doing SPAU_ENH on a CRM system at the moment, got a "The enhancement spot no longer exists" warning against a /CRMRE/MAP_BAPIMTCS_TO_AO_EXIT implementation...

      Is there anywhere that SAP document what BADI's / Enhancements they're removing in the upgrade and suggest alternatives to accommodate the same requirements?

      Author's profile photo John Jairo Pachon
      John Jairo Pachon

      Really useful information! Thanks a lot