Show TOC

Implementation Class: Annotation Provider ClassLocate this document in the navigation structure

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:
  1. Expand the Project folder in the tree view of the Service Builder.
  2. Navigate to Start of the navigation path Runtime Artifacts Next navigation step CL_ProjectName_APC_EXT  End of the navigation path
  3. Click Display->Change (Display->Change) to switch to edit mode.
  4. Right click CL_ProjectName_APC_EXT and select Go to ABAP Workbench. The implementation class opens in the Class Builder.
  5. 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.
  6. Save the changes.
  7. Click Activate to activate the classes.
The service is extended.