下面是我今天研究的后台OData数据的model以及如何在IE里面consume:
SPRO里面:
这个model provider class定义了LWM_CUSTOMER_BRIEFING这个model的所有structure,以及structure之间的相互关系。
现在没有一个图形化界面的tool来做modelling,我们只能在CL_LWM_CB_ADAPTER_MDP的DEFINE里面定义model的structure。具体做法是预先定义好后台要使用的entity的data type,
Customer briefing 所有使用到的DDIC object全部放在这个package里面:LWM_CRM_CUSTOMER_BRIEFING
在DEFINE里面,通过ABAP 代码创建一个个entity,给它们绑上DDIC object,同时建立相互关系,如association.
通过http://ldcigm2.herr.corp:50018/sap/opu/sdata/sap/customer_briefing?sap-client=001 我们可以拿到customer briefing的service document。
Service document里面只定义了哪些entity暴露了哪些操作,真正metadata的full definition xml用这个URL down:
service document也能通过SICF进去之后,从sap node出发,点test拿到。
比如这部分就说明CustomerCollection这个节点能够执行“search”的action:
然后我们在IE里面测试:
返回所有的Customer信息,Customer node的property就是在figure1里面看到的那些。
Search 所有name property中包含“UT_Customer” 的Customer
返回Partner ID = 133的customer的detail 信息
所有这些操作都在service provider class CL_LWM_CB_ADAPTER_RDP里面实现,
如果我们直接在IE里面通过http://ldcigm2.jerry.corp:50018/sap/opu/sdata/sap/CUSTOMER_BRIEFING/CustomerCollection(133)?sap-client=001&$format=xml
的URL consume OData service:
Gateway 系统上首先会根据OData service expose出来的external name找到internal使用的service ID:
然后根据service ID找到对应的CRM 系统的destination:
通过RFC直接call CRM系统上的一个remote function module:
在CRM的这个FM上设个断点,发现断点已经被触发了。
相关推荐
JAVA调用SAP ODATA服务.docx
解决方法:要先用GET方法从去调用ODATA中GET_ENTIY方法,例如:http://vhcals4h.com:44301/sap/opu/odata/sap/ztest_srv/HEADERSet('5000000001'),然后再将返回内容作为表身,传到ENTITYSET地址,如:...
SAP UI5作为前端开发框架,使用SAP Gataway开发后端OData Service
SAP Gateway and OData, SAP低代码开发必备
SAP ODATA ABAP开发教程
SAP OData Training Agenda • Session 1: Introduction to REST (20 mins) • Session 2: Introduction to OData Service (40 mins) • Hands on 1: Build your 1 st OData Service (60 mins) ▫ Transaction: SEGW...
Gateway最Unit 1: SAP Gateway Overview 3 Lesson: Explaining SAP Gateway 11 Lesson: Describing SAP Gateway ...69 Unit 3: SAP Gateway Service Implementation 71 Lesson: Implementing an SAP 新教程 SAP
SAP Fiori OData Services. OData is used to define best practices that are required to build and consume RESTful APIs. It helps you to find out changes, defining functions for reusable procedures and ...
SapAPI 该程序正在读取SAP API。 此API从防火墙后面的SAP ECC系统公开ODATA。 需要一个天蓝色的AD帐户,一个SAP-id,包括访问SAP系统中技术角色的权限。 SAP API已在Azure API管理中注册。
SAP-odata文档
一个采用OData的Windows Form窗体程序的客户端,使用Outlook API通过OData服务进行发送邮件的小系统
SAP ODATA Training Agenda • Session 1: Introduction to SAPUI5 / FIORI (40 mins) ▫ Basic MVC concept: Model, View, Controller ▫ UI5 Control libraries • Session 2: Introduction to SAP Web IDE (20 ...
sap press doc 解压密码:abap_developer
简单实现OData的一个demo,测试odata的api。$expand、 $filter、$inlinecount、$orderby 、$select、$skip、$top
使用OpenUI5和OData创建Web应用程序如何将OpenUI 5和Odata Service集成为Web应用程序。 如何在OpenUI5中集成OdataService5.1。5.2。5.3。5.3.a获取5.3.b5.3.c5.4。5.4.a参考产品信息5.4.b参考类别信息和制造商信息...
SAP 后台ODATA开发步骤,供初学者参考!
SAP OData Framework 3.0 英文资料
Tutorial to Develop a SAPUI5 Application with oData Access.sap ui5使用odata进行数据的交互
SAP-Fiori---快速指南
OData:开放数据协议(Open Data Protocol,简称OData)是一种描述如何创建和访问Restful服务的OASIS标准。该标准由微软发起,前三个版本1.0、2.0、3.0都是微软开放标准,遵循微软开放规范承诺书(Microsoft Open ...