Concept – The new enhancement framework allows modification of a standard class to achieve the expected business functionality which goes beyond the older framework. It is a marriage of the modifications strategy and the classic enhancement strategy extended to new BAdIs, class enhancements, function group enhancements etc. This allows greater flexibility to modify the solution to business needs while leveraging all the advantages of the standard solution.
The new enhancement framework takes advantages of three types of customizations –
1. Pre-exit Method – These enhanced methods are called in runtime before the original method and is generally used to add validations or pass value to the original method.
2. Post-exit Method – These enhanced methods are called in runtime after the original method and is generally used to modify the data coming the original method.
3. Overwrite-exit Method – These enhanced methods are called in runtime instead of the original method. In these methods the new business logic is written. These methods cannot be used with Pre-exit or Post-exit methods.