capire/incidents-app
The Incident Management reference application — the one SAP's own tutorial paths build, step by step, and the model cds add incidents-sample drops into a project.
Creating and processing incidents for registered customers: bigger than the bookshop and shaped like an application rather than a demonstration, which is why the Developer's Guide path uses it rather than the primer.
Facts
Where it sits
Who is behind it
In the atlas: maintains 20, wrote 1@capiremaintaineramitsahu01Contributes to this
In the atlas: contributes to 2@amitsahu01Christian GeorgiContributes to this
In the atlas: maintains 1, contributes to 53@chgeoDaniel HutzelContributes to this
In the atlas: contributes to 32, wrote 3@danjoaDaniel SchlachterContributes to this
In the atlas: contributes to 10, wrote 9@DanSchlachterecklieContributes to this
In the atlas: contributes to 7@eckliegopalanand3Contributes to this
In the atlas: contributes to 1@gopalanand3Gopal AnandContributes to this
In the atlas: contributes to 5@gopalanand333Heiko WitteborgContributes to this
In the atlas: contributes to 18@hm23Johannes VogelContributes to this
In the atlas: contributes to 25@johannes-vogelMara Nikola KieferContributes to this
In the atlas: contributes to 5@mnkiefer18 contributors
What it declares
Every artifact
- Type
- Sample
- Origin
- By SAP
As a sample
- Form
- does not say
Connections
Describing a service so a Fiori client renders it without UI code
Whole applications to read rather than snippets to copy
Download
Learn more
- CAP in the age of AI #6 - vector embeddingsCAP in the age of AI #6 - vector embeddingsVector embeddings put to work in the incident management sample, answering whether this problem has been seen before. An embedding element of type Vector is calculated and stored from the vector_embedding function, so the database refreshes it whenever the text behind it changes, and cosine_similarity compares it with a freshly embedded string; because a title says little, a scheduled action first summarises each incident's conversation through a model on SAP AI Core and the embedding is taken from that summary. The similar-incidents list is a view joining incidents to themselves, with order and limit set in a before handler on the expanded query, and the vector element excluded from the service, since OData knows nothing about vectors — on SAP HANA Cloud the function is native, while SQLite needs packages added to the project.published 2026-10-09DJ Adams, Johannes Vogt, Daniel Schlachter, YouTube — SAP Developers playlists
README
quoted from capire/incidents-app under Apache-2.0, readIncident Management – CAP Reference Application
Welcome to the Incident Management reference sample application for the SAP Cloud Application Programming Model (CAP).
The application allows to create and process incidents on behalf of registered customers with the basic domain model is depicted below.
Setup
Assumed you prepared for CAP development as documented in capire's Initial Setup section, ...
Clone the repository and install dependencies:
git clone https://github.com/capire/incidents
cd incidents
npm install
Run
Run the application locally:
cds watch
Then open http://localhost:4004 and navigate to /incidents/webapp.
(for testing with authorization, copy the file xmpls/authorizations.cds into the srv folder. Then, login as alice, no password required).
Troubleshooting
If you get a 403 Forbidden Error and the logon popup doesn't show, try to open a browser in an incognito mode or clear the browser cache.Test
Run enclosed tests with:
npm test
Add plugins
If you want to use the Incidents App with CAP plugins like Change Tracking, Attachment Handling etc. have a look at the readme file in the xmpls folder.
Deploy
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:capire-incidents-app- JSON
- /artifacts/capire-incidents-app.json
- MCP
- Connecting an agent