SAP HANA XS Advanced, Creating a Node.js Module
January 5, 2021
Beginner
15 min.
Creating a Node.js Module and implementing XSJS and XSODATA
You will learn
You will learn how to build the XSJS and XSODATA services used to expose your data model to the user interface. Although XS Advanced runs on Node.js, SAP has added modules to Node.js to provide XSJS and XSODATA backward compatibility. Therefore you can use the same programming model and much of the same APIs from the Extended Application Services, classic model even within this new environment.
Prerequisites
- This tutorial is designed for SAP HANA on premise and SAP HANA, express edition. It is not designed for SAP HANA Cloud.
- Proficiency: beginner
- Tutorials: SAP HANA XS Advanced, Creating an HDI Module
Step 1: Create a Node.js module
Step 2: Configure Routes
Step 3: Enable authentication in your service
Step 4: Create an OData service
Step 5: Create an XSJS service
Step 6: Execute the xsjs module