当前位置:网站首页>使用 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 里:
边栏推荐
- 一、excel转pdf格式jacob.jar
- MySQL 行级锁(行锁、临键锁、间隙锁)
- 面试、工作中常用sql大全(建议收藏备用)
- 《JUC并发编程 - 高级篇》06 - 共享模型之不可变(不可变类的设计 | 不可变类的使用 | 享元模式)
- AWS Amazon cloud account registration, free application for 12 months Amazon cloud server detailed tutorial
- Many mock tools, this time I chose the right one
- 结构化查询语言SQL-关系数据库标准语言
- 2022/7/30
- How SQL intercepts specified characters from strings (three functions of LEFT, MID, RIGHT)
- AtCoder—E - Σ[k=0..10^100]floor(X/10^k
猜你喜欢

Docker实践经验:Docker 上部署 mysql8 主从复制

最新MySql安装教学,非常详细
![[Part 1 of Cloud Native Monitoring Series] A detailed explanation of Prometheus monitoring system](/img/af/341c3c3f7e5bcc9172059657c08c4b.png)
[Part 1 of Cloud Native Monitoring Series] A detailed explanation of Prometheus monitoring system

Docker build Mysql master-slave replication

Cloudera Manager —— 端到端的企业数据中心管理工具
![[Virtualization ecological platform] Raspberry Pi installation virtualization platform operation process](/img/23/d4754ec38e50f320fc4ed90a1e5bbc.png)
[Virtualization ecological platform] Raspberry Pi installation virtualization platform operation process

The latest MySql installation teaching, very detailed

3D激光SLAM:LeGO-LOAM论文解读---点云分割部分

Obsidian设置图床

Mysql环境变量的配置(详细图解)
随机推荐
In PLC communication error or timeout or download the prompt solution of the model
《云原生的本手、妙手和俗手》——2022全国新高考I卷作文
Threading(in thread main)
结构化查询语言SQL-关系数据库标准语言
502 bad gateway causes and solutions
St. Regis Takeaway Project: File Upload and Download
2022/7/28
《MySQL高级篇》五、InnoDB数据存储结构
Mysql环境变量的配置(详细图解)
redis-enterprise use
一、excel转pdf格式jacob.jar
Redis-基础
【虚拟化生态平台】树莓派安装虚拟化平台操作流程
Docker practical experience: Deploy mysql8 master-slave replication on Docker
MySQL 的 limit 分页查询及性能问题
基于Multisim的函数信号发生器–方波、三角波、正弦波[通俗易懂]
《MySQL高级篇》四、索引的存储结构
突破传统可靠性测试:混沌工程优秀实践
掌握SSR
[Part 1 of Cloud Native Monitoring Series] A detailed explanation of Prometheus monitoring system