当前位置:网站首页>使用 Excel 读取 SAP ABAP CDS View 通过 ODBC 暴露出来的数据
使用 Excel 读取 SAP ABAP CDS View 通过 ODBC 暴露出来的数据
2022-07-31 11:25:00 【华为云】
在阅读本文前,请务必先按照在 Excel 内使用 ODBC 消费 SAP ABAP CDS view 介绍的步骤,将 SAP BTP 平台 ABAP 环境下指定的 CDS view,通过 Open Database connectivity API,暴露给 ODBC 消费者使用。
然后打开 Windows10 ODBC data source 应用,创建一条新的 Datasource name 记录:
注意上图的 host 主机名,需要从 SAP BTP ABAP 环境的 Communication arrangement 的 service url 字段获取,不能包含 https://
同时,Windows10 PATH 环境变量下,必须包含下列这三个 dll 文件:
icuuc65.dll
icudt65.dll
icuin65.dll
否则使用 Excel 通过 ODBC 连接 SAP ABAP CDS view 时,会遇到错误消息:
Could not open the ICU common library.
The following files must be in the path described by the environment variable PATH:
一切就绪后,新建一个 Excel 文件,Data -> Get Data-> From other Sources:
从下拉菜单里选择刚才创建好的 Data source name:
点击 Load 按钮,就能将 CDS view 包含的数据,自动插入到 excel 里:
在 Advanced options 里,我们可以自由编写 SQL 语句,将 excel 当成一个简单的 SQL 控制台使用:
SELECT OI.Item, SUM( OI.Amount ) FROM ZORDERS.Orders O INNER JOINZORDERS.Orderitems OI ON O.Id = OI.OrderId GROUP BY ITEM
上图的 SQL 语句,将订单行项目的金额进行求和,并显示结果到 excel 里:
边栏推荐
- 【虚拟化生态平台】平台架构图&思路和实现细节
- The item 'node.exe' was not recognized as the name of a cmdlet, function, script file, or runnable program.
- 502 bad gateway原因、解决方法
- Redis学习笔记-3.慢查询和其他高级数据结构
- strings包详细文档+示例
- 内网渗透学习(四)域横向移动——SMB和WMI服务利用
- 多线程学习笔记-2.final关键字和不变性
- Candence学习篇(11) allegro中设置规则,布局,走线,铺铜
- Hospital management system database, course design, SQLserver, pure code design
- pycharm汉化教程(碧蓝幻想汉化插件安装)
猜你喜欢
随机推荐
7 天学个Go,Go 结构体 + Go range 来学学
实现弹框组件
Hospital management system database, course design, SQLserver, pure code design
MySQL limit paging query and performance issues
5 个开源的 Rust Web 开发框架,你选择哪个?
web安全入门-黑苹果MAC系统安装
Life is endless, there are more questions, simple questions to learn knowledge points
Android studio connects to MySQL and completes simple login and registration functions
The principle of v-model
2022/7/28
Redis-基础
If the value of the enum map does not exist, deserialization is not performed
《MySQL高级篇》四、索引的存储结构
学自动化测试哪个培训机构好 试听课程后就选了这个地方学习
Obsidian设置图床
Docker installs canal and mysql for simple testing and achieves cache consistency between redis and mysql
“带薪划水”偷刷阿里老哥的面经宝典,三次挑战字节,终成正果
[ 图 论 ]二分图判定及其匹配(基础+提高)
IDEA 配置方法注释自动参数
Many mock tools, this time I chose the right one