当前位置:网站首页>Use Excel to read data exposed by SAP ABAP CDS View through ODBC
Use Excel to read data exposed by SAP ABAP CDS View through ODBC
2022-07-31 11:36:00 【HUAWEI CLOUD】
在阅读本文前,请务必先按照在 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 里:
边栏推荐
- cesium-Web网页优化进阶
- 三层架构service、dao、controller层
- MySql模糊查询大全
- 【虚拟化生态平台】平台架构图&思路和实现细节
- Master SSR
- MySQL 行级锁(行锁、临键锁、间隙锁)
- Summary of several defragmentation schemes for MySQL (to solve the problem of not releasing space after deleting a large amount of data)
- [Virtualization Ecological Platform] Platform Architecture Diagram & Ideas and Implementation Details
- 7 days to learn Go, Go structure + Go range to learn
- Unix知识:shell详细解读
猜你喜欢
随机推荐
生信周刊第38期
Docker installs canal and mysql for simple testing and achieves cache consistency between redis and mysql
3.网页信息解析方法:Xpath与BeautifulSoup
ApiPost is really fragrant and powerful, it's time to throw away Postman and Swagger
MySQL百万数据优化总结 一
内网渗透学习(四)域横向移动——SMB和WMI服务利用
Three-tier architecture service, dao, controller layer
无法将“node.exe”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。
The item 'node.exe' was not recognized as the name of a cmdlet, function, script file, or runnable program.
3D激光SLAM:LeGO-LOAM论文解读---点云分割部分
使用内存映射加快PyTorch数据集的读取
[Virtualization Ecological Platform] Platform Architecture Diagram & Ideas and Implementation Details
Docker practical experience: Deploy mysql8 master-slave replication on Docker
【Web技术】1397- 深入浅出富文本编辑器
Curl 命令使用
502 bad gateway原因、解决方法
众多mock工具,这一次我选对了
数据湖(十九):SQL API 读取Kafka数据实时写入Iceberg表
Cloudera Manager —— 端到端的企业数据中心管理工具
关于==和equals的区别和联系,面试这么回答就可以