Sub topic 6
In-app extensibility for key users
In-app extensibility lets business users adapt SAP S/4HANA Cloud from inside the application. These users are called key users. They change screens, fields, and simple logic with built-in tools and write no code on a separate system. This chapter assumes you know the clean core principle and what released APIs are. It also assumes you have a basic idea of how an ERP system is organized.
Why it fits clean core
Key user tools work only through extension points that SAP defines and keeps stable. The tools store each change as metadata. They do not store it as a modification of SAP code. During an upgrade, SAP keeps the extension contract stable, so the changes survive. In clean core terms, in-app extensions normally fall into the highest levels, because they use only released extension points.
What key users can change
The Custom Fields app adds fields to business objects, such as a sales order. The field then appears in the UI, in forms, and in the released OData APIs that expose the object, if you enable it for those uses.
The table below lists the typical tools.
| Tool | What it does | Typical example |
|---|---|---|
| Custom Fields | Adds fields to business objects | A "Project reference" field on a sales order |
| Custom Logic | Runs small ABAP-based logic at defined extension points (BAdIs) | Check that a field is filled before saving |
| Custom CDS Views | Builds new read-only data models on released objects | A view that combines orders and partners |
| UI adaptation | Hides, moves, or renames fields on a screen | Hide a field a team never uses |
| Forms and email templates | Changes the layout of output documents | Add a field to an invoice form |
How a change reaches production
A key user works in a development system first. The change is collected in a transport, then moved to test and production systems. The flow keeps changes traceable and reviewable.
Limits to know
In-app extensibility is the right choice for small, close-to-the-data changes. It has clear limits:
- Logic runs inside the S/4HANA system. Heavy computation or long-running processing can slow the system for all users.
- Custom Logic is allowed only at released extension points. If SAP offers no BAdI for your case, you cannot add logic there.
- You cannot build a new application with its own UI and data model. That calls for developer or side-by-side extensibility.
- You cannot call arbitrary external systems from the logic freely. Integration with other products belongs on SAP BTP.
Common errors
- Adding a field but not exposing it. A custom field shows in the UI only if you enable it for the right usage, such as UI, forms, or API. If it is missing, check these settings first.
- Skipping the transport. Changes made directly in production are hard to trace and can differ between systems. Build in development and transport.
- Overloading Custom Logic. Business rules that grow large and call many objects are hard to test. Move such logic to a side-by-side or developer extension.
- Using unreleased objects in a custom CDS view. The tools block unreleased objects in cloud systems for this reason. Pick a released view instead.
Exercise
A sales team wants a mandatory "Project reference" field on sales orders, plus a check that blocks saving when it is empty. Which extensibility option fits, and which two tools do you use?
Show answer
In-app extensibility fits. Use the Custom Fields app to add the field to the sales order, and Custom Logic to add a check at the matching extension point that blocks saving when the field is empty. Build the change in development and move it with a transport.
Exercise
A team wants a new approval application with its own UI and database that also calls a third-party service. Why is in-app extensibility not the right choice?
Show answer
In-app extensibility cannot create standalone applications with their own data model and UI, and it is not meant for broad integration with external products. A side-by-side extension on SAP BTP, which uses released APIs, fits this case.