Questions tagged [xsjs]
22 questions
1
vote
1 answer
XML file as a stored procedure input parameter?
My current requirement has a scenario where I need to perform bulk inserts or batch inserts into two SAP HANA tables using a stored procedure as a reusable component.
I wanted to know if there is a method in which I can accept a XML object as an…

rohithrajan
- 41
- 5
1
vote
1 answer
Execute XSJS program in SAP HANA Neo using Eclipse
Is there a way to run or debug an XSJS program in SAP HANA (Neo) using Eclipse Neon Release 4.6.3?
I have installed SAP plug-in in Eclipse and connected to the database in System view. However, I do not know how to execute the XSJS file.

KLX230
- 17
- 3
1
vote
0 answers
Checkmarx issue XS_Reflected_XSS
I am facing a XS_Reflected_XSS issue related to Checkmarx. Working in SAP HANA XSJS.
Following is my code extract :
action = **$.request.parameters.get("action");**
switch ($.request.method) {
case $.net.http.GET:
switch…

abhi5800
- 374
- 1
- 5
- 21
1
vote
1 answer
HANA XSJS app authentication method: what to choose?
We are developing SAAS web application on SAP HANA XS Engine.
We have subscription based product packages and we want to manage user authentication on web. So, we removed XS Engine authentication.
Now we have login page that use XSJS methods for…

AnovaConsultancy
- 106
- 1
- 13
1
vote
5 answers
SAP HANA Javascript deployment
Is it possible to program extensions using Javascript only and integrate with SAP HANA system later?
Can I use API to get information from the DB, manipulate them and possibly save them to DB or external DB which will be accessed later as…

marcinwal
- 169
- 10
0
votes
0 answers
When I run SAP HANA XSJS Application, it returns Error 404 - Found
I'm new to the HANA environment. I'm trying to run "Hello world application", however every time I make changes it returns
404 - Not found
We could not find the resource you're trying to access.
It might be misspelled or currently…

Ntuuro
- 19
- 4
0
votes
0 answers
Function skipping the squesnce of statements execution
I have below JavaScript function to connect to HANA DB and run a stored procedure using HANA DB library.
In this function, processor is not wating for db connection function statement to be completed.its running the next line of the db function call…
0
votes
1 answer
XSJS getting result from stored procedure in a variable
I have a situation where I pass a session user as a parameter to stored procedure and get a receiver value which I want to get in a variable so I can pass that to other function in xsjs file to send email.
I am getting sender from session user and…

Kilo
- 9
- 4
0
votes
1 answer
Error when trying to call SAP HANA stored procedure from service side
I am trying to call a SAP HANA hdbprocedure from my service side using below code.
var con = ConLib.getHDBConnection();
var uploadStmt = con.loadProcedure("_SYS_BIC" , "procname");
var result = uploadStmt("samplefield1", "samplefield2",…

user1203259
- 95
- 1
- 6
0
votes
1 answer
HANA XSJS - InternalError: dberror(Connection.prepareStatement): 608 - exceed maximum number of prepared statements
I have an xsjs sertvice that is filling some tables with data from another table.
after sometime running, the service gives the following error:
InternalError: dberror(Connection.prepareStatement): 608 - exceed maximum number of prepared statements:…

Eva Dias
- 1,709
- 9
- 36
- 67
0
votes
1 answer
Accessing Backend HANA XSJS from SAP Conversational AI Chatbot - getaddrinfo ENOTFOUND error
I created an XSJS Service in backend HANA Database through eclipse. When I call the service from POSTMAN, it works fine and gets me the result. But when I call the same service from SAP CAI chatbot, it gives an error : getaddrinfo ENOTFOUND.
Postman…

Vivek
- 1
0
votes
1 answer
How to get the current user in HTML?
I have user.xsjs file which has the following code
var name1 = $.response.setBody($.session.getUsername());
I have test.html file I want to get the current user from user.xsjs file or aforesaid code directly used in test.html file to the get…

Kilo
- 9
- 4
0
votes
1 answer
SAP cloud platform log files API
How can I download all logfiles from my JAVA / XSJS Applications without logging into SAP Cloud Platform Cockpit. Is there an API?
This API (https://api.sap.com/api/LogFiles/) seems to be only for SAP Cloud Integration.

André Wuttig
- 148
- 9
0
votes
1 answer
Not able to run xsjs file, error: site can't be reached
I am using office network to learn SAP HANA, to connect to HANA system I have to first connect to VPN then only the HANA system gets online. I configured a simple project XS application but when I try to run it, it shows the below error :
hana01’s…

Roshan
- 645
- 1
- 11
- 36
0
votes
1 answer
Cannot pass characters + or % using xsjs / jQuery.get
I am making a HANA application in SAP HANA Studio. I am able to insert entries into a hdbtable that I made when they are normal things like "1" and "apple". When I try to add values such as "+" or "%" for some reason they show up as a space in my…

SAPUI5GUY
- 71
- 1
- 2
- 10