This document provides instructions to extend Implementation class generated for
Annotation Provider Class once you generate the
project.
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.
- Navigate to
- Click (Display->Change) to switch to edit mode.
- Right click CL_ProjectName_APC_EXT and select
Go to ABAP Workbench. The 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.
- Click to activate the classes.
The service is extended.