A partner system calls your RAP Web API and tries to update a travel that your Fiori app shows as read-only. Is feature control a real check or only a UI hint? What stops the update, and what would not?
Say your answer out loud first.
Practise another way
I treat feature control as a real runtime check, but not as security. If an external consumer runs a disabled operation, RAP rejects it and returns an entry in FAILED; the Web API gets the same check as the UI.
It decides by data state, not by user, so it does not replace authorization. And my own code bypasses it with IN LOCAL MODE, so I keep validations for real consistency rules.
Feature control is enforced. The keyword documentation is clear on both sides. An operation disabled by instance feature control is greyed out in an OData UI.
If an external RAP BO consumer tries to execute it with EML, the operation fails with an entry in failed. SAP's example CL_DEMO_RAP_FC_OPERATION shows an update rejected by the dynamic check. The Web API binding uses the same BO, so the same check applies there.
What stops the partner's update
update ( features : instance )orfield ( features : instance )with a read-only result for that state.- Static
field ( readonly )characteristics for fields no consumer may set. - Authorization, if the partner's communication user lacks the rights: global or instance authorization in the BO, and CDS access control for reads.
What would not stop it
- UI annotations.
@UI.hiddenor a missing button changes only the screen. - Feature control for a rule that depends on the user. Feature control answers "is this possible for this data now?" Authorization answers "may this user do it?" Mixing them makes both wrong.
- Calls from inside the BO. Feature control, authorization checks and prechecks are not evaluated for EML
IN LOCAL MODE. An action that runsMODIFY ... IN LOCAL MODEcan change a field the user cannot touch. That is intended, but every such path must respect the business rule itself. - Internal operations. Feature control cannot be used for them.
The robust design
- Feature control to steer the UI and reject impossible requests early.
- Authorization for user-dependent rules.
- A validation on save for invariants that must hold on every path, including your own local-mode code.
- A message where the reason is not obvious. Global feature control can add one with
%global.
Cost. Feature control and authorization methods also run when the list report or object page is displayed, because the UI asks for consumer hints. Keep them lean.
Checking in advance. A consumer can ask before acting with EML GET PERMISSIONS. It returns feature control and authorization results for the given instances.
Release note. This behavior holds on SAP BTP ABAP environment (now SAP Business AI Platform, ABAP environment), SAP S/4HANA Cloud Public Edition and ABAP Platform 2022 or later.
States that the runtime rejects disabled operations with a FAILED entry for any external consumer. Separates state from user rules and names IN LOCAL MODE as the bypass that validations must cover.
Calls feature control a UI-only hint and adds an extra check in the Web API, or uses feature control to block users without a role.
Hiding a button with @UI.hidden and calling it protected. Any OData or EML consumer can still send the request unless the BO itself disables the operation.
- Which rule would you put in a validation even though feature control already covers the UI?
- How can the partner find out in advance which operations are allowed?
- Why is a heavy get_instance_features a performance problem on the list report?
4 official pages. Confidence: high. Checked 3 Dec 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.