OData服务在SAP CRM,Cloud for Customer和S/4HANA上的实现比较
发布日期:2021-06-30 14:29:09 浏览次数:2 分类:技术文章

本文共 2401 字,大约阅读时间需要 8 分钟。

I have once worked on OData Service in different SAP product such as C4C, CRM and S/4 HANA and observed some technical differences among them. Now I share the difference in this blog.

OData Service in CRM

In CRM we develop OData service in tcode SEGW – SAP Gateway Service Builder.

Attributes for each node are modeled, together with the hierarchy relationships among nodes. Once Generation button is pressed, runtime Artifacts like data provider class DPC and runtime data provider class MPC are automatically generated based on the modelling done in this tcode. The classes without post-fix will be overwritten during generation while the latter which inherit from them will not, this means it is correct to write the application logic within the _EXT classes.

In tcode /IWFND/MAINT_SERVICE, it is allowed to route a given OData service to multiple Business Suite backend systems. In the runtime different RFC destination will be used to delegate the OData request to actual backend system according to the different PFCG role assignment of the logon user. See one example below.

OData Service in S/4 HANA

In S/4 HANA, it is still allowed to develop OData service via tcode SEGW. Meanwhile thanks to the power of CDS view, it is support to automatically generate a OData service without any ABAP coding. Suppose you need to develop a Fiori application which only needs to provide the read-only access on for example Service Order in the system. For this requirement not a single line of ABAP code is needed. Instead all the necessary development task is to create CDS view, and that’s all. Once all views are done, activate the view containing annotation @OData.publish: true, and the OData service will automatically be generated.

The left task is to create a UI5 project via WebIDE with smart template to consume this generated OData service. More details could be found from these blogs of mine:

Create a CRM Service Order Fiori application within a couple of minutes
My CDS view self study tutorial – Part 4 how does annotation @OData.publish work

OData Service in C4C

You can find a list of all standard OData service in C4C from .

Further reading 1

You can find a list of all other blogs related to OData written by Jerry.

Further reading 2

Jerry’s blogs regarding the comparison how CRM and Cloud for Customer implement a given feature using different approaches:

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

转载地址:https://jerry.blog.csdn.net/article/details/108286361 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:SAP UI5和Vue的数据双向绑定实现原理比较
下一篇:如何使用jMeter测试SAP OData服务并发访问时的性能

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年04月21日 08时27分56秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章