The Service Builder generates an Implementation class along with the base class for every model. It is proposed to extend this class manually to suit your needs.
After generating the Annotation Provider Class, the generated classes are stored in the Runtime Artifacts folder.
Follow the instructions provided in this section to extend the extension class.
To redefine the methods in an implementation class, proceed as follows:
Expand the Project folder in the tree view of the Service Builder.
Click Display/Changeto switch to edit mode.
Right click and select Go to ABAP Workbench.
The selected implementation class opens in the Class Builder.
Click the DEFINE_VOCAB_ANNOTATIONS and click Redefine to redefine it: Here is a sample:
method DEFINE_VOCAB_ANNOTATIONS. **TRY. *CALL METHOD SUPER->DEFINE_VOCAB_ANNOTATIONS * . ** CATCH /iwbep/cx_mgw_med_exception . **ENDTRY. endmethod.
Save the changes.
Activate the classes.