Conflicts and Conflict switches
Conflicts arise when two or more switches contain an implementation for the same enhancement section or a single-use BADI. Currently, when you switch on enhancements, a conflict can occur if there are multiple implementations for an enhancement option that allow only one implementation and those implementations are switched on simultaneously. This situation can arise for the ENHANCEMENT-SECTION and GET BADI statements. You can resolve conflicts by using conflict-switches.
A conflict switch can have the following states:
- ON when all assigned switches are switched on
- OFF if at least one of the assigned switches is switched off
Conflict Resolution

- A conflict-resolving enhancement implementation is an implementation to which a conflict switch is assigned instead of a normal switch
- The conflict-resolving enhancement implementation has to mirror the common semantics of all normal enhancement implementations that may be switched on simultaneously and therefore can be in conflict
- The state of the switches assigned to the conflict switch determines whether an enhancement implementation will be replaced by a conflict-resolving enhancement implementation
- In a conflict solution, a conflict-resolving enhancement implementation takes priority over normal enhancements.