PackagePackagetypeA library you install and call yourself.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

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

Last pushLicenceMIT

Where it sits

Lives in
Provides
Feature togglesABAPFeature togglescapabilityTurning 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.

Who is behind it

raketenstart-abapraketenstart-abapOrganisationMaintains this
In the atlas: maintains 2
@raketenstart-abap
maintainerMarc F. BernardPersonContributes to this
In the atlas: contributes to 4
@marcfbe
Arthur SilvaPersonContributes to this
In the atlas: contributes to 2
@oarthursilva
2 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

Connections1

README

quoted from raketenstart-abap/abap-feature-toggle under MIT, read
raketenstart-abap/abap-feature-toggle/README.mdOn GitHub

abap-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.

MIT, read

History

Latest

v1.0.0

Notes

Contains the feature toggle implementation for ABAP.

See documentation for further details.

Feature toggles
  1. FeaturetoggleFeature toggle framework for ABAP with a UI5 GUIfrom ABAP
  2. SAP Feature Flags serviceBoolean and string flags read by applications at runtimefrom BTP/BAIP
  3. com.sap.cds:cds-services-bomMaven bill of materials pinning CAP Java module versionsfrom CAP
  4. @cap-js-community/feature-toggle-libraryLive-updatable feature toggles for CAP, backed by Redisfrom CAP
  5. @sap/cds-mtxsMultitenancy, tenant provisioning and extensibility for CAPfrom CAP
  6. cds-feature-toggleFeature-toggle pattern for CAP CDSfrom CAP

Details

Sources3
dotabapdiscovered herechecked
github.com/raketenstart-abap/abap-feature-toggletree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

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
discovered viadotabap
first seen in the atlas
ecosystem and domainabap, operations-and-runtime
abaplint
issues under its own abaplint configuration189
lines324
statements201
objects19
files28
analysed, master
abaplint version2.120.84
Contributors2

From the repository’s contributor list, .

History in the atlas1
  1. First seen.
For your agent
Ref
artifact:raketenstart-abap-abap-feature-toggle
JSON
/artifacts/raketenstart-abap-abap-feature-toggle.json
MCP
Connecting an agent