Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sap 如何使用restapi获取BI中报表的所有数据?_Sap_Business Intelligence_Business Objects - Fatal编程技术网

Sap 如何使用restapi获取BI中报表的所有数据?

Sap 如何使用restapi获取BI中报表的所有数据?,sap,business-intelligence,business-objects,Sap,Business Intelligence,Business Objects,我在sap BI launch pad中使用查询创建了一个报告,现在如果我想获得创建的报告中的所有数据 使用来自高级rest客户端的GET方法 基本url:http://:6405/biprws/ 要使用GET方法请求url,获取报表的所有数据需要提供哪些参数?您可以检索报表的数据或数据提供程序的数据(即:查询) 从数据提供程序检索数据(对于非平凡文档,您需要3次调用): 获取数据提供者列表 [GET]http://:6405/biprws/documents//dataproviders 获

我在sap BI launch pad中使用查询创建了一个报告,现在如果我想获得创建的报告中的所有数据

使用来自高级rest客户端的GET方法

基本url:http://:6405/biprws/


要使用GET方法请求url,获取报表的所有数据需要提供哪些参数?

您可以检索报表的数据或数据提供程序的数据(即:查询)

从数据提供程序检索数据(对于非平凡文档,您需要3次调用):

获取数据提供者列表

[GET]http://:6405/biprws/documents//dataproviders
获取数据提供程序的流计数(如果对象不兼容,则可能大于1;如果查询中存在上下文)

[GET]http://:6405/documents//dataproviders/DP0/flows/count
获取流的数据:

[GET]http://:6405/documents//dataproviders/DP0/flows/0

从报表中检索数据

获取文档中的报告列表

[GET]http://:6405/documents//reports
将报告内容导出为CSV

[GET]http://:6405/documents//reports/
发送最后一个请求时,标题为
Accept
等于
text/csv



.

我不想导出,但得到的结果是Json格式@Arnaud develay,因此我认为您需要使用DataProviders API,但Json不可用。您只有csv或xml格式。是否可以使用任何restapi获取JSON格式的报表数据@Arnaud-develay您可以尝试语义层REST API,它允许以JSON检索查询结果。但它不是基于Web Intelligence文档的,您每次都必须构建并执行一个查询。可以在这里找到文档:语义层的基本url http://:6405/biprws/sl/v1。什么是s1,v1@阿诺·德夫雷
[GET] http://<hostname>:6405/biprws/documents/<documentID>/dataproviders
[GET] http://<hostname>:6405/documents/<documentID>/dataproviders/DP0/flows/count
[GET] http://<hostname>:6405/documents/<documentID>/dataproviders/DP0/flows/0
[GET] http://<hostname>:6405/documents/<documentID>/reports
[GET] http://<hostname>:6405/documents/<documentID>/reports/<reportID>