Get bored of using Old Customer Exits, User Exits?????
Here com es The New Enhancem ent Farm work to make it Easy for you to do customization in Standard SAP Applications.
This New Enhancement frame work provides all new enhancement technologies such as new business add-ins ( BAdIs ) and source code plug-ins.
I hope you already know about classic BADI if you don‘t just check out the articles “Enhancement in SAP“
and “How to work with BADIs“ .
New BADIs are also Known as Kernel BADIs , These BADIs are object-oriented enhancement options (or plug-ins). These BAdIs are based on interfaces that may be implemented by classes that may then be transported.
Source code plug-ins
In Source code plug-ins we have many options like Explicit Enhancement and Implicit Enhancement Developers (both SAP and non-SAP) may provide special hooks or portions in their code where enhancements
may be applied. These are known as explicit enhancement options, and are mostly created by SAP at specific
points of standard programs.
In simple word explicit enhancement is provided by SAP, It is predefined location or plugs where you can put your code and enhance the standard.
Supported Enhancement Technologies
The Enhancement Framework supports a number of different enhancement technologies, including:
• Class Enhancements. Class enhancement lets you add new methods to a class. Moreover, you may also
add optional parameters to existing methods.
• Function Group Enhancements. You may add new parameters to a function module via function group
• Source Code Enhancements. These may be enhancement points in the source code where source
code plug-ins may be attached. These plug-ins contain the code that enhances the given program, and
are treated as an addition to the original code of the program in question. On the other hand, the code
with the enhancement section may be substituted with the source code plug-in code used.
This plug-ins in the source code is called as Enhancement SPOTS.
SPOTS can be categorised in :
- Enhancement POINTS
- Enhancement SECTION
In simple words When you want to add your extra logic over the existing one use POINTS while when you want to replace the existing one use SECTION. When a SPOT is static it is used for data declaration while Dynamic SPOTS are used for coding.
Enhancement POINTS and SECTION are looks like as mentioned Below:
ENHANCEMENT-POINT <name> SPOTS <spot1> [<spot2>] [STATIC] …
ENHANCEMENT-SECTION <name> SPOTS <spot1> [<spot2>] [STATIC]
In last if nothing works, like you don‘t have any Explicit enhancement or you don‘t have any BADIs, Do implicit enhancement.
This is easiest enhancement you can ever find.
Implicit enhancement options are provided internally in the beginning and end of every subroutine, Function module and methods. Where you can put your own code.
Switch Frame Work:
Each Enhancement package contains a set of business functions. Each “business function“ are optionally implemented and activated. Switch frame work is something using which you can deactivate certain Business functionality depending on the client requirement. You can also assign switch to your implemented enhancements so if required you can de activate all of them in single go.