用于检索pdf的SAP BI Open Doc URL [英] SAP BI Open Doc URL for retrieving pdf

查看:113
本文介绍了用于检索pdf的SAP BI Open Doc URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们使用的报表应用程序中,我们使用BI 3.x API生成Web报表.在进行向4.x版本的迁移活动时,我们认为最好使用开放的文档url,而不是通过API生成报告.

In a reporting application we use, we were using BI 3.x API to produce Web reports. While doing the migration activity to 4.x version, we thought it is fine to go with open doc url rather than doing the report generation through API.

我见过的许多示例都使用sIDType和iDocID参数以及Token值,通过构造如下http://server:port/BOE/OpenDocument/opendoc/openDocument.jsp?token=[LogonToken]&iDocID=[XXXX]&sIDType=CUID

Many of the samples I have seen uses sIDType and iDocID parameters along with Token value to retrieve the document by constructing a URL like below http://server:port/BOE/OpenDocument/opendoc/openDocument.jsp?token=[LogonToken]&iDocID=[XXXX]&sIDType=CUID

但是所有这些URL都从BI 4.x SAP Web服务获得了HTML页面作为响应,该HTML页面中的Java脚本执行了检索pdf文件的任务.

But all those URLs get HTML page as response from BI 4.x SAP webservice, the java script in that HTML page does the task of retrieving the pdf file.

我只是想知道是否可以通过任何方式直接从BI Web服务检索pdf报告作为响应?请协助我.谢谢

I am just wondering if there is any way I could retrieve the pdf report as response from the BI Webservice directly ? Please assist me on this. Thanks

推荐答案

如果您使用REST SDK来检索文档,刷新文档然后将其导出为PDF,则可以.

You can if you use the REST SDK to retrieve the document, refresh it and then export it to PDF.

简而言之,这些步骤是:

In short, these are the steps:

  1. 登录:POST /biprws/logon/long
  2. 获取文档的提示(如果有)GET /biprws/raylight/v1/documents/5690743/parameters
  3. 传递正确的提示值(如果有)并刷新文档:PUT /biprws/raylight/v1/documents/5690743/parameters
  4. 导出为PDF GET /biprws/raylight/v1/documents/5690743
  1. Logon: POST /biprws/logon/long
  2. Get the doc's prompts (if any) GET /biprws/raylight/v1/documents/5690743/parameters
  3. Pass the correct values for the prompts (if any) and refresh the document: PUT /biprws/raylight/v1/documents/5690743/parameters
  4. Export as PDF GET /biprws/raylight/v1/documents/5690743

最后一步要求您在HTTP标头中传递Accept: application/pdf以获得PDF版本.

That last step requires you to pass Accept: application/pdf in your HTTP headers to get the PDF version.

有关REST SDK和上面列出的不同步骤的详细信息,请访问 help.sap. .com (查找用于Web智能和BI语义层的手册 SAP BusinessObjects RESTful Web服务SDK用户指南.)

Detailed information on the REST SDK and the different steps listed above is available on help.sap.com (look for the manual SAP BusinessObjects RESTful Web Service SDK User Guide for Web Intelligence and the BI Semantic Layer).

这篇关于用于检索pdf的SAP BI Open Doc URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆