Example Restricting a Characteristic with IN Locate the document in its SAP Library structure

Configurable material BIKE has characteristics FRAME and COLOR. Characteristic COLOR has the values 'Red', 'Green', 'Blue', and 'Yellow'.

The values for characteristic COLOR are restricted to 'Green' and 'Yellow' if you choose an aluminum FRAME.

Characteristic COLOR is restrictable. Characteristic FRAME is single-value.

Procedure

  1. Create dependency net CN_BIKE. If you have already created this dependency net, change it.
  2. Allocate constraint CS_FRAMECOLOR to the dependency net.
  3. Enter the following source code in the constraint:
  4. OBJECTS:
    BIKE IS_A (300) BIKE where FR = FRAME; COL = COLOR

    RESTRICTIONS:
    COL IN ('Red', 'Yellow') IF FR = 'Aluminum'

    INFERENCES:
    COL.

  5. Allocate the dependency net to the configuration profile of material BIKE.

Result

If you set value 'Aluminum' for characteristic FRAME, you only see the values 'Yellow' and 'Green' for characteristic COLOR.

Leaving content frame