cancel
Showing results for 
Search instead for 
Did you mean: 

HANA XSJS/XSOData

Former Member
0 Kudos

Hi,

Couple of questions related to XSJS..

We use some xsjs and xsodata endpoints which invokes procedure or calc views in HANA content and gets result in JSON format to bind to UI.

How can we test the data flow b/w XSJS (or XSOData) and HANA views/procedures.? 

Is there any way to test this flow without UI dependency?

How to debug the XSJS/XSOData endpoint in HANA Studio?

Appreciate the responses ... !

Regards,

Bala

Accepted Solutions (0)

Answers (1)

Answers (1)

SergioG_TX
Active Contributor
0 Kudos

BAlasubramani,

you can test it using the browser developer tools by invoking the OData end points with the OData syntax...

or you can also use a browser plug in such as POSTMan rest client. this tool is very useful to test get/post requests from  your browser into xsjs services or odata as you mentioned.

hope this helps

Former Member
0 Kudos

Hi Sergio,

Thanks for your responses.

Yes, we do use the browser dev tools to analyze the endpoints. But wanted to know if we can test it via hana studio itself. Since XS is part of our HANA system, I thought there could be some method to test the flow b/w XS endpoints to HANA stored proc and CVs.

Note: We use SPS 10.

SergioG_TX
Active Contributor
0 Kudos

if you are talking about debugging, then yes you start by setting up a debugging session on your hana studio, but you need to trigger the request from the browser. once the browser makes the call, the execution will stop at the debugging point you set on your hana studio. after that you can step through the code and if you set it up to go from xsjs code into stored proc, then you will also need to set up a debugging point on your stored proc.

here is the documentation for the debugging perspective http://help.sap.com/saphelp_hanaplatform/helpdata/en/6c/7a750fdf9249349dbe870a0bbd916f/content.htm

i hope it helps

Former Member
0 Kudos

Thanks Sergio

SergioG_TX
Active Contributor
0 Kudos

kindly mark answers correct or helpful which ever was the case.