Following steps explains how to add custom methods to standard class.
1. Go to transaction SE24, Enter class name and click on Display.
2. On next screen click on Enhance button in toolbar options.
3. POPUP will be displayed to create enhancement implementation.
Enter Enhancement implementation name and Short Text.
Click on Enter.
Enter Package name and click on SAVE.
Select transport request number and Enter.
Message will be displayed “Enhancement implementation ZSA_ENH_MAT created”.
4. Now blank lines will be displayed to enter new methods in class interface.
Enter new method details like method name, Level, Visibility and description..
5. Click on Parameters and enter method parameters.
6. Go back to methods and double click on method name.
Enter code and activate method.