You can reference a Data Source in Service Builder and create a desired
model.
Introduction
Data Source Reference: Artifacts in Data Source References are imported via reference
option in the project builder. Such artifacts are not persistent in Service Builder,
instead when Service Builder is open they are fetched via reference unlike artifacts
imported via other methods in Service Builder. Hence, these are always dependent on
the status of the data source availability. Their behavior and operation is
controlled by the Data Source Reference Provider and not by SAP Gateway Service
Builder.
Note As these services are referenced, they are always Read-Only.
Brief Overview
- While referencing a data source, any modification expected is done and defined
by Data Service Provider instead of Service Builder. It includes interaction
between various entities which may be imported through different data source
reference providers.
- In case of any inconsistency between Entity Types and referenced data source,
user has to act on it. No automated correction is available.
- If you redefine these services, having one or more referenced entities,
Redefinition behavior is same as to the conventional redefinition scenario.
Reference option in Data Model sub-menu is used to load entities and
other supported artifacts from the referenced data source to your project.
Data Source Reference option enables you to reference the
data model instead of maintaining in the service builder.
Pre-Requisites
- You must know the name of Data Source you want to refer.
- Data source provider must have implemented the relevant extension points exposed
by Service Builder.
Implementation
For implementation of the above feature refer Creating OData Service Based
on SADL Models