Quantcast
Channel: SCN : Popular Discussions - RESTful Web Services SDK
Viewing all articles
Browse latest Browse all 1088

SAP Report with Optional prompts using RESTful Web Services SDK

$
0
0

Hi All,

 

I have struggled a lot and finally get the achievement to access report data from SAP BI using SAP RESTful Web Services SDK, but now i have stuck in two of the situation mentioned below.

 

 

1. Unable to execute report after setting optional prompts. (How to set Optional Prompt)

 

2. While getting the report data one XML tag "value" is missing but it is coming while using the SOAP Web services.

 

 

Step to re-produce.

 

 

1. Get the logon token using REST URL : http://{server}/biprws/logon/long/: Successfully done.

 

2. Setting the parameter using REST URL: http://{server}/biprws/raylight/v1/documents/" + documentId + "/parameters

 

     a. Method Request: PUT.

 

     b. Request Properties:

 

          i. Accept: application/xml

 

          ii. X-SAP-LogonToken: logon Token (Getting from step 1).

 

     c. Setting body: <parameters><parameter><id>0</id></parameter></parameters>

 

 

Note: The complete tag of setting prompts through which i am able to execute report and successfully get the report data is below:

 

"<parameters><parameter><id>0</id><answer><values><value>1</value></values></answer></parameter></parameters>" using this syntax i am able to get the report data filtered on the basis of value given in value tag but the question i want to get the complete report data, don't want to set the prompt then HOW THIS OPTIONAL PROMPT will be set.

 

 

3. Get the report data using REST URL: "http://{server}/biprws/raylight/v1/documents/" + documentId"

 

     a. Method: GET.

 

     b. Request Properties:

 

          i. Accept: text/xml

 

          ii. X-SAP-LogonToken: logon Token (Getting from step 1).

 

 

While executing the above code with complete parameter syntax mentioned in "Note" above i am able to get the data successfully in XML format, but when i try to set the prompt optionally in below format then getting the 500 Internal Server Error.

 

1. <parameters><parameter><id>0</id><answer><values></values></answer></parameter></parameters>

 

2. <parameters><parameter><id>0</id><answer></answer></parameter></parameters>

 

3. <parameters><parameter><id>0</id></parameter></parameters>

 

4. <parameters><parameter><id>0</id><answer><values><value>null</value></values></answer></parameter></parameters>

 

 

Error Received: 500 Internal Server Error

 

 

Can anyone help me in this, i would be be very great full?


Viewing all articles
Browse latest Browse all 1088

Trending Articles



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