当前位置:网站首页>4. SAP ABAP OData 服务 Data Provider Class 的 GET_ENTITYSET 方法实现指南
4. SAP ABAP OData 服务 Data Provider Class 的 GET_ENTITYSET 方法实现指南
2022-07-29 20:17:00 【汪子熙】
本教程到目前为止的三个步骤,我们还没有通过 OData 服务消费的方式,看到 SAP ABAP 服务器上存储的图书信息,被读取并返回到浏览器端,可能不少初学者都觉得没啥成就感。
没关系,本文就开始动手,实现图书管理 OData 服务的读取操作,即通过重定义 OData 数据提供类,Data Provider Class(简称 DPC)的 GET_ENTITYSET 方法,来返回图书信息。
这一步骤完成之后,我们执行 SAP ABAP OData 服务的测试工具,事物码 /IWFND/GW_CLIENT, 能够返回如下结果:

上图高亮区域就是系统里一条图书数据。
本文将详细如何将这条数据通过 DPC_EXT 的 GET_ENTITYSET 方法返回给 OData 服务的消费者。
打开事物码 SEGW, 找到我们前面步骤创建的 OData 项目,这里也能看到元数据提供类(Metadata Provider Class,简称 MPC) 的完整名称。

我们用 SE24 或者 SE80 打开 ZCL_ZBOOK_MANAGE_DPC_EXT 的 GET_ENTITYSET 方法,点击菜单 Goto -> Method Definition, 查看这个方法的接口定义,即输入参数和输出参数的定义。
边栏推荐
- Monitoring basic resources through observation cloud monitor, automatic alarm
- Kotlin - 协程作用域 CoroutineScope、协程构建器 CoroutineBuilder、协程作用域函数 CoroutineScope Functiom
- Verilog的时间格式系统任务----$printtimescale、$timeformat
- Kotlin - Coroutine Scope CoroutineScope, Coroutine Builder CoroutineBuilder, Coroutine Scope Function CoroutineScope Functiom
- 回归——分层回归
- 荧光量子点修饰siRNA-QDs|纳米金修饰siRNA-Au(RNA修饰方式方法)
- 磁性层状双金属氢氧化物和酶-DNA复合物|聚乙烯亚胺-DNA复合物(PEI/DNA)|作用机理
- 从实例学Kettle(一):获取股票行情数据
- JUC Concurrent Programming Basics AQS
- Internship: use easypoi to import and export excel table data
猜你喜欢

regular expression

优惠券系统设计思想

这半年我做交易链路自动化回归的那些事儿...

五个供应商销售谈判策略的识别以及应对它们的方法

Thesis writing strategy | how to write an academic research paper

Single-core browser and what is the difference between dual-core browser, which to use?

8.2实训任务 Sqoop的安装与配置

藻酸盐/PEI/DNA复合载体|脂质-鱼精蛋白-DNA复合物|合成方法

博世集团启动量子数字孪生计划

JMeter使用教程(一)
随机推荐
Oracle问题: ORA-01882: 未找到时区
ESP8266-Arduino programming example-LittleFS and data upload
朴素贝叶斯“朴素”在哪里?
LOG4J 学习
Data visualization ---- web page displays temperature and humidity
Detailed explanation of design ideas of webUI test framework
The second growth curve | The driving guide for corporate innovation to break through the stagnation dilemma
What are the software development modes (software engineering development mode)
GalNAc-siRNA甘露糖/半乳糖修饰脱氧核糖核酸|siRNA-S-S-DSPE(RNA修饰技术介绍)
.NET 6.0中使用Identity框架实现JWT身份认证与授权
Permutations of a small feat: cantor
常用电源符号含义分享
如何进入董事会:给CIO的十条建议
7 行代码搞崩溃 B 站,原因令人唏嘘!
Kotlin - Coroutine Scope CoroutineScope, Coroutine Builder CoroutineBuilder, Coroutine Scope Function CoroutineScope Functiom
从实例学Kettle(一):获取股票行情数据
学校安全管理专题培训实施方案
嵌入式分享合集24
internship:利用easypoi将excel表数据导入导出
There is a fee for the picture bed software. Forget it, I wrote an open source free one.