Feature toggles

Turning behaviour on and off per tenant or per user at runtime, without redeploying, and knowing which toggles are live. System-level switches for delivered objects and runtime flags for unfinished features share the name.

Overview

InCAPassessed
SAP SHIPSby design
Node.js →

@sap/cds-mtxs Multitenancy, tenant provisioning and model extensibility for CAP.

Java →

com.sap.cds:cds-services-bom Activates feature-toggled CDS aspects per request from the set a Feature Toggles Info Provider computes, registered as a Spring bean; the mock user configuration assigns features in development only.

Not covered: At the decision. The guide says to bring your own toggle provider for production, because user and tenant management is outside CAP; a feature's CDS files may not sit in subfolders and may not depend on another feature. Which tenant gets which feature, and switching one at runtime without a redeploy, is what the entries here add.

SourceFeature Toggles — capirechecked
THE COMMUNITY ADDS

@cap-js-community/feature-toggle-library is a toggle provider for production: live-updatable toggles backed by Redis.

InBTP/BAIPassessed
SAP SHIPS

The Feature Flags service holds boolean and string flags, toggled in a dashboard and read by an application over a binding with a client-side cache.

THE COMMUNITY ADDS

No community artifact is documented here.

InABAPassessed

In ABAP a toggle is either SAP's switch, which decides at system level whether delivered objects are active, or a flag a program reads at runtime so an unfinished feature can reach production switched off.

SAP SHIPS

The Switch Framework controls through switches whether repository objects and enhancements are visible; a business function groups switches and is switched on for the whole system.

Not covered: At the system. A business function is on for every user of the system and only a reversible one can be switched off, so a flag a developer checks in code to ship an unfinished feature switched off is what the ABAP libraries add.

Artifacts7

Group by7 of 7 artifacts
ArtifactSignals
CDS plugins1
cds-feature-toggleFeature-toggle pattern for CAP CDS
Signals
Functional boundary
Packages5
@cap-js-community/feature-toggle-libraryLive-updatable feature toggles for CAP, backed by Redis
Signals
none
@sap/cds-mtxsMultitenancy, tenant provisioning and extensibility for CAP
Signals
none
abap-feature-toggleFeature toggle for ABAP read via is_active on view ZFEAT_TOGGLE
Signals
none
com.sap.cds:cds-services-bomMaven bill of materials pinning CAP Java module versions
Signals
none
FeaturetoggleFeature toggle framework for ABAP with a UI5 GUI
Signals
Quiet+1
Services1
SAP Feature Flags serviceBoolean and string flags read by applications at runtime
Signals
none

Content2

Group by
Piece, what it offers
Streamline User Targeting with Segments in SAP Feature Flags
SAP Community, Maksimiliana, Blog
Open Sourcing CAP – how to learn more or get involved
SAP Community, Fempel, Blog
Streamline User Targeting with Segments in SAP Feature Flags
SAP Community, Maksimiliana, Blog

Seen working1

ArtifactSignals
Samples1
SAP-samples/cloud-cf-feature-flags-sampleSpring Boot demo evaluating a toggle from the Feature Flags service
none

Details

Coverage
statecore and community, CAP
assessed
state in BTP/BAIPcore only, assessed
state in ABAPcore and community, assessed
relationshipnarrow by design
also inBTP/BAIP, ABAP
SourceFeature Toggles — capirechecked SourceFeature Toggles — capirechecked SourceFeature Toggles — capirechecked SourceFeature Toggles — capirechecked SourceFeature Toggles — capirechecked SourceFeature Toggles — capirechecked SourceFeature Toggles — capirechecked
For your agent
Ref
capability:feature-toggles
JSON
/capabilities/feature-toggles.json
MCP
Connecting an agent