A switch is a repository object whose state determines:
A switch is the technical level of switching objects on and off.
You use a switch to control the behavior of the objects assigned to it.
A switch can have one of the following possible states: ON, OFF, or STANDBY. This states determine the behavior of the switchable repository objects. For more information, see Switch States .
You can assign switches to business functions as well as to objects that cannot be included in a package. You assign switches to these objects by assigning them directly in the respective tools. For example, in the Screen Painter, you assign switches to screen fields.
In the switch definition, you assign packages to a switch. By assigning a package to a switch, you also assign the development objects in that package. In that way, each object is assigned to a switch through the package assignment.
When a package is assigned to a switch, the behavior of the non-switchable repository objects of that package remains unaffected.
Switches and Nested Packages
You can assign several packages to one switch but cannot assign the same package to several switches.
If a package with subpackages is assigned to a switch, the switch applies to the subpackages as well as to the package. A subpackage cannot be assigned to a switch if a higher-level package is already assigned to a switch.
Assigning Nested Packages to Switches
To find out if a repository object is assigned to a switch, you need to check the package that contains the object. If no switch is assigned to the object through its own package or a higher-level package, the object is regarded as switched on.
See also: