当前位置:网站首页>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 里:
边栏推荐
- 关于==和equals的区别和联系,面试这么回答就可以
- Threading(in thread main)
- Many mock tools, this time I chose the right one
- St. Regis Takeaway Project: New dishes and dishes paged query
- deeplab implements its own remote sensing geological segmentation dataset
- Intranet Penetration Learning (IV) Domain Lateral Movement - SMB and WMI Service Utilization
- 7 days to learn Go, Go structure + Go range to learn
- Docker build Mysql master-slave replication
- 学习笔记 Golang 写入文件(io.WriteString、ioutil.WriteFile、file.Write、write.WriteString)
- MySQL 的 limit 分页查询及性能问题
猜你喜欢
![[Virtualization ecological platform] Raspberry Pi installation virtualization platform operation process](/img/23/d4754ec38e50f320fc4ed90a1e5bbc.png)
[Virtualization ecological platform] Raspberry Pi installation virtualization platform operation process

台达PLC出现通信错误或通信超时或下载时提示机种不符的解决办法总结

【虚拟化生态平台】树莓派安装虚拟化平台操作流程

LeetCode 1161.最大层内元素和:层序遍历

Docker build Mysql master-slave replication

MySQL row-level locks (row locks, adjacent key locks, gap locks)

Cloudera Manager —— 端到端的企业数据中心管理工具

下课看着文档走回实验室,我重新拾起了遗忘的SQL运算符

众多mock工具,这一次我选对了

3D激光SLAM:LeGO-LOAM论文解读---完整篇
随机推荐
MySql模糊查询大全
[Virtualization ecological platform] Raspberry Pi installation virtualization platform operation process
三六零与公安部三所发布报告:关基设施保护成为网络安全博弈关键
502 bad gateway原因、解决方法
MySQL limit paging query and performance issues
Different lower_case_table_names settings for server (‘1‘) and data dictionary (‘0‘) 解决方案
一、excel转pdf格式jacob.jar
便利贴--46{基于移动端长页中分页加载逻辑封装}
AWS Amazon cloud account registration, free application for 12 months Amazon cloud server detailed tutorial
在 Excel 内使用 ODBC 消费 SAP ABAP CDS view
透过开发抽奖小程序,体会创新与迭代
淀粉与纤维素
使用内存映射加快PyTorch数据集的读取
Yarn安装配置(vsftpd安装配置)
SAP Commerce Cloud Product Review 的添加逻辑
7 days to learn Go, Go structure + Go range to learn
CoCube群机器人预览→资讯剧透←
unity computeshader的可读写buffer
面试、工作中常用sql大全(建议收藏备用)
在 Excel 里使用 ODBC 读取 SAP BTP 平台上 CDS view 的数据