Show TOC

Redefining APC Implementation ClassesLocate this document in the navigation structure

This section is applicable only for the projects of type Annotation Model for Referenced Service.

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 Edit to switch to edit mode.

  4. Right click and select Go to ABAP Workbench.

    The selected 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. Activate the classes.