plugins/sap-btp-best-practices/skills/sap-btp-best-practices/SKILL.md
SAP BTP best practices for enterprise architecture, account management, security, and operations, with verification evidence tracked in the repository ledger. 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
npx skillsauth add secondsky/sap-skills sap-btp-best-practicesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when designing a BTP account model, setting up governance, choosing commercial/environment patterns, establishing security and authentication defaults, designing CI/CD and operations practices, or reviewing a BTP landscape before implementation.
sap-btp-cloud-platform, sap-btp-connectivity, sap-btp-service-manager, sap-cap-capire, or sap-fiori-tools.last_verified.Documentation-audited SAP BTP implementation guidance based on official SAP documentation. The last_verified date remains stale until the source refresh and any live account checks are completed.
Quick Links:
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:
| Environment | Use Case | Key Features | |-------------|----------|--------------| | Cloud Foundry | Polyglot apps | Multiple buildpacks, spaces | | Kyma | Cloud-native K8s | Open-source, namespaces | | ABAP | ABAP extensions | RAP, cloud-ready ABAP | | Neo | Legacy | Migrate away - HTML5, Java, HANA XS |
Best Practice: Start with consumption-based, move to subscription for stable workloads.
Global Account
├── Dev Subaccount
├── Test Subaccount
└── Prod Subaccount
Best for: Initial implementations, single team, <3 projects
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
| Entity | Convention | Example |
|--------|------------|---------|
| Subaccount | Natural language | "HR Development" |
| Subdomain | Lowercase, hyphens | hr-dev-acme |
| CF Org | Company prefix | acme-hr-dev |
| CF Space | Consistent across stages | hr-recruiting |
Tip: Derive CF org/Kyma names from subaccount names for consistency.
Always use SAP Cloud Identity Services - Identity Authentication
Corporate IdP → Identity Authentication (proxy) → SAP BTP
Critical Steps:
| Method | Best For | Notes | |--------|----------|-------| | Provisioning | Production, many users | Centralized roles, automated offboarding | | Federation | Simple scenarios | Real-time sync, but doesn't scale well | | Manual | Testing only | Quick setup, not production-ready |
Recommended:
PrincipalPropagation - SAP on-premise systemsOAuth2SAMLBearerAssertion - Third-party systemsOAuth2JWTBearer - User token exchangeAvoid in Production:
BasicAuthenticationOAuth2PasswordSee: references/security-and-authentication.md for complete guidance
Note: Each subaccount needs separate Cloud Connector config.
Platform Engineering Team (Center of Excellence):
Cloud Development Teams:
SAP CAP (Cloud Application Programming Model):
ABAP Cloud:
SAP BTP provides AI capabilities through SAP AI Core for:
Key Resources:
Best Practices:
Use Cases: 20+ samples including chatbots, PDF extraction, procurement.
CAP + AI Integration Patterns:
@sap-ai-sdk/orchestration) inside CAP event handlers — never raw HTTP calls to LLM providersextended) — credentials are managed by BTP, not in code202 Accepted, process in background via cds.spawn. LLM responses can take 30-60 seconds, exceeding BTP load balancer timeoutsVector(1536) type in CDS entities for RAG scenarios with the HANA Vector EngineSee: references/ai-development-best-practices.md for patterns and examples. For CAP-specific code patterns, see sap-cap-capire skill. For SDK integration, see sap-cloud-sdk-ai skill.
Cloud Foundry/Neo:
Kyma:
SAP Continuous Integration and Delivery:
Project "Piper":
Best Practice: Combine CI/CD with SAP Cloud Transport Management for governance + agility.
See: references/deployment-and-delivery.md for detailed configs
Custom Domain URL
│
Load Balancer
├── Region 1 (active)
└── Region 2 (passive/active)
Four Core Principles:
Legal: Check cross-region data processing restrictions.
See: references/failover-and-resilience.md for implementation details
SAP Cloud ALM (Enterprise Support):
SAP Cloud Logging:
SAP Alert Notification:
This skill provides comprehensive reference documentation:
references/account-models.md (11K lines)
references/governance-and-teams.md (13K lines)
references/security-and-authentication.md (13K lines)
references/deployment-and-delivery.md (10K lines)
references/operations-and-monitoring.md (11K lines)
references/failover-and-resilience.md (12K lines)
references/templates-and-examples.md (18K lines)
references/ai-development-best-practices.md (6K lines)
| Tool | Use Case | |------|----------| | SAP BTP Cockpit | GUI for all admin tasks | | btp CLI | Terminal/automation scripting | | REST APIs | Programmatic administration | | Terraform Provider | Infrastructure as Code | | SAP Automation Pilot | Low-code/no-code automation |
SAP Manages:
kyma-system namespaceYou Manage:
Last Updated: 2026-06-16
Review Progress: See SAP_SKILLS_REVIEW_PROGRESS.md
Next Review: Source refresh pending; do not advance last_verified without primary-source evidence.
tools
Use when automating SAP BW query inspection, InfoProvider metadata reads (characteristics, key figures), metadata-verified specification review, unsaved draft preparation, or human-confirmed query draft population through Eclipse or HANA Studio with BW Modeling Tools.
tools
Use when an agent must inspect or operate an authenticated SAP web UI through an in-app Browser, Microsoft Edge CDP, or an existing Playwright client, especially when SAP SSO reuse, isolated Edge profiles, deterministic target selection, screenshots, or browser bootstrap recovery is required.
tools
Evidence-based assessment of whether an SAP API/interface usage scenario aligns with the SAP API Policy (v.4.2026a). Use whenever someone asks whether a way of calling SAP is allowed/compliant — e.g. Published API vs internal/private/"confidential" API status, "Documented Use", whether a third-party tool / iPaaS / middleware / RPA bot / AI agent / MCP server may call SAP APIs, agentic or generative-AI access to SAP, bulk data extraction or replication into a lake/warehouse, custom Z/Y OData or RFC/BAPI wrappers and Clean Core, ADT/developer-tooling boundaries, ODP-RFC and other "not permitted" interfaces, partner Integration Certification, or RISE integration remediation. Trigger even when the policy is not named, e.g. "are we allowed to…", "is it compliant to…", "can we connect X to SAP…", "will this break under the new API policy". Produces a sourced technical assessment with a confidence level — explicitly NOT legal advice and NOT a final SAP compliance decision.
development
SAP-RPT-1-OSS local tabular prediction workflows for FI/CO prototype datasets. Use when preparing SAP finance CSV exports for classification or regression experiments with source-verified setup, leakage checks, and governance review.