简体   繁体   English

通过 API 获取 SAP-BW 报告

[英]Fetching SAP-BW reports via an API

I'd like to fetch some SAP-BW reports programatically, but unfortunately my SAP collegues have no idea about how to do it.我想以编程方式获取一些 SAP-BW 报告,但不幸的是我的 SAP 同事不知道如何去做。 I'm no SAP expert either, but as a software-engineer I'm pretty confident that there is some API I could use with python or C# to fetch report data like this one when the user clicks on Eport nach Excel :我也不是 SAP 专家,但作为一名软件工程师,我非常有信心,当用户单击Eport nach Excel时,我可以使用 API 和 python 或 C# 来获取像这样的报告数据:

例子

I'm not asking for any code, I'm sure I'd find something on GitHub, however I need to know what I should even look for.我不要求任何代码,我确定我会在 GitHub 上找到一些东西,但是我需要知道我什至应该寻找什么。 In other words could you point me to the right direction by showing me what documentation I need to read or maybe what technical terms are relevant for this task?换句话说,您能否通过向我展示我需要阅读哪些文档或者可能与此任务相关的技术术语来为我指明正确的方向?

I see this question is quite old but I am going to answer it anyway.我看到这个问题很老了,但我还是要回答。

You need to turn the underlying query into an OData Gateway endpoint and then you can call the resulting gateway service from any application that supports HTTP calls.您需要将底层查询转换为 OData 网关端点,然后您可以从任何支持 HTTP 调用的应用程序调用生成的网关服务。

I no longer have access to an SAP BW environment to show you step by step but many blogs have been written about it and although providing links is not really how we should be supplying answers, this is the best I can do for now.我无法再访问 SAP BW 环境来逐步向您展示,但已经写了很多关于它的博客,虽然提供链接并不是我们提供答案的真正方式,但这是我现在能做的最好的。

https://blogs.sap.com/2019/02/19/how-to-do-odata-services-from-bex-query/ https://blogs.sap.com/2019/02/19/how-to-do-odata-services-from-bex-query/

https://wiki.scn.sap.com/wiki/display/BI/Steps+to+Create+an+ODATA+service+for+a+BW+Query https://wiki.scn.sap.com/wiki/display/BI/Steps+to+Create+an+ODATA+service+for+a+BW+Query

https://abap-blog.ru/wp-content/uploads/2020/04/How-to-Create-OData-Services-for-Analytic-Queries.pdf https://abap-blog.ru/wp-content/uploads/2020/04/How-to-Create-OData-Services-for-Analytic-Queries.pdf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM