当前位置:网站首页>使用 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 里:
边栏推荐
- AtCoder—E - Σ[k=0..10^100]floor(X/10^k
- Hospital management system database, course design, SQLserver, pure code design
- IBM SPSS Statistics 28软件安装包下载及安装教程
- 【虚拟化生态平台】平台架构图&思路和实现细节
- 才22岁!这位'00后'博士拟任职985高校!
- 最新MySql安装教学,非常详细
- 3D激光SLAM:LeGO-LOAM论文解读---完整篇
- [Virtualization ecological platform] Raspberry Pi installation virtualization platform operation process
- 淀粉与纤维素
- 最全phpmyadmin漏洞汇总
猜你喜欢
随机推荐
线程池 ThreadPoolExecutor 详解
学习笔记 Golang 写入文件(io.WriteString、ioutil.WriteFile、file.Write、write.WriteString)
AWS Amazon cloud account registration, free application for 12 months Amazon cloud server detailed tutorial
LeetCode 1161.最大层内元素和:层序遍历
CoCube群机器人预览→资讯剧透←
mysql 索引使用与优化
Experience innovation and iteration through the development of a lucky draw applet
Docker build Mysql master-slave replication
web安全入门-黑苹果MAC系统安装
科学论文和学术论文写作
Use jOOQ to write vendor-agnostic SQL with JPA's native query or @Formula.
瑞吉外卖项目:文件的上传与下载
Yarn安装配置(vsftpd安装配置)
MySql模糊查询大全
Mysql环境变量的配置(详细图解)
strings包详细文档+示例
Find a Go job in 7 days, Conditional statements to learn in Gopher, loop statements, Part 3
Summary of several defragmentation schemes for MySQL (to solve the problem of not releasing space after deleting a large amount of data)
IDEA configure method annotation automatic parameters
Three-tier architecture service, dao, controller layer




![[ 图 论 ]二分图判定及其匹配(基础+提高)](/img/79/56f750e71f558debe3d99404e296e3.png)



