SAP BTP Developer Onboarding II | Hands-on Video T...
Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
The information presented in this blog is no longer current.
Hands-On Video Tutorials - Part II
philip.mugglestone just updated his developer onboarding video tutorial series for the SAP Cloud Platform. In this blog, you will find the videos embedded with some additional information and resources. Following along in the patented zero-to-hero format, no prior knowledge required, you will be ready to start developing business applications on the platform with minimal effort and no time wasted.
You can watch the seven video tutorials in a little over one hour. What you learn is
How to develop a standalone application using SAP Business Application Studio and deploy to the SAP Cloud Foundry environment
How to work with destinations
How to use Cloud Foundry User authentication and authorisation (UAA)
How to use SAP HANA for persistence
How to leverage the Cloud Application Programming (CAP) model
How to make use of XSJS compatibility to deploy your SAP HANA XS classic model applications as-is to SAP HANA XS Advanced model and Cloud Foundry.
Because we know your time is precious, we have included code snippets so you can easily and merrily code along. For the GitHub repository with sample code, go to
In this video tutorial, we work with a sample Node.js application from a sample Github repository using SAP Business Application Studio. We first run the app locally to validate everything works. Next, we deploy the app to the Cloud Foundry environment.
Next, create an instance of the Destination service and bind it the myappdest sample application.
A service key has been created as part of the binding process.
Which will be used as environment variables for the connection.
With the Business Application Studio we can also simulate the service access (binding) and run it locally. This will greatly improve the development experience and productivity as we do not have to deploy our app each time to validate our code.
App with Authentication
In this video tutorial, we develop a multi-target app (MTA) that requires end user authentication.
First, we create a local service instance and bind it to the destination while working in local development mode and test the authentication is successful. Once validated, we can build the MTA and deploy the app to the platform.
Both the router (front-end) and server (back-end) have been deployed with the service instance created.
To remove both applications and the services, use command
cf undeploy myappuaa --delete-services -f
App with HANA
In this video tutorial, we continue our development journey and create a multi-target app (MTA) that includes data persistence in SAP HANA.
First, create a new Cloud Foundry service for your environment, choosing service plan hdi-shared and bind the service to the local application.
As before, we need to update the .env file to default-env.json and wrap the environment in JSON format.
The relevant design-time artifacts are sales.hdbtable and sales.hdbtabledata with the sales.csv file.
The server.js file contains the actual SQL code that get's executed.
We run the application with the 'npm i' command to install the HDI Deployer and 'npm run start' to start the deployment (-- -- exit to exit when done).
cd myapphana\db
npm i
npm run start -- --exit
The console output shows the deployment process.
As before, to build the application right-click on the package.json file to build the MTA and subsequently from the MTA_archives folder, deploy MTA Archive.
CAP App
In this video tutorial, we use the SAP Cloud Application Programming model (CAP) to develop applications, including data persistence in SAP HANA.
By default, persistence uses a sql-lite database. To use SAP HANA, first enable and then deploy after connection the studio to the Cloud Foundry environment.
cds add hana
cds deploy --to hana
To run the application locally, install the dependencies and run
npm i
cds run
To deploy the application, execute
cds build
cd gen/srv
cf push --random-route
App with XSJS Compatibility Layer
In this video tutorial, we learn how to develop a multi-target (MTA) app that accesses data persistence in SAP HANA via the XSJS compatibility layer, to continue using SAP HANA XS classic model artifacts including XSODATA with XS Advanced.
const port = process.env.PORT || 5001;
xsjs(options).listen(port);
console.info('Listening on http://localhost:' + port);
[3:30] - original .xsjs and .xsodata files are located in the lib directory.
[4:20] - build and deploy project
[5:00] - Go to SAP Cloud Platform cockpit > Subaccount > Security: Role Collection Trust. Note a new role collection has been created. Assign this role collection to your the e-mail address for the trust configuration SAP ID Service (or any other identify provider.
[5:40] - test application
[5:55] - validate OData service calls ($metadata, etc.)
[7:30] - more information in readme.md
Share and Connect
Questions? Post as comment.
Useful? Give a like and share on social media. Thanks!
If you would like to receive updates, connect with me on