Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

SAP BI retrieving PDF from Web Service

In SAP BI, I am using BI 3.x API to generate reports. We are in process of migrating to 4.x and I thought it would be good if I use open doc URL instead of using API.

https://server:port/BOE/OpenDocument/opendoc/openDocument.jsp?token=[LogonToken]&iDocID=[XXXX]&sIDType=CUID

These URL’s provide HTML page as response from BI 4.x Web Service. I want to retrieve PDF report as response from BI Web Service?


1 Answer
SAP Expert

Try using REST SDK to retrieve document and convert it in to PDF. Follow below steps:

  • Logon: POST /biprws/logon/long
  • Get the doc's prompts (if any) GET /biprws/raylight/v1/documents/5690743/parameters
  • Pass the correct values for the prompts (if any) and refresh the document: PUT /biprws/raylight/v1/documents/5690743/parameters
  • Export as PDF GET /biprws/raylight/v1/documents/5690743

In end you need to pass Accept: application/pdf in HTTP header to get PDF version.

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.