Skip to Content
0

Exporting an Webi document using RESTful not working

Jun 08, 2017 at 01:02 AM

25

avatar image
Former Member

I am trying to export the Webi report in excel format but it is getting the cached data

I have create a Webi document and exported the first time it works well but when tries to export the same document next time after updating the filter from SAP launch pad it is getting the old data from Restful call.

Steps I followed

1. Login

2. Refresh the document

"http://" + Session.IP + ":" + Session.port + "/biprws/raylight/v1/documents/" + DocId + "/parameters?lovInfo=false";

3. Export the document

"http://" + Utilities.Session.IP + ":" + Utilities.Session.port + Utilities.Session.version + "/documents/" + DocId + "/reports/" + RptId;

GetRequest.Method = "GET"; GetRequest.Accept = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; GetRequest.Headers.Set("X-SAP-LogonToken", Utilities.Session.LoginToken);

Is it any cashing mechanism in SAP which gives cached data?

Have anyone faced similar issue ? If you have solution, Request you to please share

Thanks in advance

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers