我需要使用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'
1条答案
按热度按时间t5zmwmid1#
这取决于您要导出的是报告查询(即原始数据)还是报告(半格式化)。对于查询,请使用以下命令:
将accept设置为text/plain,以CSV格式接收结果。
对于CSV格式的报告,请用途:
将accept设置为text/csv,以CSV格式接收结果。
对于两者,请根据需要替换{documentID}、{dataproviderID}、{documentID}、{reportID]和{flowID}