The enhancement set concept can be used to redefine and enhance existing UI components. Enhancing a component enables you to overrule the standard SAP coding and replacing it with your own .
Easy 8 Steps Procedure :
Open BSP_WD_CMPWB Txn, Click on the new button to create Enhancement Set.
Open SM34 Txn and enter View Cluster ‘BSPWDVC_CMP_EXT’
To create new Enhancement Set enter the name of Enhancement Set and Description.
Open SM30 Txn and enter the view BSPWDV_EHSET_ASG
Enter the Enhancement Set
Open the UI Component to be Enhanced in Component Workbench and click on the “Enhance Component”.
Enter the name of Enhancement Set.
Enter the Application Name. It should start by Z.
Provide the Repository Information.
Create new BSP App by clicking on Yes in next Pop-Up.
UI Component is now Enhanced. To Enhance a View right click on the view and select Enhance.
If the Z class for IMPL is created it means View is Enhanced.
Now a custom logic can be put here.