当前位置:网站首页>使用 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 里:
边栏推荐
- Experience innovation and iteration through the development of lucky draw mini-programs
- apisix-Getting Started
- 矩形脉冲波形的占空比及脉冲和瞬态特征的测量
- 内网渗透学习(四)域横向移动——SMB和WMI服务利用
- Read through the interface to call the artifact RestTemplate
- PyQt5快速开发与实战 9.5 PyQtGraph在PyQt中的应用 && 9.6 Plotly在PyQt中的应用
- mysql 自动添加创建时间、更新时间
- apisix-入门使用篇
- 若枚举映射的值不存在,则不进行反序列化
- Life is endless, there are more questions, simple questions to learn knowledge points
猜你喜欢

基于C51实现按键控制

In PLC communication error or timeout or download the prompt solution of the model

无法将“node.exe”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。

突破传统可靠性测试:混沌工程优秀实践

一、excel转pdf格式jacob.jar
![[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 most complete phpmyadmin vulnerability summary

Single sign-on principle and implementation

CoCube群机器人预览→资讯剧透←
随机推荐
Unix知识:shell详细解读
3D激光SLAM:LeGO-LOAM论文解读---完整篇
Redis-基础
R语言:文本(字符串)处理与正则表达式
学习笔记 Golang 写入文件(io.WriteString、ioutil.WriteFile、file.Write、write.WriteString)
Docker安装canal、mysql进行简单测试与实现redis和mysql缓存一致性
Redis - Basics
Single sign-on principle and implementation
web安全入门-黑苹果MAC系统安装
3D激光SLAM:LeGO-LOAM论文解读---点云分割部分
MySql模糊查询大全
线程池 ThreadPoolExecutor 详解
2022/7/30
lotus-local-net 2k v1.17.0-rc4
The item 'node.exe' was not recognized as the name of a cmdlet, function, script file, or runnable program.
St. Regis Takeaway Project: New dishes and dishes paged query
The latest MySql installation teaching, very detailed
Inversion problem - key point
Cloudera Manager —— 端到端的企业数据中心管理工具
【Web技术】1397- 深入浅出富文本编辑器