当前位置:网站首页>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 里:
边栏推荐
- MySql模糊查询大全
- Usage of JOIN in MySQL
- 生信周刊第38期
- 基于Multisim的函数信号发生器–方波、三角波、正弦波[通俗易懂]
- musl Reference Manual
- MySQL百万数据优化总结 一
- The latest MySql installation teaching, very detailed
- CWE4.8 -- 2022年危害最大的25种软件安全问题
- Find a Go job in 7 days, Conditional statements to learn in Gopher, loop statements, Part 3
- redis-enterprise use
猜你喜欢

ApiPost is really fragrant and powerful, it's time to throw away Postman and Swagger

初始JDBC 编程

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

Summary of several defragmentation schemes for MySQL (to solve the problem of not releasing space after deleting a large amount of data)

“带薪划水”偷刷阿里老哥的面经宝典,三次挑战字节,终成正果

Docker practical experience: Deploy mysql8 master-slave replication on Docker

mysql 索引使用与优化

Docker installs canal and mysql for simple testing and achieves cache consistency between redis and mysql

MySql模糊查询大全

3.网页信息解析方法:Xpath与BeautifulSoup
随机推荐
Can I find a Go job in 7 days?Learn Go with arrays and pointers
Redis - Basics
MySql模糊查询大全
使用内存映射加快PyTorch数据集的读取
Use jOOQ to write vendor-agnostic SQL with JPA's native query or @Formula.
面试、工作中常用sql大全(建议收藏备用)
R语言:文本(字符串)处理与正则表达式
若枚举映射的值不存在,则不进行反序列化
CoCube群机器人预览→资讯剧透←
基于C51实现按键控制
Android studio连接MySQL并完成简单的登录注册功能
应用层基础 —— 认识URL
5 open source Rust web development frameworks, which one do you choose?
学习爬虫之Scrapy框架学习(1)---Scrapy框架初学习及豆瓣top250电影信息获取的实战!
Docker build Mysql master-slave replication
第十二章 使用中的 OpenAPI 属性
一、excel转pdf格式jacob.jar
Power BI----几个常用的分析方法和相适应的视觉对象
[Virtualization Ecological Platform] Platform Architecture Diagram & Ideas and Implementation Details
Docker installs canal and mysql for simple testing and achieves cache consistency between redis and mysql