当前位置:网站首页>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 里:
边栏推荐
- redis-enterprise use
- 2022/7/28
- CWE4.8 -- 2022年危害最大的25种软件安全问题
- 基于C51实现按键控制
- MySql模糊查询大全
- 《MySQL高级篇》五、InnoDB数据存储结构
- If the value of the enum map does not exist, deserialization is not performed
- AWS亚马逊云账号注册,免费申请12个月亚马逊云服务器详细教程
- 三层架构service、dao、controller层
- Android studio connects to MySQL and completes simple login and registration functions
猜你喜欢

MySql模糊查询大全

才22岁!这位'00后'博士拟任职985高校!

最新MySql安装教学,非常详细

unity computeshader的可读写buffer

redis-enterprise use

Redis-基础

【软件工程之美 - 专栏笔记】33 | 测试工具:为什么不应该通过QQ/微信/邮件报Bug?

AWS Amazon cloud account registration, free application for 12 months Amazon cloud server detailed tutorial

file contains vulnerabilities

"JUC Concurrent Programming - Advanced" 06 - Immutability of Shared Models (Design of Immutable Classes | Use of Immutable Classes | Flyweight Pattern)
随机推荐
musl Reference Manual
redis-enterprise use
The latest MySql installation teaching, very detailed
内网渗透学习(四)域横向移动——SMB和WMI服务利用
分布式事务Seata详细使用教程
Implement the popup component
CWE4.8 -- 2022年危害最大的25种软件安全问题
SQLServer2019 installation (Windows)
Data Persistence Technology - MP
MySQL百万数据优化总结 一
Three-tier architecture service, dao, controller layer
【Web技术】1397- 深入浅出富文本编辑器
【虚拟化生态平台】树莓派安装虚拟化平台操作流程
Docker installs canal and mysql for simple testing and achieves cache consistency between redis and mysql
Redis - Basics
Usage of JOIN in MySQL
mysql根据多字段分组——group by带两个或多个参数
SAP Commerce Cloud Product Review 的添加逻辑
Detailed tutorial on distributed transaction Seata
502 bad gateway causes and solutions