The Service Builder uses patterns to separate between the
generated logic and your own code. It generates two types of classes:
When the classes are created, they are listed in the Runtime Artifacts folder of the
project, as follows:
APC Classes are generated only for the projects of type Annotation Model for
Referenced Service, whereas MPC and DPC classes are generated only for the projects of type
Service with SAP Annotations and Service with Vocabulary-Based Annotations. The extension
classes of the MPC, DPC and APC are called at runtime, respectively.
Registering the Service
You must specify the following details to enable the Service Builder to automatically
register both the model and the service, and to assign the model to the specific
service:
- Technical Model Name: Specifies the name of the data
model. The name must be unique. The data model is described in the Model
Provider Class, which provides the metadata for the service.
- Technical Service Name Specifies the name of the service. The name must be
unique. The Technical Service Name that you specify determines the name of the
service that has to be exposed by SAP Gateway.
The Schema Namespace set by you (explicitly) or by the system (at the time of
generation) can be viewed in
Details dialogue box of Data Model
folder. For more information, see
Schema Namespace.
You
can modify the registration information using the activities of the OData Channel
implementation guide (IMG) in the back-end system. To modify the registration
information:
- Use transaction SPRO, and open
the SAP Reference IMG
- Click .
Display service window appears and you can modify the information.
After
creating and registering the model and the service, the Service Builder assigns them to
the same transport request used for generating the classes. If the Service Builder fails
to create the model and the service, an error message displays.