Questions tagged [hana-xs]

HANA XS (also known as SAP HANA Extended Application Services engine or XS Engine) is a lightweight web and application server embedded into SAP HANA which includes configurable OData(XSODATA) support and server-side JS(XSJS) execution.

SAP HANA Extended Application Services(SAP HANA XS) provides a comprehensive set of embedded services that provide end-to-end support for Web-based applications. This includes a lightweight SAP HANA XS web server, configurable OData support(XSODATA), server-side JS execution(XSJS) and full access to SQL and SQLScript.

The SAP HANA XS server allows clients to access the SAP HANA system via HTTP. Controller applications can run completely natively on SAP HANA, without the need for an additional external application server. The application services can be used to expose the database data model, with its tables, views and database procedures, to clients. This can be done in a declarative way using OData services or by writing native application-specific code that runs in the SAP HANA context. Also, you can use SAP HANA XS to build dynamic HTML5 UI applications.

In addition to exposing the data model, SAP HANA XS also hosts system services that are part of the SAP HANA system. No data is stored in the SAP HANA XS server itself. To read tables or views, to modify data or to execute SQLScript database procedures and calculations, it connects to the index server (or servers, in case of a distributed system). From SPS 11, SAP HANA includes an additional run-time environment for application development: SAP HANA extended application services (XS), advanced model. SAP HANA XS advanced model represents an evolution of the application server architecture within SAP HANA by building upon the strengths (and expanding the scope) of SAP HANA extended application services (XS), classic model.

84 questions
0
votes
1 answer

Not able to establish database connection -dberror(Connection.prepareStatement): 258 - insufficient privilege: Not authorized

I am new to SAP Hana cloud environment and was trying to learn sentiment analysis using Hana cloud platform. I am using the following code in my .xsjs script : var body = "error"; var data = { result : 0 }; var id =…
Aayush
  • 1,244
  • 5
  • 19
  • 48
0
votes
0 answers

Failed to Load resource: the server responded with status 404 (not Found) during BUILD of a Hana DB Module

I am trying to create synonym in SAP WEB IDE. I created a new multi tenant project and also added a SAP HANA DATABASE MODULE under it. For creating a Synonym, I followed below steps: 1) I have created a user provided service (mydata-grantor). 2)…
0
votes
1 answer

How to create a new table in database using sapui5?

I'm looking for your help. I created a webapp. Here I can create a table and control entries. Now I'm in frustration because I have no idea how I can save this table to database. Here is the save function: onSave: function() { //Create all the…
0
votes
1 answer

xsjs $.hdb.getConnection undefined

I'm trying to do some exercises, like this one: https://blogs.sap.com/2016/03/28/developing-with-xs-advanced-add-business-logic-with-nodejs/ In that exercise, there is this code snippet: function saveCountry(country){ var conn =…
xOCh
  • 1
  • 2
0
votes
2 answers

XSCRON for scheduling a xsjob

I need a XS Cron to schedule a job for every second Tuesday of every month. I have a Cron which is "* * * tue 12 0 0"; it states that the job is scheduled for every month every tuesday to run at 12. So Please help.
RenitaR
  • 26
  • 1
  • 2
0
votes
1 answer

get record by Id XSJS

I'm new to xsjs, i know to retrieve data from db(HANA db) we need to use prepare statements. I tried using it but any how my .xsjs file is returning me empty JSON. can some one help me? Sharing my code. Below is user table id | user_name | password…
Prasanna
  • 1,752
  • 1
  • 15
  • 27
0
votes
1 answer

SAPUI5 - how to set value to input parameter in binding dynamically

In my XSOData service I have an entity based on calculation view with input parameters. I can to set these parameters as constants in my XML view, i.e.
Lev83
  • 41
  • 1
  • 7
0
votes
0 answers

passing authentication parameters to xsjs

We have SAP HANA 1.0 SPS12. We are using xsjs for sending email alerts. We have below URL of same - https://localhost:4300/ALERTS/TEST.xsjs?id=1&name=abc id and name are parameters which will be consumed in xsjs. I need to consume URL of xsjs…
Anirudh D
  • 181
  • 3
  • 14
  • 33
0
votes
0 answers

SAPUI5 OData Select

currently i am facing issues with my xsodata service. It is created based on HANA calculation view. It has one collection with about 40 properties. I want to use filters and the select system query. var aFilter = [new…
Bendit
  • 21
  • 4
0
votes
1 answer

SAPUI5 OData Binding not refreshing on route navigation

For a SAPUI5 app I created an OData service having an entity "Enquiries". The service itself works fine. In order to build a first SAPUI5 app on top of that service, I took the Walkthrough to get the basics:…
Nils
  • 94
  • 1
  • 5
0
votes
1 answer

Convert HANA XSC app into Mobile app?

Is it possible to convert HANA XSC that runs XSJS and OData services into a hybrid app? Cordova framework converts UI5 apps into a hybrid app. But my concern is to convert app that uses HANA features. Any help would be appreciated! TIA.
Manjunath
  • 125
  • 1
  • 1
  • 8
0
votes
1 answer

Bind Association XSOData in UI5?

Let's say I have Employee entity associated with Address entity in XSOData and I want to bind them to a single control - StandardListItem. How to achieve this?
Manjunath
  • 125
  • 1
  • 1
  • 8
0
votes
0 answers

How to use XSOData with sapui5

I'm trying to configure XSOData service with my SAPUI5 application. simple odata service working fine. but when with XSOData i've some authentication problem. metadata file return me some sort of html with log on .. detail. I've found that it is…
user7149647
0
votes
0 answers

How to debug HANA XSJS using eclipse?

Can some please help me how to add debugger to eclipse for debuffing xsjs file? I looked into lot of blogs but no success. Thanks
user557657
  • 856
  • 1
  • 12
  • 35
0
votes
1 answer

How to access XS server of multitenant database with same host name and system number

Tenant HANA database installed in same host. All tenant database has same host name and system number i.e. 00. To access XS server we follow link http:/:80 since for all tenant we have same host name and system number. How can we…
sanket
  • 1
  • 3