Earlier we learned, what is enhancement and how many kinds of enhancement can be possible. Besides those typical enhancement options, we can now an object using new enhancement techniques.
Generally, there are two types of new enhancement options which is possible after ECC 6.0 versions only
— Explicit enhancement : It can be used by 2 types as well
ENHANCEMENT-POINT: Defines a position in an ABAP program as an enhancement option, at which one or more source code plug-ins can be inserted.
ENHANCEMENT-SECTION: Defines a section of an ABAP program as an enhancement option, which can be replaced by one or more source code plug-ins.
— Implicit enhancement : Implicit enhancement options are provided by the framework without any effort on the developer's part. The enhancement definition is for free, while, of course, the implementation has to be inserted. Implicit enhancements comprise class enhancements, function group enhancements and predefined enhancement points at particular predefined posit
First of all enable the enhancement option of that program to enhance further like below:
After that you can see, some portion of the code will look editable.
Enhancement-point can be found in any standard code by looking for ENHANCEMENT-POINT. It's a point. It will tell here you can add your enhancement.
Create your enhancement and write code in ENHANCEMENT and ENDENHANCEMENT.
Similarly Enhancement section will also be found in similar way.
Directly we can write code in b/w this section.
For implicit enhancement, we can look for the enhancemet location by following the path
Now, it will enable the enhancement area at last of the code. There just right click and select the create implementation.