BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

Useful CAP CDS and Fiori Commands to Accelerate Development and Deployment

A command-by-command walkthrough of @sap/cds-dk's cds add and fiori add generators: cds add xsuaa writes an XSUAA security configuration from the CDS model's authorization annotations, and cds add hana together with cds deploy --to hana switches persistence from the default SQLite database to SAP HANA Cloud. cds add mta and fiori add deploy-config, from @sap/generator-fiori, build the Cloud Foundry deployment descriptor together, adding a destination-service block and an xs-app.json that routes the Fiori app's calls through a named destination.

Where it sits

Explains
AuthorizationCAPBTPAuthorizationcapabilityDeciding who may read or change what, at service, entity and instance level — role checks, forwarded user context, and restrictions evaluated as query filters rather than after the fact.Database connectorsCAPBTPDatabase connectorscapabilityConnecting an application’s data model and queries to a database, including the differences in supported queries, types and schema management between database implementations. Changing an existing schema belongs to [schema evolution](capability:schema-evolution).GeneratorsCAPUI5GeneratorscapabilityGetting from nothing to a project that runs, and from a project that runs to one that has the piece you just decided you need. Two different moments: the first is a one-time decision about layout, the second recurs for the life of the project.DestinationsCAPBTPDestinationscapabilityReaching a system that is not yours — an S/4HANA tenant, an on-premise service, a third-party API — without the address, the credentials or the tunnel being written into the application. The destination is the indirection, and the reason an endpoint can move without a redeploy.
Since then
Authorization has changed twice since this was published, most recently in CAP Java 3.7.1, 2025-01-30
Source
reachable

Who is behind it

TiaXuauthor

Before you read it

ApplicabilityVersion driftcds 6, line ended

The piece names the version it was written against, and that line has since been crossed by a breaking one. The steps may need translating; nothing here says which.

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
14,481

For authorization

on the edge
Applies in
authored
btpcap

For database-connectors

on the edge
Applies in
authored
btpcap

For generators

on the edge
Applies in
authored
capui5

For destinations

on the edge
Applies in
authored
btpcap

More on this145

Group by145 of 145 pieces
Piece, what it offersStill applies
Also explainingAuthorization145
Bridging Python and SAP HANA: Inside the sqlalchemy-hana Open-Source Dialect
YouTube — SAP Developers playlists, SAP Developers
nothing recorded
Named-User Attribution Across BTP Subaccounts: A Two-Hop IAS Token Exchange for Cloud Integration
SAP Community, agnissh
nothing recorded
CAP Foundry: Engineering SAP CAP Applications from Business Intent with Guardrailed AI
SAP Community, Shahid
nothing recorded
Connecting a Custom MCP Server to Joule Work Desktop: A Seamless and Secure Authentication Flow
SAP Community, Siddhartha Routh
nothing recorded
Connect SAP CAP (Node.js) to On-Premise/Private PostgreSQL using SAP Cloud Connector
SAP Community, KalaikovanThe reasoningA recipe
Core changed
Expose S/4HANA Cloud OData API as an MCP Server via CAP Node.js
SAP Community, Jacky_Liu1
nothing recorded
Securing a CAP Node.js App with SAP AMS on BTP Cloud Foundry
SAP Community, Jacky LiuThe reasoningA recipe
nothing recorded
Principal Propagation from BTP Web App to S/4HANA via SAP Integration Suite
SAP Community, Joni
nothing recorded
Using RFC Function Modules and BAPIs in SAP Build Process Automation
SAP Community, MrRaj
nothing recorded
Creating an SAP SD Billing Document Using a BAPI in SAP Build and Accessing It Through 'Joule Work'
SAP Community, MrRaj
nothing recorded
Effective from June 30th 2026 - XSUAA Deprecation of GET Method for OAuth Token Retrieval
SAP Community, Yogananda
nothing recorded
From XSUAA to AMS: Architecting S4HANA CAP Extensions with Policy-Based Authorization
SAP Community, Avinash VaidyaThe reasoningA recipeRunnable code
nothing recorded
How to Restrict CRUD Operations in SAP CAPM Using @Capabilities, @readonly and Test APIs with .http
SAP Community, DeepaRaghoThe reasoningA recipeRunnable code
nothing recorded
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-5]
SAP Community, sanjucsThe reasoning
nothing recorded
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-4]
SAP Community, sanjucsThe reasoningA recipe
Core changed
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-3]
SAP Community, sanjucsThe reasoning
nothing recorded
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-1]
SAP Community, sanjucsThe reasoningA recipeRunnable code
Core changed
Dynamic authorisation with user attributes in SAP CAP and AMS
SAP Community, pedro_iranzoThe reasoningA recipeRunnable code
nothing recorded
Agentic AI on BTP: a Single Agent with LangGraph
SAP Community, Wouter Lemaire
nothing recorded
Building a CAP App with Fiori Integration – Part 1: Environment & HANA Cloud Setup
SAP Community, SuryaRamesh, part 1 of 2The reasoning
nothing recorded
Building Custom Joule Skills via RFC: Guide for SAP S/4HANA and ECC Integration
SAP Community, Robin-Qiu
nothing recorded
CAP Initializr: Generate SAP CAP Projects in Seconds
SAP Community, Saptarshi017The reasoning
nothing recorded
Implementing Dynamic Subaccount-Based Routing in SAP CAP with SAP BTP Destinations
SAP Community, Dnyaneshwar SalveThe reasoningRunnable code
nothing recorded
SAP CAP on HANA XSA: Scaling Industrial Data Applications Beyond the Cloud
SAP Community, rgadirovThe reasoningRunnable code
Core changed
SAP BTP Platform Technical User for CTMS Integration
SAP Community, Marudhu999
nothing recorded
Part 1: How to create CAPM project in BAS
SAP Community, Vennilla00The reasoningA recipe
Core changed
Part 2: Creating and Deploying a CAP Application with PostgreSQL, Hyperscaler Option
SAP Community, yashbhosle789, part 2 of 2The reasoningA recipe
Core changed
Part 1: Creating and Deploying a SAP CAP Application with SAP HANA on SAP BTP (Cloud Foundry)
SAP Community, yashbhosle789, part 1 of 2The reasoningA recipe
Core changed
SAP BTP XSUAA Security Configuration Comparison: Attribute-Based vs. Authority-Based Approaches
SAP Community, rajeshkputumbakaThe reasoningRunnable code
nothing recorded
UI for the BTP Application Vulnerability Report
SAP Community, Wouter Lemaire
nothing recorded
UI5 MCP Server Got Extended for UI Integration Cards Generation
SAP Community, daniel_vladinov
nothing recorded
Setting Up PostgreSQL for SAP BTP Development: A Practical Guide
SAP Community, michal_majerThe reasoningA recipeRunnable code
nothing recorded
Use REST services in Graph
SAP Community, florian_moritz
nothing recorded
Prompt-Driven Development: Building Full-Stack SAP CAP Apps from User Stories
SAP Community, AnuradhaDhinganThe reasoning
nothing recorded
Securing CAP Applications with SAP Cloud Identity Services and AMS
SAP Community, gopalanandThe reasoningRunnable code
nothing recorded
Authorization management with OpenSearch's Document Level Security - SAP Cloud Logging
SAP Community, Hariharan-Gandhi
nothing recorded
Create a CAP Application with SAP HANA Cloud from Scratch and Deploy to Cloud Foundry
SAP Community, MaheshSirsat1708The reasoningA recipe
Core changed
Establishing connectivity between a local CAP runtime and on-premise systems
SAP Community, vLeonkevThe reasoningA recipeRunnable code
nothing recorded
Creating a Hybrid CAP (Node.js) Profile with PostgreSQL on BTP from Business Application Studio
SAP Community, valentincadartThe reasoningRunnable code
Core changed
From REST to Datasphere: A CAP-based Integration Approach
SAP Community, christian_williThe reasoning
nothing recorded
Give Your AI Agent Some Tools: Introducing the UI5 MCP Server
SAP Community, Merlin Beutlberger
nothing recorded
Configuring SAP Cloud Integration for an IBP to S/4HANA (on prem / private cloud) integration
SAP Community, SofianePebre
nothing recorded
Sending Emails from SAP CAP Applications with Any SMTP Provider
SAP Community, MaheshSirsat1708
nothing recorded
How to Call a Remote OData API from Your Local CAP Java Project
SAP Community, UmezukiThe reasoningRunnable code
nothing recorded
Joule Studioがリリースされたので早速CAPアプリを自然言語で操作するカスタムスキルを構築してみた
SAP Community, takayuki_tanaka
nothing recorded
Exposing SAP S4 Onprem data to external System || Odata Service || BTP || Destination-Connectivity
SAP Community, Ace_D
nothing recorded
Connect to Public Cloud API in Node.js via Authorisation Code
SAP Community, EganThe reasoning
nothing recorded
Securing SAP CAP Applications: XSUAA, Roles, and Authorization Best Practices
SAP Community, Soumya-Pirlamarla
nothing recorded
Extending SAP Sales and Service Cloud V2 Using CAP
SAP Community, QuablabThe reasoningA recipe
nothing recorded
Set up the SAP Cloud Connector: Integrating On‑Premise Systems with Cloud Services
SAP Community, Thijn_Grilis
nothing recorded
Consuming data from SAP Datasphere in SAP BTP CAP Applications
SAP Community, sudheer-tammanaThe reasoning
nothing recorded
SAP Fiori Application Generator Available in Open Source
SAP Community, jlong
nothing recorded
SAP IAM integration with SAP Cloud Identity Services
SAP Architecture Center, SAP Architecture CenterThe reasoningA reference
nothing recorded
Lets Talk to the Database - CAP & SQLite Powered by Google Gemini-2.5-Pro
SAP Community, ShivamShuklaSAPThe reasoning
nothing recorded
SAP CAP With Prostgres Serice in BTP
SAP Community, satya-dev
nothing recorded
Using HANA Cloud’s "VECTOR_EMBEDDING" Function in CAP
SAP Community, Mio YasutakeThe reasoningRunnable code
nothing recorded
Configure Journal Entry Posting Approval from Store Template in Build Process Automation
SAP Community, SaranyaSampath
nothing recorded
SAP CAP Lessons Learned: SQLite is single threaded, HANA is not
SAP Community, LucasMagriniRigo
nothing recorded
SAP CAP Lessons Learned: Run a CAP app using SQLite on SAP BTP - Cloud Foundry
SAP Community, LucasMagriniRigoThe reasoning
nothing recorded
CAP-JAVA implementation for Authorization Management Service (AMS)
SAP Community, Harvey_Yao
nothing recorded
Enabling Authorization Policies in SAP Cloud Identity Services - IAS with AMS/CAP
SAP Community, YoganandaThe reasoningA recipe
Core changed
Microsoft Sentinel for SAP goes agentless
SAP Community, Martin Pankraz
nothing recorded
CAP for nodejs安全的暴露接口练习
SAP Community, ArthurYang
nothing recorded
Authorization Management Service in SAP Cloud Identity Service
SAP Community, kevin_liThe reasoning
nothing recorded
XSUAA Local Testing
SAP Community, ManasaManuThe reasoningA recipeRunnable code
Core changed
Configure an SAP CAP Application to Connect to an SAP HANA Cloud Database in Another Global Account or Subaccount
SAP Community, JhoelAnthonyRamosRomeroPEThe reasoning
nothing recorded
SQLite as database for a multi-target (/productive) CAP Application
SAP Community, Christopher_KetzlerThe reasoningA recipeRunnable code
Core changed
Using Postgresql Database in Cloud Application Programming model
SAP Community, Arun KrishnamoorthyThe reasoningA recipeRunnable code
Core changed
Sharing SAP HANA Cloud instance to multiple subaccounts and creating HDI containers
SAP Community, Kazuhiko TakataThe reasoningRunnable code
Core changed
2024/01最新版!Productivity Toolsを使ったCAPバックエンド開発②~HANA Cloud編~
SAP Community, takayuki_tanakaA recipe
Core changed
SAP CAP(Cloud Application Programming)开发框架概述
SAP Community, ArthurYang
nothing recorded
CAP PostgreSql setup local debugging using Docker - Part 2
SAP Community, ramonlee5A recipe
Core changed
Hey ABAP Cloud please let me save my data export to Azure Storage please🥺🙏- part 4
SAP Community, Martin Pankraz, part 4 of 4
nothing recorded
CAP with PostgreSQL DB alternate to HANA Cloud DB - Part 1
SAP Community, ramonlee5The reasoning
nothing recorded
Exposing Calculation View with Dynamic Client via OData API
SAP Community, Willem PardaensThe reasoningA recipeRunnable code
nothing recorded
Open Sourcing CAP – how to learn more or get involved
SAP Community, Fempel
nothing recorded
XSUAA Based Authentication - Using Managed Approuter
SAP Community, rahul_rajagopalThe reasoningA recipe
Core changed
XSUAA Based Authentication - Using Standalone Approuter
SAP Community, rahul_rajagopalThe reasoningA recipe
nothing recorded
Hybrid testing using PostgreSQL on SAP BTP, hyperscaler option
SAP Community, martinfrick
nothing recorded
SAP CAP (Java) with Amazon Aurora PostgreSQL
SAP Community, shanthakumar_krishnaswamyThe reasoningA recipeRunnable code
Core changed
SAP CAP (Java) with Azure Cosmos DB for PostgreSQL
SAP Community, shanthakumar_krishnaswamyThe reasoningA recipeRunnable code
Core changed
Run and Deploy SAP CAP (Java) with PostgreSQL using Official Database Adapter @cap-js/postgres
SAP Community, shanthakumar_krishnaswamyThe reasoningA recipeRunnable code
Version drift
Lets Deep dive into CAPM and HANA Cloud --> HANACap
SAP Community, shivamshukla12The reasoningRunnable code
Core changed
Run and Deploy SAP CAP (Node.js or Java) with PostgreSQL on SAP BTP Cloud Foundry
SAP Community, TiaXuThe reasoningA recipeRunnable code
Core changed
从BTP Launchpad里的sapui5应用里调用部署的CPI IFLOW
SAP Community, Jacky_Liu1
nothing recorded
CAP Service to Fetch + Create Sales Order in S4 HANA Public Cloud
SAP Community, Mujeeb
nothing recorded
SAP BTP Destinations in a Nutshell Part 1 - Motivation & NoAuthentication Destinations
SAP Community, JakobFra
nothing recorded
SAP SuccessFactors extensibility easy with SAP BTP, Kyma runtime
SAP Community, quovadisThe reasoningRunnable code
nothing recorded
Run and Deploy SAP CAP (Java) with PostgreSQL on SAP BTP Cloud Foundry
SAP Community, shanthakumar_krishnaswamyThe reasoningRunnable code
1 stale part
Connecting On Premise Mail Destination and Sending Email Using SAP Cloud SDK JavaScript Version 3 on SAP CAP
SAP Community, codebrokeradThe reasoningRunnable code
Core changed
Surviving and Thriving with the SAP Cloud Application Programming Model: Local development hurdles
SAP Community, maxstreifeneder
nothing recorded
[Part - 1] Enrich CAP based Services with Behaviors using Annotations
SAP Community, Ajit Kumar Panda
nothing recorded
[BTP HANA Cloud Database] : How to access HANA Cloud Database & HDI Container in BTP
SAP Community, showkath_naseemThe reasoningA recipeRunnable code
nothing recorded
SFSFとHANA Cloudを使用するCAPのアプリケーション開発
SAP Community, rasaiA recipeRunnable code
Core changed
SAP Job Scheduling Service + Cloud Application Programming Model application (CAP) + SAP Authorization and Trust Management Service (XSUAA)
SAP Community, former_member412792The reasoning
nothing recorded
BTP CAP : How to Connect to Remote Services Locally in CAP Application
SAP Community, showkath_naseemThe reasoning
nothing recorded
How to create an API to run a HANA Cloud Stored Procedure in Cloud Foundry
SAP Community, gonzalo_hernan_sendraThe reasoningRunnable code
Core changed
Architecting Complex Real Life Business Scenario on SAP BTP with ease [ Targeting Multiple backend S/4HANA Systems utilizing Principal Propagation ]
SAP Community, mohit_bansal3The reasoning
nothing recorded
Part2: Architecting Complex Real Life Business Scenario on SAP BTP with ease [ Targeting Multiple backend S/4HANA Systems utilizing Principal Propagation ]
SAP Community, mohit_bansal3, part 2 of 3The reasoning
nothing recorded
Part 3: Architecting Complex Real Life Business Scenario on SAP BTP with ease [ Targeting Multiple backend S/4HANA Systems utilizing Principal Propagation ]
SAP Community, mohit_bansal3, part 3 of 3The reasoningA recipe
Core changed
Upload data from excel in CAP (Node.js)
SAP Community, KM11Runnable code
Core changed
Distributed Resiliency of SAP CAP applications using SAP HANA Cloud (Multi-Zone Replication)
SAP Community, shanthakumar_krishnaswamyThe reasoning
nothing recorded
HTML5.Timeout for CAP destinations in mta.yaml longer than default
SAP Community, NilsJanen
nothing recorded
加速开发和部署的CAP CDS和Fiori一些实用命令
SAP Community, TiaXuThe reasoningA recipeRunnable code
Core changed
Qualtrics integration with domain based authorization in CAP project on HANA cloud
SAP Community, former_member69893The reasoningRunnable code
Core changed
An approach to secure multiple integrated SAP CAP java applications with a common XSUAA service instance
SAP Community, sreanik_dhanyakumar2The reasoning
nothing recorded
SAP Business Technology Platform: Authorization and Trust Management Service
SAP Community, SekhuteTK
nothing recorded
Testing your CAP HANA Artifacts with jest – including multitenancy, hdbprocedure and hdbview
SAP Community, TristanThe reasoningA recipeRunnable code
Core changed
Invoke OpenAPI-documented APIs remotely with SAP Cloud Application Programming Model
SAP Community, wittroThe reasoningRunnable code
Core changed
How I migrated my on-prem xsa cds3+hana solution to cds6+sqlite
SAP Community, alex_myakinkiiThe reasoningRunnable code
Core changed
How to get authenticated user information with CAP in three different ways – Using the XSUAA API
SAP Community, ale_biagiThe reasoning
nothing recorded
Why developers should care about credential-types for xsuaa?
SAP Community, former_member2839The reasoningA recipeRunnable code
Core changed
Execute [OAuth2 client credentials] protected REST request with SAP CAP Application
SAP Community, LachmishThe reasoningA recipe
Core changed
Extend SAP SuccessFactors on SAP BTP with CAP - Deploy to SAP HANA Cloud
SAP Community, ale_biagiThe reasoning
nothing recorded
Extend SAP SuccessFactors on SAP BTP with CAP - Import SAP SuccessFactors OData Services definitions
SAP Community, Alessandro Biagi
nothing recorded
Insights of Cloud SDK, CAP, XSUAA, SSH and other BTP topics from 2021
SAP Community, dr_vupThe reasoning
nothing recorded
Create a Business Service using CDS, Node.js, SQLite and a OData service
SAP Community, raybantonThe reasoningA recipeRunnable code
Core changed
Deploying CAP services with the in-memory SQLite database
SAP Community, liam_mischewskiThe reasoning
nothing recorded
SAP CAP Remote Services & SAP Fiori Elements
SAP Community, Former MemberThe reasoningA recipeRunnable code
Core changed
cds deploy to sqlite in-memory database
SAP Community, AndrewBarnard
nothing recorded
Simple steps to deploy your CAP project to HANA cloud
SAP Community, OmPrakashJhaThe reasoning
nothing recorded
SAP BTP Showcase - Use SAP Cloud Application Programming to do Native Development on HANA Cloud
SAP Community, former_member271284The reasoningA recipeRunnable code
Core changed
SAP BTP Showcase – SAP Continuous Integration and Delivery (SAP CI&D) for SAP HANA Cloud
SAP Community, gcalixtosThe reasoningRunnable code
Core changed
SAP Business Application Studio – Using SAP HANA Tools with SAP Cloud Application Programming Model projects
SAP Community, Former MemberThe reasoningA recipeRunnable code
Core changed
My Learnings in SAP-CAP Using MongoDB
SAP Community, krish469The reasoningRunnable code
Gone quiet
SAP Cloud Application Programming Model(CAP):概要およびデモ - Part 1
SAP Community, rasai, part 1 of 2
nothing recorded
Part 2: How to build an extension application for SAP S/4HANA Cloud using CAP, SAP Cloud SDK and SAP Fiori elements
SAP Community, former_member748, part 2 of 2The reasoningA recipeRunnable code
Core changed
First Java Cap Application
SAP Community, bruce_wang3
nothing recorded
Part 1: How to build an extension application for SAP S/4HANA Cloud using CAP, SAP Cloud SDK and SAP Fiori elements
SAP Community, former_member748, part 1 of 2The reasoningA recipeRunnable code
Core changed
Run and Deploy CAP with PostgreSQL on SAP BTP Cloud Foundry (Node.js)
SAP Community, Mike ZaschkaThe reasoningRunnable code
1 stale part
Getting started with CAP on PostgreSQL (Node.js)
SAP Community, Mike ZaschkaThe reasoningRunnable code
1 stale part
PostgreSQL persistence adapter for CAP (Node.js)
SAP Community, Volker BuzekThe reasoningRunnable code
Superseded
cf-create-app: Create End-to-End apps and deploy to Cloud Foundry in minutes
SAP Community, former_member604013The reasoningA recipeRunnable code
Core changed
How to Access On-premise OData from the Business Application Studio - CAPM Development
SAP Community, laszlo_kajan2The reasoningA recipeRunnable code
Core changed
Use SCP CF Destination service in NodeJs locally
SAP Community, WouterLemaireThe reasoningRunnable code
Core changed
Understanding security approaches in SAP CAP using XSUAA in node.js flavor and MTA.
SAP Community, balbinosoaresThe reasoningA recipeRunnable code
Core changed
Using Postman for API Testing with XSUAA
SAP Community, mariusobertThe reasoningRunnable code
nothing recorded
SAP Cloud Application Programming Model: Deep Insert (5) Consume Remote Service with SAP Cloud SDK
SAP Community, CarlosRogganThe reasoningRunnable code
Core changed
SAP Cloud Application Programming Model: Deep Insert (4) Consume Remote Service
SAP Community, CarlosRogganThe reasoningA recipeRunnable code
Core changed
How SAP secures enterprise AI agents with identity propagation
SAP TechEd — session catalogue, Gunnar KoscheThe reasoning
nothing recorded
Use SAP HANA as the Database for a CAP Java Application
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
Consume Remote Services in a Full-Stack CAP Application
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
Extend SAP SuccessFactors on SAP BTP with the SAP Cloud Application Programming Model
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
Consume SOAP Web Services in SAP Cloud Application Programming Model
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
Use the SAP Cloud SDK in the SAP Cloud Application Programming Model
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded

Details

Graph6 edges
POINTS OUT →
explainsAuthorizationcapability, core and community
explainsDatabase connectorscapability, core and community
explainsGeneratorscapability, core and community
explainsDestinationscapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communitycap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History2
  • explains → applies_to on capability:authorization (cap, btp); capability:database-connectors (cap, btp); capability:generators (cap, ui5); capability:destinations (cap, btp)Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md).
  • Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
Ref
content:useful-cap-cds-and-fiori-commands-to-accelerate-development-and-deployment
JSON
/content/useful-cap-cds-and-fiori-commands-to-accelerate-development-and-deployment.json
MCP
Connecting an agent