当前位置:网站首页>使用 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 里:
边栏推荐
- How SQL intercepts specified characters from strings (three functions of LEFT, MID, RIGHT)
- PyQt5快速开发与实战 9.5 PyQtGraph在PyQt中的应用 && 9.6 Plotly在PyQt中的应用
- R语言:文本(字符串)处理与正则表达式
- 生命不息,刷题不止,简单题学习知识点
- Inversion problem - key point
- 矩形脉冲波形的占空比及脉冲和瞬态特征的测量
- 1161. 最大层内元素和 (二叉树的层序遍历)
- Master SSR
- Yarn安装配置(vsftpd安装配置)
- In half a month, MySQL has been consolidated again, and a tens of thousands of words "super hard core" article has been sorted out!
猜你喜欢
《MySQL高级篇》五、InnoDB数据存储结构
学自动化测试哪个培训机构好 试听课程后就选了这个地方学习
《MySQL高级篇》四、索引的存储结构
Docker实践经验:Docker 上部署 mysql8 主从复制
「MySQL」- 基础增删改查
deeplab实现自己遥感地质分割数据集
Usage of JOIN in MySQL
In half a month, MySQL has been consolidated again, and a tens of thousands of words "super hard core" article has been sorted out!
Experience innovation and iteration through the development of a lucky draw applet
多线程学习笔记-2.final关键字和不变性
随机推荐
便利贴--46{基于移动端长页中分页加载逻辑封装}
Inversion problem - key point
MySQL 的几种碎片整理方案总结(解决delete大量数据后空间不释放的问题)
学习爬虫之Scrapy框架学习(1)---Scrapy框架初学习及豆瓣top250电影信息获取的实战!
《云原生的本手、妙手和俗手》——2022全国新高考I卷作文
Implement the popup component
最全phpmyadmin漏洞汇总
【软件工程之美 - 专栏笔记】33 | 测试工具:为什么不应该通过QQ/微信/邮件报Bug?
3D激光SLAM:LeGO-LOAM论文解读---点云分割部分
Redis缓存面临的缓存击穿问题
突破传统可靠性测试:混沌工程优秀实践
最新MySql安装教学,非常详细
Distributed Transactions - Introduction to Distributed Transactions, Distributed Transaction Framework Seata (AT Mode, Tcc Mode, Tcc Vs AT), Distributed Transactions - MQ
Mysql环境变量的配置(详细图解)
deeplab implements its own remote sensing geological segmentation dataset
cesium-Web网页优化进阶
学习笔记 Golang 写入文件(io.WriteString、ioutil.WriteFile、file.Write、write.WriteString)
Docker practical experience: Deploy mysql8 master-slave replication on Docker
使用内存映射加快PyTorch数据集的读取
Docker installs canal and mysql for simple testing and achieves cache consistency between redis and mysql