ERPClimb logoERPClimb
SAP technical topicObjectRAP Feature Control for Operations and FieldsModuleRAP_CDS_ODATA

New to SAP RAP / CDS / OData? Start with the module overview

RAP Feature Control for Operations and Fields: Consultant Reference

Quick answer

RAP feature control determines instance-specific availability of fields and actions based on business state. It is not a substitute for authorization; a field correctly disabled by feature control can still be reachable through a different access path if authorization checks are not separately enforced.

Consultant reference for RAP Feature Control for Operations and Fields: purpose, common failure patterns, evidence to inspect, safe resolution and interview-ready reasoning.

Published 17 Nov 2026· 755 words

What this controls

RAP feature control determines instance-specific availability of fields and actions based on business state. It is not a substitute for authorization.

When to use it

Use RAP feature control to dynamically enable, disable or make read-only specific operations (create, update, delete) or fields based on the entity's current state or business rules — essential whenever a UI needs to reflect that an action is only valid in certain states, such as disabling 'delete' once a document has been released, rather than allowing the action and failing with a late validation error.

Safe resolution path

Correct deterministic feature conditions with no unrestricted bypass. Test allowed and denied transitions; backend authorization must still enforce access even when client UI exposes an action.

Common pitfalls

A common mistake is implementing feature control only in the UI layer (hiding a button) without the equivalent enforcement in the business logic layer, leaving the API technically able to perform an action the UI hides — a gap that a different client or a direct API call can exploit.

Teams also underestimate the performance cost of feature-control logic that re-evaluates complex business rules on every single field for every row in a large list, which can make list displays noticeably slower.

A third pitfall is not keeping feature-control logic consistent with validation logic — if feature control allows an edit that validation will later reject, the user experience is confusing and inconsistent.

ECC, S/4HANA and clean core

Feature control is a RAP-specific concept introduced for S/4HANA and BTP ABAP Environment development; the closest ECC equivalent was scattered authority-check and status-check logic embedded directly in screen programs, with no standardized framework.

RAP's feature control centralizes this in a way that is both more maintainable and more consistently enforced across UI and API access than the ad hoc ECC pattern ever was.

Revisit this guidance at each major SAP release or upgrade cycle, since clean-core scope, released-API coverage and BTP service capabilities all continue to expand; a decision that required a workaround in one release may have a supported, upgrade-safe option in the next, so a periodic architecture-review checkpoint is worth scheduling rather than treating the original decision as permanent.

Typical production symptom

A Fiori 'Approve' action is disabled only for one request. Its feature implementation correctly blocks a completed document, or incorrectly reads stale status; changing a UI annotation cannot repair backend feature logic.

Likely root causes

The most common causes are configuration mismatch, stale or incomplete master data, incorrect status or validity dates, authorization scope, integration mapping, timing or sequencing, and changes that were transported without their prerequisites. Avoid assuming the screen where the symptom appears is the layer that owns the defect.

What to inspect

Inspect behavior definition `features:instance`, get_instance_features result and current entity keys/status; compare an active, completed and draft instance. Check projected action metadata and separate instance authorization. Test EML as well as UI.

Consultant and interview angle

A strong answer explains the controlling object or configuration, the evidence used to isolate the issue, the cross-module or integration dependencies, the safe fix, and the regression plan. Senior candidates should also explain monitoring, governance and how to prevent the same failure from recurring.

Worked design review and production acceptance

Instance feature-control test: a manager can approve an open sales exception but may not approve an already completed or blocked one. Declare feature control in the behavior definition and implement a stable decision based on actual instance status, not a stale Fiori display property.

Collect keys from the requested instance and verify reported enable/disable results under exact business states, then separately test authorization with another user. If $metadata exposes an action but the UI hides it incorrectly, inspect projection/service exposure and client side effect/annotation before changing the business rule.

A feature result does not grant access: backend authorization must still reject a user who sends a direct action request while lacking the proper role. Use a set of cases: open/authorized, closed/authorized, open/unauthorized and draft locked by another session. Verify active and draft state semantics in the installed RAP version.

A fix is correct only when the permitted action works, inappropriate states remain disabled or rejected and the saved business status changes exactly once without bypassing approval policy.

Include an API-level denial test under a user without approval authority, even if the Fiori button is hidden. Feature control only informs whether an action is available in the business state; authorization still protects the operation. Check completed and draft-locked objects after the change.

Source: ERPClimb — https://erpclimb.com/sap-technical-topics/rap-feature-controlERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.