Entering content frameExample Inferring a Characteristic Value with Procedures (Example) Locate the document in its SAP Library structure

Use

Configurable material BIKE has the following characteristics:

Characteristic

Values

Weight calculation

WEIGHT
(3 figures, 1 decimal place)

-

 

FRAME

Aluminum
Steel

22.05 lb
30.86 lb

EXTRAS (multiple-value)

Mudguard
Luggage rack

0.5 kg
1.0 kg

Procedure

  1. Create a procedure for the weight of the BIKE, depending on the frame.
  2. This procedure has the following source code:
  3. $SELF. WEIGHT = 10 if FRAME = ‘Aluminum’,

    $SELF. WEIGHT = 14 if FRAME = ‘Steel’.

  4. Allocate the procedure to the configuration profile of material BIKE.

The weight of a bicycle increases if you select additional extras, such as mudguard or luggage rack.

  1. You define a procedure with the following source code:

$SELF.WEIGHT = $SELF.WEIGHT + 0.5 if EXTRAS = 'Mudguard',

$SELF.WEIGHT = $SELF.WEIGHT + 1 if EXTRAS = 'Luggage rack'

  1. Allocate the procedure to the configuration profile of material BIKE.

Result

  1. When you configure the bike, the value ‘Aluminum’ is selected for characteristic FRAME. This triggers the first procedure, which sets the value 10 kg as the WEIGHT.
  2. Characteristic EXTRAS has values ‘Mudguard’ and ‘Luggage rack’. This triggers the second procedure, which increases the value of characteristic WEIGHT to 11.5 kg.

Note

You cannot use an action to change the value already set for characteristic WEIGHT.

Leaving content frame