Agent SkillsAgent Skills
secondsky

sap-btp-best-practices

@secondsky/sap-btp-best-practices
secondsky
185
45 forks
Updated 4/6/2026
View on GitHub

Production-ready SAP BTP best practices for enterprise architecture, account management, security, and operations. Use when planning BTP implementations, setting up account hierarchies, configuring environments, implementing authentication, designing CI/CD pipelines, establishing governance, building Platform Engineering teams, implementing failover strategies, or managing application lifecycle on SAP BTP. Keywords: SAP BTP, account hierarchy, global account, directory, subaccount, Cloud Foundry, Kyma, ABAP, SAP Identity Authentication, CI/CD, governance, Platform Engineering, failover, multi-region, SAP BTP best practices

Installation

$npx agent-skills-cli install @secondsky/sap-btp-best-practices
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Pathplugins/sap-btp-best-practices/skills/sap-btp-best-practices/SKILL.md
Branchmain
Scoped Name@secondsky/sap-btp-best-practices

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

npx agent-skills-cli list

Skill Instructions


name: sap-btp-best-practices description: | Production-ready SAP BTP best practices for enterprise architecture, account management, security, and operations. Use when planning BTP implementations, setting up account hierarchies, configuring environments, implementing authentication, designing CI/CD pipelines, establishing governance, building Platform Engineering teams, implementing failover strategies, or managing application lifecycle on SAP BTP.

Keywords: SAP BTP, account hierarchy, global account, directory, subaccount, Cloud Foundry, Kyma, ABAP, SAP Identity Authentication, CI/CD, governance, Platform Engineering, failover, multi-region, SAP BTP best practices license: GPL-3.0 metadata: version: "1.3.0" last_verified: "2025-11-27"

SAP BTP Best Practices

Related Skills

  • sap-btp-cloud-platform: Use for technical implementation details, CLI commands, and runtime configurations
  • sap-btp-connectivity: Use for connectivity patterns, destination configuration, and Cloud Connector setup
  • sap-btp-service-manager: Use for service lifecycle management and programmatic service operations
  • sap-btp-developer-guide: Use for development workflows, CAP integration, and application patterns
  • sap-cap-capire: Use when designing CAP applications on BTP or implementing multitenancy
  • sap-fiori-tools: Use for UI deployment strategies and frontend application guidelines

Production-ready SAP BTP implementation guidance based on official SAP documentation.

Quick Links:


Table of Contents

  1. Platform Fundamentals
  2. Account Model Setup
  3. Security and Authentication
  4. Connectivity
  5. Governance and Teams
  6. Development
  7. AI Development
  8. Deployment and Delivery
  9. High Availability and Failover
  10. Operations and Monitoring
  11. Cost Management
  12. Bundled Resources

Platform Fundamentals

Account Hierarchy

Global Account (SAP contract)
β”œβ”€β”€ Directory (optional, up to 7 levels)
β”‚   └── Subaccount (region-specific, apps run here)
β”‚       β”œβ”€β”€ Cloud Foundry Org β†’ Spaces
β”‚       └── Kyma Cluster β†’ Namespaces
└── Subaccount

Key Points:

  • Global account = contract with SAP (one per commercial model)
  • Directory = groups subaccounts (max 7 levels deep)
  • Subaccount = deployed in specific region, enables runtimes
  • Use labels for virtual grouping (Dev/Test/Prod, cost centers)

Environments

EnvironmentUse CaseKey Features
Cloud FoundryPolyglot appsMultiple buildpacks, spaces
KymaCloud-native K8sOpen-source, namespaces
ABAPABAP extensionsRAP, cloud-ready ABAP
NeoLegacyMigrate away - HTML5, Java, HANA XS

Commercial Models

  • Consumption-Based (BTPEA/CPEA): Flexible access, best for pilots
  • Subscription-Based: Fixed-cost for known service needs

Best Practice: Start with consumption-based, move to subscription for stable workloads.


Account Model Setup

Simple Model (3 subaccounts)

Global Account
β”œβ”€β”€ Dev Subaccount
β”œβ”€β”€ Test Subaccount
└── Prod Subaccount

Best for: Initial implementations, single team, <3 projects

Directory Model (scalable)

Global Account
β”œβ”€β”€ Directory: HR
β”‚   β”œβ”€β”€ hr-dev / hr-test / hr-prod
β”œβ”€β”€ Directory: Sales
β”‚   β”œβ”€β”€ sales-dev / sales-test / sales-prod
└── Directory: Central IT
    β”œβ”€β”€ api-management
    └── shared-services

Best for: Multiple teams, cost allocation, complex governance

Naming Conventions

EntityConventionExample
SubaccountNatural language"HR Development"
SubdomainLowercase, hyphenshr-dev-acme
CF OrgCompany prefixacme-hr-dev
CF SpaceConsistent across stageshr-recruiting

Tip: Derive CF org/Kyma names from subaccount names for consistency.


Security and Authentication

Identity Provider Setup

Always use SAP Cloud Identity Services - Identity Authentication

Corporate IdP β†’ Identity Authentication (proxy) β†’ SAP BTP

Critical Steps:

  1. Add multiple administrators (different time zones)
  2. Enable MFA for all admins
  3. Configure security alerts
  4. Set up backup admins in SAP ID Service

Authorization Methods

MethodBest ForNotes
ProvisioningProduction, many usersCentralized roles, automated offboarding
FederationSimple scenariosReal-time sync, but doesn't scale well
ManualTesting onlyQuick setup, not production-ready

Destination Authentication

Recommended:

  • PrincipalPropagation - SAP on-premise systems
  • OAuth2SAMLBearerAssertion - Third-party systems
  • OAuth2JWTBearer - User token exchange

Avoid in Production:

  • BasicAuthentication
  • OAuth2Password

See: references/security-and-authentication.md for complete guidance


Connectivity

Remote System Access

  • Internet Services: Destinations with authentication
  • On-Premise Systems: Destinations + Cloud Connector

Cloud Connector

  • Lightweight on-premise agent
  • Secure tunnel to SAP BTP (no inbound ports)
  • Fine-grained access control
  • Supports RFC and HTTP protocols
  • Enables principal propagation

Note: Each subaccount needs separate Cloud Connector config.


Governance and Teams

Required Teams

Platform Engineering Team (Center of Excellence):

  • Manages cloud landscape infrastructure
  • Handles account operations, build infrastructure
  • Creates governance and compliance guidelines
  • Does NOT manage individual application lifecycles

Cloud Development Teams:

  • Follow DevOps (develop AND operate)
  • Responsible for application lifecycle
  • Regular maintenance (e.g., UI updates every 6 months)

Essential Documentation

  1. Onboarding Doc: Organization, app IDs, timeline, tech stack
  2. Security Doc: Data sensitivity, policies, auth framework
  3. Services Catalog: Templates for destinations, builds, schemas

Development

Programming Models

SAP CAP (Cloud Application Programming Model):

  • Framework with languages, libraries, tools
  • Supports Java, JavaScript, TypeScript
  • Enterprise-grade services and data models

ABAP Cloud:

  • Modern ABAP for cloud-ready apps
  • RAP (RESTful ABAP Programming Model)
  • Extensions for ABAP-based products

Development Lifecycle

  1. Explore: Business opportunity, team roles
  2. Discover: Use cases, technology options
  3. Design: UX design, domain-driven design
  4. Deliver: Landscape setup, development
  5. Run and Scale: Feedback, optimization

AI Development

SAP BTP provides AI capabilities through SAP AI Core for:

  • Generative AI (LLMs, RAG)
  • Narrow AI (classical ML)

Key Resources:

Best Practices:

  • Use service keys for secure authentication
  • Implement PII data masking
  • Build RAG with SAP HANA Cloud Vector Engine
  • Configure content filtering
  • Monitor model drift

Use Cases: 20+ samples including chatbots, PDF extraction, procurement.

See: references/ai-development-best-practices.md for patterns and examples


Deployment and Delivery

Deployment Methods

Cloud Foundry/Neo:

  • Package as MTA archive
  • Deploy via: BTP Cockpit, CF CLI, Business Application Studio

Kyma:

  • Docker images (Dockerfile or Cloud Native Buildpacks)
  • Helm charts for production
  • Deploy via SAP Continuous Integration and Delivery

CI/CD Approaches

SAP Continuous Integration and Delivery:

  • Low expertise required
  • Ready-to-use infrastructure
  • Direct SAP support

Project "Piper":

  • High expertise required
  • Jenkins-based
  • Open-source community support

Best Practice: Combine CI/CD with SAP Cloud Transport Management for governance + agility.

See: references/deployment-and-delivery.md for detailed configs


High Availability and Failover

Multi-Region Architecture

Custom Domain URL
       β”‚
    Load Balancer
       β”œβ”€β”€ Region 1 (active)
       └── Region 2 (passive/active)

Failover Implementation

Four Core Principles:

  1. Deploy in Two Regions: Near users and backend systems
  2. Keep Synced: CI/CD pipeline or Cloud Transport Management
  3. Define Detection: Monitor 5xx errors, timeouts
  4. Plan Failback: Visual differentiation, user-driven

Legal: Check cross-region data processing restrictions.

See: references/failover-and-resilience.md for implementation details


Operations and Monitoring

Go-Live Checklist

  1. Deploy to production
  2. Set go-live timeframe (avoid quarter-end)
  3. Embed in SAP Fiori Launchpad
  4. Provision business users
  5. Configure role collections

Monitoring Tools

SAP Cloud ALM (Enterprise Support):

  • Real User Monitoring
  • Health Monitoring
  • Integration and Exception Monitoring
  • Job Automation Monitoring

SAP Cloud Logging:

  • Observability across CF, Kyma, Kubernetes

SAP Alert Notification:

  • Multi-channel notifications (email, chat, ticketing)

Cost Management

Best Practices

  1. Check Costs and Usage monthly
  2. Provide minimal required entitlements
  3. Use labels for cost allocation
  4. Set up automated alerts (Usage Data Management + Alert Notification)

Contract Strategies

  • Consolidate subscriptions in one global account
  • Use hybrid accounts for mixed workloads
  • Note: Consumption credits non-transferable between global accounts

Bundled Resources

This skill provides comprehensive reference documentation:

Account & Governance

  • references/account-models.md (11K lines)

    • Detailed account structure patterns
    • Naming conventions and examples
    • Cost allocation strategies
  • references/governance-and-teams.md (13K lines)

    • Platform Engineering team structure
    • Onboarding processes
    • Documentation templates

Security & Connectivity

  • references/security-and-authentication.md (13K lines)
    • Complete auth methods comparison
    • Destination configuration
    • Kyma RBAC manifests
    • Identity lifecycle management

Deployment & Operations

  • references/deployment-and-delivery.md (10K lines)

    • MTA descriptor templates
    • CI/CD pipeline configs
    • Transport management setup
  • references/operations-and-monitoring.md (11K lines)

    • Go-live procedures
    • Monitoring setup guides
    • Troubleshooting checklists

High Availability

  • references/failover-and-resilience.md (12K lines)
    • Multi-region architecture
    • Load balancer configurations
    • Failover automation scripts

Templates & Examples

  • references/templates-and-examples.md (18K lines)
    • Complete code templates
    • Kubernetes RBAC manifests
    • MTA descriptors
    • Helm charts
    • CI/CD configs

AI Development

  • references/ai-development-best-practices.md (6K lines)
    • Generative AI patterns
    • RAG implementation
    • 20+ use cases catalog

Progress Tracking

  • Implementation status
  • Coverage details
  • Validation checklists

Administration Tools

ToolUse Case
SAP BTP CockpitGUI for all admin tasks
btp CLITerminal/automation scripting
REST APIsProgrammatic administration
Terraform ProviderInfrastructure as Code
SAP Automation PilotLow-code/no-code automation

Shared Responsibility Model

SAP Manages:

  • Platform software updates/patches
  • Infrastructure and OS monitoring
  • BTP service monitoring
  • Capacity management and incidents
  • Global account provisioning
  • HANA database operations
  • Kyma kyma-system namespace

You Manage:

  • Global account strategy and subaccount config
  • Application development, deployment, security
  • Role assignments and integrations
  • Application monitoring and health checks
  • Open source vulnerability scanning
  • Triggering HANA revision updates

Last Updated: 2025-11-27 Review Progress: See SAP_SKILLS_REVIEW_PROGRESS.md Next Review: 2026-02-27 (quarterly)

More by secondsky

View all
sap-btp-build-work-zone-advanced
185

Develops and administers SAP Build Work Zone, advanced edition digital workplace solutions. Use when creating workspaces, workpages, and collaborative sites, developing UI Integration Cards in SAP Business Application Studio, building content packages and workspace templates, integrating with Microsoft 365/Teams/SharePoint/Google Drive, configuring chatbots and webhooks, implementing SCIM API user provisioning, setting up OData business records, managing themes and branding, configuring role-based access and SSO, troubleshooting deployment issues, or working with the Administration Console. Keywords: SAP Build Work Zone advanced edition, digital workplace, UI Integration Cards, content packages, workspace templates, SAP Business Application Studio, SAP Conversational AI, SCIM API, OData, Microsoft Teams integration, SSO, theming, Administration Console

sap-btp-business-application-studio
185

This skill provides comprehensive guidance for SAP Business Application Studio (BAS), the cloud-based IDE on SAP BTP built on Code-OSS. Use when setting up BAS subscriptions, creating dev spaces, connecting to external systems, deploying MTA applications, troubleshooting connectivity issues, managing Git repositories, configuring runtime versions, or using the layout editor. Keywords: SAP Business Application Studio, BAS, SAP BTP, dev space, Cloud Foundry, MTA, multitarget application, SAP Fiori, CAP, HANA, destination, WebIDEEnabled, Cloud Connector, Service Center, Storyboard, Layout Editor, ABAP, OData, subscription, entitlements, role collection, Business_Application_Studio_Developer, Git, clone, push, pull, Gerrit, PAT, OAuth, asdf, runtime, Node.js, Java, Python, Task Explorer, CI/CD, Yeoman, generator, template wizard, mbt, mtar, debugging, breakpoint

sap-api-style
185

This skill provides comprehensive guidance for documenting SAP APIs following the SAP API Style Guide standards. It should be used when creating or reviewing API documentation for REST, OData, Java, JavaScript, .NET, or C/C++ APIs. The skill covers naming conventions, documentation comments, OpenAPI specifications, quality checklists, deprecation policies, and manual documentation templates. It ensures consistency with SAP API Business Hub standards and industry best practices. Keywords: SAP API, REST, OData, OpenAPI, Swagger, Javadoc, JSDoc, XML documentation, API Business Hub, API naming, API deprecation, x-sap-stateInfo, Entity Data Model, EDM, documentation tags, API quality, API templates

sap-btp-cias
185

SAP BTP Cloud Integration Automation Service (CIAS) skill for guided integration workflows. Use when: setting up CIAS subscriptions, configuring destinations, assigning roles (CIASIntegrationAdministrator, CIASIntegrationExpert, CIASIntegrationMonitor), planning integration scenarios, working with My Inbox tasks, monitoring scenario execution, troubleshooting CIAS errors, creating OAuth2 instances, configuring identity providers for CIAS, understanding CIAS security architecture, or integrating SAP products (S/4HANA, SuccessFactors, BTP services, SAP Build, IBP).