快好知 kuaihz

如何基于SAP CDS view创建OData服务

Prerequisite

you should have a working CDS view. Refer to this link about how to create CDS view.

Steps

Just add one annotation and re-activate your view:

Take my view for example, the following artifacts are automatically generated during activation.

The MPC class:

After activation you can register the created odata service via tcode /IWFND/MAINT_SERVICE.

Once done, you can test the metadata retrieval via gateway client.

Note: this is just a dummy odata service since there is no other OData related annotation except @OData.publish. Please continue to read if you need to define some model node using OData annotation.

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

本站资源来自互联网,仅供学习,如有侵权,请通知删除,敬请谅解!
搜索建议:基于  基于词条  创建  创建词条  如何  如何词条  OData  OData词条  服务  服务词条