OData服務在SAP CRM,Cloud for Customer和S/4HANA上的實現比較
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 SAP help.
Further reading 1
You can find a list of all other blogs related to OData written by Jerry.
- Consume standard C4C OData service via ABAP code
- Leverage C4C Odata notification to monitor C4C Opportunity change in CRM system
- OData Service backend implementation in C4C, CRM and S4 HANA
- JMeter beginner – how to use JMeter to measure performance of OData service accessed parallelly
- Regarding cookie manipulation in CL_HTTP_CLIENT to avoid CSRF token validation failure issue
Further reading 2
Jerry’s blogs regarding the comparison how CRM and Cloud for Customer implement a given feature using different approaches:
- OData Service backend implementation in C4C, CRM and S4 HANA
- Excel export in CRM and C4C
- Saved query in C4C, CRM and S/4 HANA
- Direct navigation in CRM WebUI, CRM Fiori and C4C
- Formatted Text Edit in CRM and Cloud for Customer
- How Table column resize works in CRM and Cloud for Customer
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2715687/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP CRM,Cloud for Customer和Fiori應用的direct navigation比較CloudNavigation
- SAP CRM和Cloud for Customer裡的Formatted Text控制元件的比較CloudORM控制元件
- SAP Cloud for Customer 如何直接消費S/4HANA APICloudAPI
- SAP S/4HANA Customer Management(CRM)模組的Partner模型設計模型
- SAP Cloud for Customer和SAP Fiori系統裡的OData測試工具Cloud
- SAP ABAP OData 服務的 $count 操作實現
- 使用 SAP Cloud SDK 連線 OData 服務Cloud
- SAP S/4HANA OData Mock Service 介紹Mock
- SAP CRM和Cloud for Customer中的Event handler(事件處理器)Cloud事件
- SAP Cloud for Customer Account和individual customer的區別Cloud
- SAP Cloud for Customer Extensibility的設計與實現Cloud
- SAP Gateway Service Builder 裡的 OData 服務實現方式GatewayUI
- 自開發Web應用和SAP Customer Data Cloud Identity服務的整合WebCloudIDE
- SAP CRM和Cloud for Customer訂單中的業務夥伴的自動決定機制Cloud
- SAP C/4HANA Sales Cloud使用OData服務和第三方系統整合的一個具體例子Cloud
- SAP CRM和Cloud for Customer的擴充套件欄位後設資料Cloud套件
- 如何將Twitter訊息匯入到SAP CRM和Cloud for Customer去Cloud
- SAP HANA,S/4HANA 和 SAP BTP 的辨析
- SAP S/4HANA Cloud SDK 入門介紹Cloud
- SAP Cloud for Customer的前世今生Cloud
- SAP Analytics Cloud和Cloud for Customer之間的Single Sign on配置Cloud
- SAP Customer Data Cloud(Gigya)的使用者搜尋實現Cloud
- 如何在 SAP BTP 上使用 Integration Suite 消費 S/4HANA Cloud APIUICloudAPI
- SAP Cloud for Customer裡BusinessPartner, Customer和Employee這些BO的區別Cloud
- 使用nodejs消費SAP Cloud for Customer上的Web serviceNodeJSCloudWeb
- SAP Cloud for Customer Work Center(工作中心)的實現原始碼Cloud原始碼
- SAP S/4HANA Cloud 上 in-app 和 side-by-side 兩種擴充套件方式的介紹CloudAPPIDE套件
- 機器學習在SAP Cloud for Customer中的應用機器學習Cloud
- 如何把SAP Kyma和SAP Cloud for Customer連線起來Cloud
- 如何使用 JavaScript 程式碼連線部署在 SAP ABAP 伺服器上的 OData 服務JavaScript伺服器
- SAP R/3,SAP ECC 和 SAP S/4HANA 的聯絡和區別
- 哲訊分享:你不知道的SAP S/4HANA Cloud功能!Cloud
- SAP S/4HANA Material Fiori應用的搜尋實現原理
- SAP Cloud for Customer裡Sales Order和Sales Quote的建模方式Cloud
- SAP Commerce Cloud 新一代 UI Spartacus 和 Customer Data cloud 的整合CloudUI
- ABAP SICF服務和Java Servlet的比較JavaServlet
- Hybris service layer和SAP CRM WebClient UI架構的橫向比較WebclientUI架構
- SAP ABAP OData 服務的 $count 和 $inlinecount 兩個操作的區別inline