如何通过REST API使用SAP BO Web智能导出CSV?

zfciruhq  于 2023-05-20  发布在  其他
关注(0)|答案(1)|浏览(102)

我需要使用GUI或API自动化从SAP BO webi报告导出CSV文件。有没有什么方法可以使用REST API将报告的数据导出到CSV文件中?我已经尝试了OpenDocument文档中的以下选项,但没有导出CSV文件用于WebIntelligence的选项。

url='http://'+obr_ip+':6405/biprws/logon/long'
base_url='https://'+obr_ip+':8443/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID='
export_options = '&sOutputFormat=H&sRefresh=Y&lsSEnter+number+of+days(X):=100&lsSEnter+values+for+Job+Type:=no_value'
t5zmwmid

t5zmwmid1#

这取决于您要导出的是报告查询(即原始数据)还是报告(半格式化)。对于查询,请使用以下命令:

http://<serverName>:6405/biprws/raylight/v1/documents/{documentID}/dataproviders/{dataproviderID}/flows/{flowID}

将accept设置为text/plain,以CSV格式接收结果。
对于CSV格式的报告,请用途:

http://<serverName>:6405/biprws/raylight/v1/documents/{documentID}/reports/{reportID}

将accept设置为text/csv,以CSV格式接收结果。
对于两者,请根据需要替换{documentID}、{dataproviderID}、{documentID}、{reportID]和{flowID}

相关问题