ITPub博客

首页 > 应用开发 > IT综合 > 如何基于SAP CDS view创建OData服务

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

原创 IT综合 作者:i042416 时间:2020-03-20 08:34:03 0 删除 编辑

# 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.


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24475491/viewspace-2681529/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
测试

注册时间:2018-01-20

  • 博文量
    3822
  • 访问量
    1982515