Create CAP service with Low-Code No Code (LCNC)
In this blog, I will share my experience & how to create SAP CAP service using Low-Code No Code from the TechEd 2021 session.
- SAP BTP environment with Low-Code/No-Code Entitlements. – Refer SAP dev tutorial Subscribe to the Low-Code / No-Code Service in SAP BTP
- SAP AppGyver
Step 1: Open Development Lobby, Click on Create and choose Business Application and provide the project name and click on Create.
Provide the project details as below
Step 12: Lets us create a new service, which we will be using later in the next blog.
Step 13: To use this service through AppGyver, we need CORS support. Open the terminal and execute below command
npm i cors
Also we need to add new file server.js in the srv folder with below code
"use strict"; const cds = require("@sap/cds"); const cors = require("cors"); cds.on("bootstrap", app => app.use(cors())); module.exports = cds.server;
Step 15: Once app got deployed, we need to default role to our user id so that we can access the service.
Hope this blog will be useful.
I would like to thank SAP for providing such a nice TechEd session on LCNC.
Sai Nithesh Gajula