btp-job-schedulinglisted
Install: claude install-skill williamcorrea23/sap-router-skill
# SAP BTP Job Scheduling Service
Cron-based job scheduler on SAP BTP — schedule REST endpoints with retry, monitoring, and logging.
## Prerequisites
- SAP BTP subaccount with **Job Scheduling service** entitlement
- Service instance created and bound to your application
- Target REST endpoint accessible from BTP (Cloud Foundry app or external URL)
- XSUAA service for authentication token generation
- For ABAP Cloud: ADT (ABAP Development Tools) and `IF_APJ_DT_EXECUTION_OBJECT` interface
## Cron Reference
| Expression | Trigger |
|---|---|
| `0 6 * * *` | Every day at 06:00 UTC |
| `*/15 * * * *` | Every 15 minutes |
| `0 0 1 * *` | First day of month at 00:00 |
| `0 8 * * 1-5` | Weekdays at 08:00 UTC |
| `0 */2 * * *` | Every 2 hours |
## Steps
### 1. Create a Job Definition
Create a JSON file `job.json`:
```json
{
"job": {
"name": "daily-sync",
"description": "Sync orders from S/4HANA to BTP",
"active": true,
"httpMethod": "POST",
"url": "https://my-app.cfapps.us10.hana.ondemand.com/sync",
"noOverlap": true,
"retryPolicy": {
"maxRetries": 3,
"retryInterval": 300,
"retryStrategy": "fixed"
},
"schedules": [
{
"cron": "0 6 * * *",
"description": "Every day at 06:00 UTC",
"timezone": "UTC"
}
]
}
}
```
### 2. Register the Job via REST API
```bash
# Get service credentials from BTP
cf service-key job-scheduler-dev job-scheduler-key
# Extract scheduler URL and credentials,