8.6 KiB
SAP BTP Job Scheduling Service - Integration Guide
Source: https://github.com/SAP-docs/sap-btp-job-scheduling-service/tree/main/docs Last Updated: 2025-11-22
Table of Contents
Integration Overview
SAP Job Scheduling Service integrates with two SAP solutions:
| Integration | Purpose | Availability |
|---|---|---|
| SAP Cloud ALM | Job monitoring and automation | Cloud Foundry & Kyma |
| SAP Alert Notification Service | Event notifications | Cloud Foundry only |
SAP Cloud ALM Integration
Overview
Integration enables monitoring of jobs managed by SAP Job Scheduling service within SAP Cloud ALM. Once activated, all events related to a job and its schedules are visible within SAP Cloud ALM.
Prerequisites
- SAP Cloud ALM instance configured
- Job & Automation Monitoring enabled
- Refer to SAP Cloud ALM Job Monitoring Setup
Enable via Dashboard
Method 1: Actions Column Toggle
- Open Job Scheduling service dashboard
- Navigate to Jobs or Tasks
- Find the job in the list
- Toggle the Cloud ALM switch in the Actions column
- Save changes
Method 2: During Job/Task Creation
- Create new job or task
- Enable Cloud ALM monitoring in creation form
- Complete job creation
Method 3: Edit View
- Select existing job
- Click Edit
- Enable Cloud ALM monitoring toggle
- Save changes
Enable via REST API
During Job Creation:
POST /scheduler/jobs
{
"name": "monitoredJob",
"description": "Job with Cloud ALM monitoring",
"action": "[https://myapp.../api/process",](https://myapp.../api/process",)
"active": true,
"httpMethod": "POST",
"calmConfig": {
"enabled": true
},
"schedules": [{
"active": true,
"repeatInterval": "1 hour"
}]
}
Update Existing Job:
PUT /scheduler/jobs/{jobId}
{
"calmConfig": {
"enabled": true
}
}
Configuration Notes
- CF tasks cannot be created via REST API due to application-specific binding
calmConfigobject cannot be empty if providedenabledmust be boolean type
Status Display Comparison
| Job Scheduling Display | Cloud ALM Display |
|---|---|
| Status + State (single column) | Execution Status + Application Status (separate) |
Status Mapping
| Job Scheduling | Cloud ALM Execution Status | Cloud ALM Application Status |
|---|---|---|
| SCHEDULED | Scheduled | - |
| TRIGGERED | Running | - |
| SUCCESS | Completed | Success |
| ERROR | Completed | Error |
| UNKNOWN | Unknown | Unknown |
SAP Alert Notification Service Integration
Overview
Integration allows jobs and tasks to trigger event notifications through SAP Alert Notification service upon completion, supporting both success and error scenarios.
Benefits
| Benefit | Description |
|---|---|
| Proactive Monitoring | Immediate alerts for job outcomes |
| Operational Efficiency | Automatic recovery process initiation |
| Team Notification | Alert relevant stakeholders |
| Status Tracking | Track success, errors, timeouts, failures |
Availability
Supported: Cloud Foundry runtime only
Not Supported: Kyma runtime
Prerequisites
- SAP Alert Notification service enabled in subaccount
- Alert Notification service instance created
- Event types configured:
JobSchedulerJobExecutionJobSchedulerTaskExecution
Setup Steps
Step 1: Create Alert Notification Instance
- Navigate to Services → Instances and Subscriptions
- Create new Alert Notification service instance
- Open service instance dashboard
Step 2: Configure Actions
- In Alert Notification dashboard, go to Actions
- Create action (e.g., Email, Webhook)
- Configure action parameters
Step 3: Configure Conditions
- Go to Conditions
- Create condition for job events
- Set event type filter:
JobSchedulerJobExecutionfor jobsJobSchedulerTaskExecutionfor CF tasks
Step 4: Configure Subscriptions
- Go to Subscriptions
- Create subscription linking condition to action
- Activate subscription
Enable via Dashboard
During Job Creation:
- Create new job in Job Scheduling dashboard
- Under SAP Alert Notification Service Events:
- Toggle Success for success notifications
- Toggle Error for error notifications
- Save job
For Existing Jobs:
- Select job in dashboard
- Click Edit
- Enable notification toggles
- Save changes
Enable via REST API
During Job Creation:
POST /scheduler/jobs
{
"name": "alertedJob",
"description": "Job with alert notifications",
"action": "[https://myapp.../api/process",](https://myapp.../api/process",)
"active": true,
"httpMethod": "POST",
"ansConfig": {
"onSuccess": true,
"onError": true
},
"schedules": [{
"active": true,
"cron": "* * * * 9 0 0"
}]
}
Update Existing Job:
PUT /scheduler/jobs/{jobId}
{
"ansConfig": {
"onSuccess": false,
"onError": true
}
}
ansConfig Parameters
| Parameter | Type | Description |
|---|---|---|
| onSuccess | boolean | Send notification on successful execution |
| onError | boolean | Send notification on failed execution |
Event Types
| Event Type | Triggered By |
|---|---|
JobSchedulerJobExecution |
HTTP endpoint job completion |
JobSchedulerTaskExecution |
Cloud Foundry task completion |
Alert Events Include
- Job name and ID
- Schedule ID
- Execution status (Success/Error)
- Timestamp
- Error details (for failures)
Testing Integration
- Open Job Scheduling dashboard
- Select Jobs
- Create test job with:
- All required fields
- Error or Success toggle enabled
- One-time schedule with
"time": "now"
- Save and execute job
- Verify:
- Job execution in run logs
- Notification received via configured action
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| No notifications | Event type not configured | Add event types in ANS dashboard |
| Wrong recipients | Action misconfigured | Review action configuration |
| Delayed notifications | ANS processing time | Normal, check ANS logs |
| Missing events | ansConfig not set | Update job with ansConfig |
Integration Configuration Summary
REST API Parameters
| Integration | Parameter | Structure |
|---|---|---|
| SAP Cloud ALM | calmConfig |
{ "enabled": boolean } |
| Alert Notification | ansConfig |
{ "onSuccess": boolean, "onError": boolean } |
Dashboard Options
| Integration | Location | Options |
|---|---|---|
| SAP Cloud ALM | Actions column / Edit view | Toggle on/off |
| Alert Notification | SAP Alert Notification Service Events | Success toggle, Error toggle |
Compatibility Matrix
| Feature | Cloud Foundry | Kyma |
|---|---|---|
| SAP Cloud ALM | Yes | Yes |
| Alert Notification | Yes | No |
External References
SAP Documentation
- Integration Scenarios: https://help.sap.com/docs/job-scheduling/sap-job-scheduling-service/integration-scenarios
- SAP Cloud ALM Integration: https://help.sap.com/docs/job-scheduling/sap-job-scheduling-service/integration-with-sap-cloud-alm
- Alert Notification Integration: https://help.sap.com/docs/job-scheduling/sap-job-scheduling-service/integration-with-sap-alert-notification-service-for-sap-btp
- SAP Cloud ALM Job Monitoring: https://support.sap.com/en/alm/sap-cloud-alm/operations/expert-portal/job-monitoring/job-automation-monitoring-details.html
Source Files
integration-scenarios-faeec3a.mdintegration-with-sap-cloud-alm-f82790e.mdintegration-with-sap-alert-notification-service-for-sap-btp-972ef35.md