abap-feature-toggle
A feature toggle for ABAP: a toggle is an entry on the view ZFEAT_TOGGLE, switched there rather than by a deployment, and code reads its state with is_active.
An entry on the view ZFEAT_TOGGLE records a toggle, and it is activated or deactivated there rather than by a deployment. Calling code creates zcl_core_feature_toggle, typed to the interface zif_core_feature_toggle, and passes a toggle to is_active, which answers with its current status as a boolean. One method is documented, is_active, with the program Z_TEST_FEATURE_TOGGLE as its worked example. The maintainer describes the technique it implements as turning system functionality on and off during runtime, with no downtimes.
Facts
Where it sits
Who is behind it
In the atlas: maintains 2@raketenstart-abapmaintainerMarc F. BernardContributes to this
In the atlas: contributes to 4@marcfbeArthur SilvaContributes to this
In the atlas: contributes to 2@oarthursilva2 contributors
What it declares
Every artifact
- Type
- Package
- Origin
- Independently maintained
As a package
- Where it runs
- Inside its host
- Distributed through
- does not say
Connections
Turning behaviour on and off per tenant or user at runtime
Download
README
quoted from raketenstart-abap/abap-feature-toggle under MIT, readabap-feature-toggle
Feature toggle for ABAP (aka Feature Flags)
A software engineering technique that turns system functionalities on and off during runtime, with no downtimes, and deploying new codes.
- Validate feature functionality
- Modify system behaviour without disruptive changes or stoppers
- Minimize risks during development/implementation phase
- System outage
- Helps developers and testers to keep the development flow uninterrupted
Diagram
Instantiating
- create an entry on view
ZFEAT_TOGGLE; - activate/deactivate the created toggle;
- use snippet below to instantiate/implement the feature toggle.
DATA gc_feature_toggle TYPE zcore_feature_toggle.
DATA go_feature_toggle TYPE REF TO zif_core_feature_toggle.
DATA gv_is_active TYPE c.
CREATE OBJECT go_feature_toggle TYPE zcl_core_feature_toggle.
gv_is_active = go_feature_toggle->is_active( gc_feature_toggle ).
IF gv_is_active = abap_true
...
ENDIF.
Examples and documentation
Main class implementation is ZCL_CORE_FEATURE_TOGGLE.
Find use methods below aside of its documentation.
is_active
Check whether the feature toggle is activated. The return is a boolean value of the current status of a given feature toggle.
- input:
- iv_feature TYPE (zcore_feature_toggle)
- result: TYPE abap_bool
Example: Z_TEST_FEATURE_TOGGLE.
See source code here.
History
Notes
Contains the feature toggle implementation for ABAP.
See documentation for further details.
Others providing
Compare all 7 on the Feature toggles page →- FeaturetoggleFeaturetoggleA feature toggle framework for ABAP that ships an unfinished feature to production deactivated: toggles declared as class attributes, branched on in code and switched in a UI5 GUI.independent, abapFeature toggle framework for ABAP with a UI5 GUIfrom ABAP
- SAP Feature Flags serviceSAP Feature Flags serviceBoolean and string flags toggled in a dashboard and read by an application at runtime over a binding, with a cache in the client so a flip does not need a deploy or a round-trip per check.sap official, btpBoolean and string flags read by applications at runtimefrom BTP/BAIP
- com.sap.cds:cds-services-bomcom.sap.cds:cds-services-bomThe Maven bill of materials for CAP Java, pinning every com.sap.cds module in a release, from the API and core runtime to the Spring Boot starters and the CQN engine, to the same version.sap official, capMaven bill of materials pinning CAP Java module versionsfrom CAP
- @cap-js-community/feature-toggle-library@cap-js-community/feature-toggle-libraryLive-updatable feature toggles for CAP applications, backed by Redis.community org, capLive-updatable feature toggles for CAP, backed by Redisfrom CAP
- @sap/cds-mtxs@sap/cds-mtxsMultitenancy, tenant provisioning and model extensibility for CAP.sap official, capMultitenancy, tenant provisioning and extensibility for CAPfrom CAP
- cds-feature-togglecds-feature-toggleA feature-toggle pattern for CAP CDS from before the core had one, sitting at the CDS layer rather than the tenant-extensibility layer of @sap/cds-mtxs feature toggles.independent, capFeature-toggle pattern for CAP CDSfrom CAP
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
abaplint
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:raketenstart-abap-abap-feature-toggle- JSON
- /artifacts/raketenstart-abap-abap-feature-toggle.json
- MCP
- Connecting an agent