当前位置:网站首页>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 里:
边栏推荐
- PyQt5快速开发与实战 9.5 PyQtGraph在PyQt中的应用 && 9.6 Plotly在PyQt中的应用
- 无法将“node.exe”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。
- 3D激光SLAM:LeGO-LOAM论文解读---完整篇
- The principle of v-model
- mysql根据多字段分组——group by带两个或多个参数
- CoCube群机器人预览→资讯剧透←
- SQLServer2019 installation (Windows)
- 《MySQL高级篇》四、索引的存储结构
- 5 open source Rust web development frameworks, which one do you choose?
- 关于Mysql数据库的介绍
猜你喜欢
随机推荐
Different lower_case_table_names settings for server (‘1‘) and data dictionary (‘0‘) 解决方案
若枚举映射的值不存在,则不进行反序列化
分布式事务——分布式事务简介、分布式事务框架 Seata(AT模式、Tcc模式、Tcc Vs AT)、分布式事务—MQ
redis-企业级使用
Android studio连接MySQL并完成简单的登录注册功能
《云原生的本手、妙手和俗手》——2022全国新高考I卷作文
5 个开源的 Rust Web 开发框架,你选择哪个?
Is the working process of the belt you know the story - actionreducerstore
《MySQL高级篇》五、InnoDB数据存储结构
面试、工作中常用sql大全(建议收藏备用)
在 Excel 内使用 ODBC 消费 SAP ABAP CDS view
台达PLC出现通信错误或通信超时或下载时提示机种不符的解决办法总结
生命不息,刷题不止,简单题学习知识点
"JUC Concurrent Programming - Advanced" 06 - Immutability of Shared Models (Design of Immutable Classes | Use of Immutable Classes | Flyweight Pattern)
musl Reference Manual
一文带你了解redux的工作流程——actionreducerstore
keras自带数据集(横线生成器)
Unix知识:shell详细解读
准确率(Accuracy)、精度(Precision)、召回率(Recall)和 mAP 的图解
实现弹框组件