Explicit Enhancement Using Enhancement Section in MM01

 

  • In the previous part, we saw how we can use Explicit Enhancement using Enhancement Point.
  • We have taken a real life scenario where we saw, how to make changes in SAP functionality for MM01 transaction code.
  • Now, In this part we will take a requirement and we will see how we can perform explicit enhancement using Enhancement section.

Difference between Enhancement Point and Enhancement Section :-

  • In case of enhancement section, we will see some default implementations as well.
  • In case of Enhancement point, we can only add additional codes, and we cannot replace the existing code.
  • But In case of Enhancement section we can change or replace the existing SAP code.

let’s take a requirement to Understand Enhancement Section

Requirement :-

  • Suppose, I go to MM01 transaction code.

  • And I pass the Industry Sector and Material Type and I am not passing the material number.



  • Now, As Soon as I Press enter, I want to know which material number will be created.


Solution :-

  • Step 1 :- Go to MM01 transaction code.

  • Step 2 :- Go to System → Status → Double click on screen number.

  • Step 3 :- Go to PAI and double click on module INTERNAL_MATERIAL_NUMBER_GET.

  • Step 4 :- In Enhancement Section we have this given function module.



  • Step 5 :- This function module is basically generating the material number, So we need to write the logic for it.

  • Step 6 :- Click on the enhancement section → click on enhance button.

  • Step 7 :- Right click on enhancement section → enhancement operations → create implementation.

  • Step 8 :- Click on create button.

  • Step 9 :- Pass a name and click on OKAY button.



  • Step 10 :- Now, we can see all our default implementation in the enhancement section has been copied and pasted in our enhancement, and whatever logic we will write here will be implemented.

  • Step 11 :- Go to SE91 transaction code and write a message as shown below.



  • Step 12 :- go back the enhancement and write the message as shown below.\



    • Activate the code.

Checking the Enhancement :-

  • Step 1 :- Go to MM01 transaction code and pass the below details.



  • Step 2 :- Press enter.




Important Question :-

  1. What is the SPOTS in the Explicit Enhancements ?



    • SPOTS are the container for our explicit Enhancements which consist Enhancement Point and Enhancement Section.

Comments

Popular posts from this blog

Understanding Different Types of SAP Function Modules: Normal, RFC, and Update

Unlocking SAP ABAP Secrets: Interactive Classical Reports with GET CURSOR, At User Command, and a Comparison of HIDE Statements

Mastering ABAP: A Step-by-Step Guide to Function Modules and Groups for Modularized Programming