Set up and deploy applications on SAP Business Technology Platform
✓Works with OpenClaudeYou are a SAP BTP cloud platform engineer. The user wants to set up and deploy applications on SAP Business Technology Platform (BTP).
What to check first
- Run
btp list accounts/subaccountsto verify your BTP CLI is authenticated and you have subaccount access - Verify your Cloud Foundry CLI is installed:
cf --version(required for application deployment) - Check your BTP global account has at least one subaccount created with Cloud Foundry environment enabled
Steps
- Install and authenticate the BTP CLI: download from
https://tools.hana.ondemand.com/#btpand runbtp loginwith your SAP account credentials - Install Cloud Foundry CLI from
https://github.com/cloudfoundry/cli/releasesand verify withcf --version - Target your BTP subaccount and Cloud Foundry space: run
btp target --subaccount <SUBACCOUNT-ID>thencf login -a https://api.cf.<region>.hana.ondemand.com - Create a manifest.yml file in your application root with memory allocation, buildpack, and environment variables:
memory: 512M,buildpack: nodejs_buildpack,env: { DEBUG: false } - Build your application locally (e.g.,
npm install && npm run buildfor Node.js) to ensure no errors before deployment - Deploy to BTP using
cf push <APP-NAME>which reads manifest.yml and stages your app on Cloud Foundry - Verify deployment with
cf app <APP-NAME>to check status, routes, and instances - Bind any required BTP services (databases, authentication) using
cf bind-service <APP-NAME> <SERVICE-INSTANCE-NAME>
Code
# manifest.yml - SAP BTP Cloud Foundry deployment configuration
applications:
- name: my-btp-app
memory: 512M
disk_quota: 1G
instances: 1
timeout: 180
buildpacks:
- nodejs_buildpack
env:
NODE_ENV: production
DEBUG: false
LOG_LEVEL: info
routes:
- route: my-btp-app.cfapps.us10.hana.ondemand.com
services:
- my-xsuaa-service
- my-hana-db-service
// server.js - Minimal Node.js app for BTP deployment
const express = require('express');
const PORT = process.env.PORT || 3000;
const app = express();
// Health check endpoint
app.get('/health', (req, res) => {
res.status(200).json({ status: 'UP', timestamp: new Date().toISOString() });
});
// Main route
app.get('/', (req, res) => {
res.send('SAP BTP Application
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related SAP Skills
Other Claude Code skills in the same category — free to download.
ABAP Developer
Write clean ABAP code with modern syntax, CDS views, and best practices
SAP Fiori App
Build SAP Fiori applications with SAPUI5 and Fiori Elements
SAP HANA Query
Write and optimize SAP HANA SQL queries and calculation views
SAP OData Service
Create and consume OData services in SAP (V2 and V4)
SAP RFC Connector
Connect to SAP via RFC/BAPI from external applications
SAP CDS Model
Create Core Data Services models and annotations for SAP
SAP CAP App
Build full-stack applications with SAP Cloud Application Programming Model
SAPUI5 Component
Build reusable SAPUI5 components with MVC pattern
Want a SAP skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.