Switchable Units
In the context of the Switch Framework, development objects can be of two types: switchable and non-switchable. Both types can be assigned to switches. The behavior of switchable objects in the system depends on the switch settings.
Below is the list of switchable units:
● Packages
You can switch the following repository objects by assigning them to a package:
○
Append Structures,
Includes, and
Customizing Includes for
structures in the ABAP Dictionary

The switches affect only SI_ and CI_ includes. The normal dictionary includes are not affected by switches.
○
Append Search Helps for
search helps in the ABAP Dictionary
○
Secondary indexes
for database tables in the ABAP
Dictionary
○
Fixed Value
Appends for domains in the
ABAP Dictionary
○
Business Configuration
Sets of the Customizing
○
Enhancement
Implementations of the
Enhancement
Technologies of the
Enhancement Framework.
● Screen fields
You can assign a switch to each screen fields when you define it in the Screen Painter. A screen field can be used only when the switch is switched on. By assigning a switch to a screen field, you also assign the corresponding FIELD statements of the screen flow logic. The FIELD statements are only taken into account if the switch is switched on.
When you define a screen field, you should specify whether the corresponding screen elements are to be hidden when the switch is switched on. In this way, you can replace existing screen fields with others.

The program SFW_FIND_SWITCHED_ELEMENTS can be used to search switched UI elements by business function. Its scope are the UI elements assigned in Screen Painter.
● Calling modules
You can link the MODULE statement of the screen flow logic to a switch directly through the SWITCH addition. Such a MODULE statement is only taken into account if the switch is switched on.
● Function codes
You can assign a switch to a function code when defining the function code in the Menu Painter.
● Maintenance views and view clusters
You can
assign a switch to any field of a
maintenance
view when you define the view in the ABAP Dictionary.
All fields that you want to switch need to
be part of the maintenance view. No appends are used for the switchable parts
of a maintenance view.
The same
applies to
view
clusters. You can specify one switch for each view to
control its visibility. All views that you want to switch
need to be part of the view
cluster.
● Nodes of an IMG structure
You can
assign a switch to each node of an IMG structure in the
IMG Structure
Maintenance. An IMG structure node is
displayed only when the switch is switched on.
● Nodes of an area menu
You can
assign a switch to each node of an area menu in the
Area Menu
Maintenance. An Area Menu node is displayed
only when the switch is switched on.
See also: