Entering content frameVariant Conditions with a Table Locate the document in its SAP Library structure

The price of a bike increases according to the color. The colors are divided into different categories. Configurable material BIKE has characteristic COLOR.

1. Create characteristic SURCHARGE to refer to field VKOND in table SDCOM. The characteristic is multiple-value.

2. Create the following variant conditions as described in Maintaining Variant Conditions:

Variant Key

Amount

CAT_A

200

CAT_B

300

CAT_C

400

3. Create a table and enter the combinations of colors and variant keys. Characteristic SURCHARGE is multiple value, so do not use it in the table (see Multiple-Value Characteristics in Table Calls).

Define additional characteristic T_SURCHARGE. This characteristic has the same format as characteristic SURCHARGE. However, it is single-value and has no table reference.

4. Enter the following table entries:

For characteristic T_SURCHARGE, enter the variant key for determining each color.

Note

Values in a table are case-sensitive!

Table COLOR_PRICE

COLOR

T_SURCHARGE

RED

CAT_A

BLUE

CAT_A

SCARLET

CAT_B

MATT_GREEN

CAT_B

FRENCH_LAVENDER

CAT_C

5. Create a procedure in which you call table COLOR_PRICE.

You link the characteristics of the table to the characteristics of the class. Characteristic COLOR is the same in both.

Table COLOR_PRICE

(T_SURCHARGE = $SELF.SURCHARGE,

COLOR = COLOR).

6. Allocate the procedure to the configuration profile of the bike. Depending on which color you select, the price is increased by the amount maintained in the condition.

Leaving content frame