Skip to content Skip to content
Vladimir Chavkov

SAP Cloud Application Programming Model (CAP)

Master SAP’s Cloud Application Programming Model (CAP) in this 4-day hands-on training. Learn to build full-stack enterprise applications using CDS for data modeling and service definitions, implement business logic with Node.js or Java, create OData and REST APIs, and deploy production-ready applications on SAP BTP.

Duration4 days (32 hours)
LevelIntermediate
DeliveryIn-person, Live online, Hybrid
  • Developers building enterprise applications on SAP BTP
  • Full-stack developers learning the CAP framework
  • Teams adopting CAP for new SAP projects
  • Architects evaluating CAP for application development
  • SAP developers transitioning from ABAP to cloud-native

After completing this training, participants will be able to:

  • Design domain models and service definitions using CDS
  • Build OData V4 and REST APIs with CAP
  • Implement custom event handlers and business logic
  • Integrate with SAP HANA Cloud and external services
  • Configure authentication, authorization, and multitenancy
  • Deploy CAP applications to Cloud Foundry

Module 1: CAP Overview and Setup

  • CAP philosophy and architecture
  • Project scaffolding with cds init
  • Project structure and conventions
  • cds watch for local development
  • Hands-on: Create a CAP project and explore the development workflow

Module 2: CDS Domain Modeling

  • Entity definitions and data types
  • Associations and compositions
  • Aspects for reuse (managed, temporal, cuid)
  • Annotations for UI, validation, and authorization
  • Hands-on: Model a complete business domain

Module 3: CDS Service Definitions

  • Service definitions and projections
  • OData V4 service exposure
  • REST service endpoints
  • Actions and functions
  • Hands-on: Define and test services with mock data

Module 4: Event Handlers (Node.js)

  • Request lifecycle and event phases
  • BEFORE, ON, and AFTER handlers
  • CQL (CDS Query Language) for data access
  • Transaction management
  • Hands-on: Implement CRUD handlers with business validation

Module 5: Advanced Business Logic

  • Custom actions and functions
  • Draft-enabled applications
  • Messaging and events
  • Asynchronous processing
  • Hands-on: Build a draft-enabled application with custom actions

Module 6: Database Integration

  • SAP HANA Cloud deployment
  • SQLite for local development
  • Database-specific features and native queries
  • Data import (CSV, JSON)
  • Hands-on: Deploy to HANA Cloud with initial data

Day 3: UI Integration, Security, and External Services

Section titled “Day 3: UI Integration, Security, and External Services”

Module 7: SAP Fiori Elements Integration

  • CDS annotations for Fiori Elements
  • List reports, object pages, and worklists
  • Value helps and field controls
  • Custom pages and extensions
  • Hands-on: Build a Fiori Elements app with annotations

Module 8: Authentication and Authorization

  • XSUAA integration with CAP
  • @requires and @restrict annotations
  • Role-based access control
  • Instance-based authorization
  • Hands-on: Secure a CAP application with roles and scopes

Module 9: External Service Integration

  • Consuming external OData services
  • REST API integration
  • Service mashups and delegated queries
  • Error handling for remote calls
  • Hands-on: Integrate an external API into a CAP application

Day 4: Production Readiness and Deployment

Section titled “Day 4: Production Readiness and Deployment”

Module 10: Multitenancy

  • SaaS enablement with CAP
  • Tenant provisioning and lifecycle
  • Tenant-aware data isolation
  • MTX (Multitenancy Extension) services
  • Hands-on: Enable multitenancy for a CAP application

Module 11: Testing and Quality

  • Unit testing with cds.test
  • Integration testing with Jest/Mocha
  • API testing strategies
  • Code quality and linting
  • Hands-on: Write comprehensive tests for a CAP application

Module 12: Deployment and Capstone

  • MTA build and deployment
  • Helm chart deployment to Kyma
  • CI/CD pipeline integration
  • Production monitoring and logging
  • Capstone: Deploy a full-stack CAP application to production
  • SAP BTP Fundamentals training or equivalent experience
  • Proficiency in Node.js or Java
  • Basic understanding of REST APIs and OData
  • Familiarity with SQL and relational databases
FormatDescription
In-PersonOn-site at your company’s location, hands-on with direct interaction
Live OnlineInteractive virtual sessions with screen sharing and real-time labs
HybridCombination of on-site and remote sessions, flexible scheduling

All formats include hands-on labs, course materials, and post-training support.