Sub topic 15
Governance and lifecycle of extensions
This chapter assumes you know the clean core levels A to D, the difference between in-app, developer, and side-by-side extensions, and the decision framework from the previous chapter. Choosing the right approach once is not enough. Extensions live for years, while SAP S/4HANA Cloud releases, APIs change, and teams turn over. Governance keeps each extension at the level where you put it.
Why extensions drift
A side-by-side extension that starts at level A can degrade without anyone noticing. Common causes:
- A developer adds a call to an unreleased OData service because the released API lacks one field.
- A released API is deprecated and nobody reads the notice.
- The extension owner leaves the team and no one is responsible for it.
- Credentials in a BTP destination expire or are reused far beyond their original purpose.
What to govern
Track every extension in a register. Each entry records the facts you need to review it later.
| Field | Why it matters |
|---|---|
| Owner and team | Someone must answer for the extension and handle upgrade work. |
| Approach | In-app, developer, or side-by-side. |
| Clean core level | The A to D classification at approval time. |
| Consumed APIs and events | Shows exactly which contracts the extension depends on. |
| Destinations and authentication | Shows which systems and technical users are involved. |
| Last review date | Reveals extensions nobody has looked at for a long time. |
Checks at each stage
Apply different checks at design, build, and run time.
- Design: Confirm the requirement cannot be met by standard configuration. Check that every API you plan to use is released. Record the chosen level.
- Build: For developer extensibility, use the ABAP Test Cockpit (ATC) with its cloud-readiness checks so unreleased objects fail the build. For CAP projects, review the imported API models in
srv/external. Each one should come from a released API, not an internal service. - Run: Monitor the extension and review destination and role assignments on a schedule.
The lifecycle loop
Extensions follow a repeating cycle. The review step feeds back into the next release cycle.
Handling API changes
Released APIs carry a release state. When SAP deprecates an API, it publishes a successor where one exists. Your response should be routine:
- Subscribe to release notes for the systems you run.
- Compare each extension's register entry against deprecation notices at every upgrade cycle.
- Plan the migration to the successor before the old API is removed, and update the CAP model and handler together.
- Test in a non-production tenant first, since quarterly release updates reach it before production.
Retiring extensions
Remove extensions that nobody uses. Delete the destination, revoke the technical user, and unsubscribe the event topics. Then update the register. Leftover destinations and credentials are a common security gap.
Exercise
A side-by-side CAP extension was approved at level A. During a review you find that a developer added a second remote service pointing at an unreleased OData service. What do you do, and what do you record?
Show answer
Reclassify the extension, because the unreleased dependency lowers it to level C or lower. Ask the team to replace it with a released API, an event, or an approved extension point. If no replacement exists, record a documented exception with an owner and a target date for removal. Update the register entry with the new level and the date of the review.