Reputation: 169
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 well?
Thank you and I am sorry but I could not find it on SAP pages.
Upvotes: 1
Views: 1831
Reputation: 227
If I understood your question correctly, this is exactly what XSJS Can do for you. Proven and tested. Another option would be oData which is more convenient way in case you do not need some advanced logic.
Upvotes: 2
Reputation: 130
You can use Node.js and HANA plugin to manipulate information like an API.
OR
You can use oData to use CRUD operations.
Upvotes: 1
Reputation: 63
Depending on what you mean there are two possible answers:
If you want to access the HANA SQL interface from a node.js application you can simply achieve this by using the node-hdb module from https://github.com/SAP/node-hdb.
If you want to integrate some Javascript code with SAP HANA XS applications that run server-side you'll need to get familiar with the documentation at the SAP HANA developer guide. TL;DR yes it's possible to integrate your Javascript code with SAP HANA XS Javascript code but you have to follow some rules and it's different then in node.js.
Upvotes: 2
Reputation: 295
Yes, it is possible to insert data into hana DB using Node.js
Else you can establish a JDBC connection to HANA DB and you can insert data and manipulate data.
**
Please go through this for more information
http://help.sap.com/saphelp_hanaplatform/helpdata/en/ff/15928cf5594d78b841fbbe649f04b4/content.htm
Note: HANA is a relational database
Upvotes: 1