Sub topic 14
Deciding which extension approach to use
This chapter assumes you know the three extension options (in-app, developer, side-by-side), the released API concept, and the clean core levels A to D. It turns them into a repeatable decision.
Start from the requirement, not the tool
Teams often pick the technology they already know. That produces extensions in the wrong place, which are hard to move later. Describe the requirement first, then test it against a few questions.
- Can a released API, released CDS view, or released extension point deliver it? If not, stop and clarify before building. Do not fall back to unreleased objects.
- Must the logic run inside the same transaction as the standard process, for example to reject a save?
- Does the extension need its own lifecycle, its own users, or data from several systems?
- Who will maintain it, and with which skills?
Fit by criteria
| Criterion | In-app | Developer (ABAP Cloud) | Side-by-side (BTP) |
|---|---|---|---|
| Typical use | Custom fields, simple rules, UI adaptation | Custom logic and objects tied to core processes | Separate apps, workflows, integrations |
| Runs | Inside S/4HANA | Inside S/4HANA | Outside, on BTP |
| Transaction coupling | Tight | Tight | None, calls are remote |
| Release cycle | Tied to the core | Tied to the core | Independent |
| Maintained by | Key users | ABAP developers | Cloud developers |
| Depends on | Released extension points | Released ABAP objects | Released APIs and events |
All three can reach level A when they use only released contracts.
Walk through the decision
Consider three examples.
- Add a "cost center owner" field to a purchase order screen. It needs no code and no separate lifecycle, so use in-app extensibility.
- Block saving a sales order when a custom credit rule fails. The check must run before the save commits, so use developer extensibility.
- Show blocked business partners to an external compliance team. They are not S/4HANA users, and the data comes from released APIs, so use a side-by-side CAP app like the one built earlier in this tutorial.
Common errors
- Side-by-side for in-transaction logic. A remote call cannot reliably veto a save, and it adds latency and a failure point. Use events only for work that can happen after the commit.
- On-stack code for independent apps. Every core upgrade then affects an app that did not need to be coupled.
- Chatty remote calls. Reading a record per item over OData is slow. Prefer one filtered request, or react to an event.
- Deciding by skills alone. Skills influence maintenance cost, but they do not replace the transaction and lifecycle questions.
- No record of the decision. Reviewers cannot check it later.
Record the outcome
Write down the requirement, the chosen approach, the released contracts it depends on, and the target clean core level. The governance chapter uses this record for reviews.
Exercise
A business wants a mobile approval app for field managers, who have no S/4HANA user accounts. The app needs purchase requisition data from released APIs and should be notified when a requisition is created. Which approach fits, and why?
Show answer
Side-by-side on SAP BTP. The users are external to S/4HANA, the app has its own lifecycle, and nothing has to run inside the S/4HANA transaction. Read the data through a released API, and use the business event for the creation notice instead of polling.