OData Service Development with SAP ABAP CDS Views
There are three options to leverage CDS Views in a OData service development in SAP Gateway. The options are as follows:
First option:
As of SAP NetWeaver 7.40, you can map a CDS view and its associations to the entity sets and navigation properties of an OData service.
Second option:
You can redefine the methods of the MPC_EXT and DPC_EXT class to implement enhancement on the OData model or service implementation level. CDS views can be used as Referential Data sources in SEGW.
Third option:
You can set an appropriate annotation OData.publish:true the generated service does not offer any enhancements on the SAP Gateway Level.
With SAP Netweaver 7.40 or later, it is possible to use SAP Gateway for building OData services that read access to CDS Objects.
Use CDS views as mapped data sources, it is no longer necessary to use coding for read access.
Request that perform changes require additional manual implementation.
Gateway Service via CDS View Annotation Publishing
Development Flow: