Quantcast
Channel: SCN : All Content - RESTful Web Services SDK
Viewing all 262 articles
Browse latest View live

Passing parameters to a report using RESTful SDK

$
0
0

Have anyone used RESTful SDK to generate a PDF/XLS report that takes filters/parameters?

 

I have seen many posts that create a report but won't take any parameters. I couldn't find any documentation either. Not sure if I need to pass the parameters in the header or in the URI.

 

My requirement is to call a WEBI report that might filter data based on the values passed and generate either a PDF or XLS. So far we have simple filters that filter data by customer, date etc.

 

Any help is greatly appreciated.

 

Thanks,

Sher


The remote server returned an error: (500) Internal Server Error?

$
0
0

Hi,

 

When calling api to create new report document 'http://<My Server Internal IP>:6405/biprws/raylight/v1/documents'

 

Sample of post request

 

               string xmlToPost = string.Format("<document><name>{0}</name><folderId>{1}</folderId></document>", newReportName, folderId); ;

                WebRequest request = WebRequest.Create(postUrl);

                request.Method = "POST";

                string postData = xmlToPost;

                byte[] byteArray = Encoding.UTF8.GetBytes(postData);

                logonToken = "\"" + logonToken + "\"";

                request.Headers.Set("X-SAP-LogonToken", logonToken);

                request.ContentType = "application/xml";

                request.ContentLength = byteArray.Length;

 

                Stream dataStream = request.GetRequestStream();

                dataStream.Write(byteArray, 0, byteArray.Length);

                dataStream.Close();

 

 

 

                WebResponse response = request.GetResponse(); (getting internal server error here)

 

I am getting error The remote server returned an error: (500) Internal Server Error

 

What could be possible reasons?

 

Thanks

Samir

adding data source i.e universe to newly created report document using rest api

$
0
0

I have created report document using rest api and it got created successfully.

 

(post url to create document : http://{0}:6405/biprws/raylight/v1/documents

Xml to post : <document><name>Some unique report name</name><folderId>13025</folderId></document>)

 

 

My requirement is,  When we open new report, we do not need to select universe again.

 

We try to use data provider api to add data source like below :

 

api to call : http://[server ip]:6405/biprws/raylight/v1/documents/15698/dataproviders

post xml format : <dataprovider><name>[i put universe name here]</name><dataSourceId>[i put here universe id]</dataSourceId></dataprovider>

 

After calling api to add data provider, got its result like

 

The resource of type "Data provider" with identifier "DP0" has been successfully created.

 

But when I open report , I always need to choose universe(even I have only 1 universe).

I do not want user to choose universe as it already set in data provider.

I want user only needs to add query.

 

Please let me know if any information.

 

Thanks in Advance.

Samir

How to retrieve the filters used in report using Restful web services ?

Adding image on page header

$
0
0

Hi,

 

How to add image on report page header using Rest API

View Restful API login session in CMC

$
0
0

In general if you make any connection to Business Objects InfoView then you will be able to see the active session in CMC--> Sessions.

 

But If I Create session through rest API call then I don't see it in the sessions monitor in CMC. Is there way to see login session created through rest API call to monitor how many session are active?

Using RESTful Web Services SDK for login into AS ABAP

$
0
0

Dear all,


we have the following scenario. The Business Intelligence Platform 4.x (BIP) is installed based on Tomcat. We have several applications running on BIP consuming BEx queries from SAP BW AS ABAP. The BIP is connected with SAP BW AS ABAP via SSO that means the users can logon to BIP via their SAP logon credentials. Now we want to consume some AS ABAP Webservices from a SICF node. This is done for instance in Design Studio using some JavaScript to call the URL from the AS ABAP of the SAP BW. However, the user has to login again, despite the fact that the user already has been logged in with the SAP logon credentials. I thought that we can use the RESTful Web Services SDK in order to retrieve from the Security Token Service (STS) a SAP Logon Ticket in order to login into AS ABAP.


I have now a logon token as the X-SAP-LogonToken attribute as described in “4.3.2  To get a logon token from a serialized session or session token” of the Business Intelligence platform RESTful Web Service Developer Guide 4.2.


However, I ask myself now if I can use this X-SAP-LogonToken somehow to login into the AS ABAP given the fact that the user already have been logged in using the SAP logon credentias of the AS ABAP. Does anyone know if this can work? And if yes, can you please give me any input?


If this does not work, then I’m also appreciate any other solutions proposals.


Thanks in advance for you help.


Cheers,
Marcel

Export to HTML throwing RWS 00058 Not acceptable, (RWS 00058)

$
0
0

Hi,

 

I am trying to export to HTML and it is throwing the above error.

The Header is "text/html" and file extension for download is also .html.

The GET request is ...raylight/v1/documents/docid

 

Anything i have to do or missing here?

 

Thanks,

Arun


How to get Doc id from Doc CUID using rest api call?

$
0
0

How to get Doc Id from Doc CUID using rest api call?

Input controls

$
0
0

Hi,

 

Is there a way to select the value in input controls and export the report using REST?

 

My report has prompts to select the user id and month that opens a report with two input controls. For a particular user id, the input controls have many values. Is there a way i can select the input control values one by one, open the report and export to PDF?

 

Thanks,
Arun

Issue with getting updated document Data

$
0
0

I am having issue with getting update document data.  Below are the details

 

1. Open a connection using web service call

2. Get the document reports for ex 1 Report tab

3. Login to BI launch Pad directly and added another report tab to the same document access earlier and saved the document

4. using the same restful session if I access the same document to get the reports returned one report tab instead of two.

 

 

If I create the logon token again and able to see the updates. Is there a way to get the latest data without generating logon token?

How to get the Public Folders and My Favorites CUID using Restful API call?

$
0
0

How to get the Public Folders and My Favorites CUID/ID using Restful API call?

Listout Webi Reports using a specific Universe Object

$
0
0

Hello,

 

I am new to SAP BO and need your help in achiving below requirement:

 

Our requirement is to pull list of all Web Intelligence reports using a specific universe object in BI 4.1. Based on my research I got to know that this was possible using JAVA Enterprise SDKs in BO XI 3.1; however same is not supported BI 4.0 SP3 onward; and possible using RESTFul Web Services SDKs only.

 

I have followed few links where in same question were asked; however no one has documented RESTFul SDK code to achive this requirement for SAP BI 4.1 on Windows Platform.

 

Please suggest.

 

Regards,

Anamika

Login Page displayed when Rest session used in OpenDocument Link

$
0
0

I am getting the login page if I use the restful session logontoken in the Open document URL. Below is the URL

 

opendocument.jpg

 

Please advice.

getVersion in SAP BI 4.1 web-service C# .Net Implementation

$
0
0

Hi,

 

I am writing a C# code to connect to QAAWS web-service of SAP BI 4.1. Below is the code for same:

 

BO_Session.EnterpriseCredential objCredential = new BO_Session.EnterpriseCredential();
objCredential.Login = txtUser.Text;
objCredential.Password = TxtPassword.Text;
objCredential.Domain = "server:6400";
objCredential.AuthType = "secEnterprise";
BO_Session.Session objSession = new BO_Session.Session();
           
BO_Session.SessionInfo objSessionInfo = objSession.login(objCredential,objSession.getVersion([sessionId]));

 

I need to pass sessionId value to getVersion function in the last line of code. Please help in understanding what value should I pass here.

 

The Web-service resides in SAP BI 4.1 environment.

 

Thanks


Schedule Webi report with dynamic prompt on Bex

$
0
0

Hi ,

 

WE have 40 Webi reports with Dynamic selection parameters/prompts having Date, Month and Year selections.

 

Currently we are changing the schedule everyday to incorporate new date in Webi report from BO end.

 

Because we are using Standard Bex variables so customer exit is not written there and for some reports we have used Master Bex queries having Year and Month both selections but at Webi level we are using only only prompt Month or Yearfor Monthly and Yearly reports respectively, by unchecking the USE DEFAULT VALUES option of Bex

 

So we cannot use default vales of Bex for these.

 

Can we implement an SDK for changing the prompt everyday for daily reports with Current date ?

Because i read it on forum that best solution is to have Customer Exits in Bex , but we cannot change that now.

 

Kindly help me here.

 

Regards,

Rohini Haksar

Unable to get the parameters list on the server through the document parameters REST

$
0
0

Hi Guys,

 

I am very new to RESTful web service SDK. By Using Restful we can do Schedule, get documents list, get logon token successfully. But only the "parameters list" call is not working. if we try to call parameter list, we got the attached screen shot error. Please let me know how can I proceed on this.

 

Thanks,

Naga.

Is it possible to update infostore object name in BO XI 4.1 Rest API call?

$
0
0

Is it possible to update the infostore object name(SI_NAME) in BO XI 4.1 rest API call?

How to fetch Webi document ID

$
0
0

Hi,

 

  I am new to Restful SDK and working on to refresh, export and save Webi reports in various formats. We have around 60 webi reports and we hit the restful URL  by passing document ID for each report. In the rebean framework, we used to pass the document name. But in the restful framework since we need to use the document ID, I would like to understand if there is a way to fetch the document ID by passing document name?

This is because we have multiple regions and since the document ID is not the same in all the regions, hard coding do not seem to work and also not a good practise.

Any Suggestions?

 

Thanks,

Vishwanath H

Change mapping of webi work only once

$
0
0

Hello,

 

I'd to change the universe of a webi in BO with the get/post/put actions (raylight).

 

When I use the method to change the universe for the first time, it work pretty well. I can the see update on BO.

 

But when I tried to do it again, STATUS 404 appears. It's weird because I can still get information about this webi when I do :

 

GET - biprws/raylight/v1/documents/XXXXX/

 

 

 

 

My process :

 

STEP 1 : GET - biprws/raylight/v1/documents/AAAA/dataproviders/mappings?originDataproviderIds=DP0&targetDatasourceId=BBBB

 

STEP 2 : POST - biprws/raylight/v1/documents/AAAA/dataproviders/mappings?originDataproviderIds=DP0&targetDatasourceId=BBBB

 

STEP 3 : PUT - biprws/raylight/v1/documents/AAAA

 

 

About my BO Version :


SAP BusinessObjects BI 4.1 Support Pack 5


I searched on internet but i didn't find nothing.

 

Kind regards ,

 

Cyrille.

Viewing all 262 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>