Purpose
This guide is a continuation of document Introduction to Variant Configuration with an example model. With the help of this document , you will be able to setup a configuration model with the routing.
Example Model from the document.
To setup the data , please follow the directions advised in the document.
Characteristic | Possible Values |
---|---|
VC_CHR_TYPE | - Office computer - Gaming computer - Server - Laptop |
VC_CHR_CPU | - A-CPU - I-CPU |
VC_CHR_MAIN_MEMORY | - 2 GB - 4 GB - 8 GB - 16 GB |
VC_CHR_GRAPHIC_CARD | - N-Graphic Card - A-Graphic Card - Onboard |
VC_CHR_OTHER_EQUIPMENT (multiple values) | - High-End Sound Card - TV Tuner Card - Modem |
Each characteristic needs exact one entry except VC_CHR_OTHER_EQUIPMENT.
Our computer is a "complex" material and consists of other materials. Therefore we need a bill of materials. Each component has got only one characteristic:
VC_CHR_Price | Numeric Value |
The materials are finished products which are not configurable itself.
Bill of materials
Components |
---|
VC_MAT_A_CPU |
VC_MAT_MEM_2 |
VC_MAT_MEM_4 |
VC_MAT_MEM_8 |
VC_MAT_MEM_16 |
VC_MAT_GRAPH_N |
VC_MAT_GRAPH_A |
VC_MAT_GRAPH_O |
VC_MAT_EQU_SOUND |
VC_MAT_EQU_TV |
VC_MAT_EQU_MODEM |
The characteristics of the computer are not independent among each other. Hence, we define some dependencies.
Preconditions
Precondition | Characteristic / Char. - Value | Condition |
---|---|---|
VC_EX_CON1 | Other Equipment | VC_CHR_TYPE <> 'Server' AND VC_CHR_TYPE <> 'Laptop' |
VC_EX_CON2 | 8GB + 16GB; A-CPU | VC_CHR_TYPE = 'Server' |
VC_EX_CON3 | N-Graphic Card + A-Graphic Card | VC_CHR_TYPE = 'Gaming computer' OR VC_CHR_TYPE = 'Laptop' |
VC_EX_CON4 | Onboard | VC_CHR_TYPE = 'Server' OR VC_CHR_TYPE = 'Office computer' |
Selection conditions
As it is described above the components of the computer will be chosen by means of the chosen characteristics. To implement this functionality we need selection conditions.
Material | Selection Condition |
---|---|
VC_MAT_A_CPU | VC_CHR_CPU = 'A-CPU' |
VC_MAT_I_CPU | VC_CHR_CPU = 'I-CPU' |
VC_MAT_MEM_2 | VC_CHR_MAIN_MEMORY = 2 |
VC_MAT_MEM_4 | VC_CHR_MAIN_MEMORY = 4 |
VC_MAT_MEM_8 | VC_CHR_MAIN_MEMORY = 8 |
VC_MAT_MEM_16 | C_CHR_MAIN_MEMORY = 16 |
VC_MAT_GRAPH_N | VC_CHR_GRAPHIC_CARD = 'N-Graphic Card' |
VC_MAT_GRAPH_A | VC_CHR_GRAPHIC_CARD = 'A-Graphic Card' |
VC_MAT_GRAPH_O | VC_CHR_GRAPHIC_CARD = 'Onboard' |
VC_MAT_EQU_SOUND | 'High-End Sound Card' IN VC_CHR_OTHER_EQUIPMENT |
VC_MAT_EQU_TV | 'TV Tuner Card' IN VC_CHR_OTHER_EQUIPMENT |
VC_MAT_EQU_MODEM | 'Modem' IN VC_CHR_OTHER_EQUIPMENT |
Routing
Operations |
---|
0010 - Assemble CPU A |
0020 - Assemble CPU B |
0030 - Assemble Mem 2 |
0040 - Assemble Mem 4 |
0050 - Assemble Mem 8 |
0060 - Assemble Mem 16 |
0070 - Assemble Graph N |
0080 - Assemble Graph A |
0090 - Assemble Graph O |
0100 - Assemble Equ |
0110 - Assemble Modem |
As this stage you should have materials , configuration profile for the materials, classes, characteristics and bom setup. If you miss anything please follow the first document.
Routings.
Once the above data is setup, we can now create a routing for the configurable material VC_KMAT_PC. Please use transaction CA01 to create the routing, Enter the configurable material and the plant you want to create the routing for.
On the next screen enter the required value eg usage etc.
Click on the tab operations and enter the operations you need to assemble the PC. Enter all the operations as mentioned in the model above.
If you want to configure the operations based on the selection of characteristic values , you need to create a selection condition and assign to the operation you want to select.
E.g. if the characteristic VC_CHR_CPU has value A-CPU the operation 0010 will be selected.
To do so, select the operation and assign a local dependency to it from the Menu Path -> Extras -> Object dependencies -> Editor, Select the selection condition
Enter the syntax code as following and save the routing.
Test of the configuration
You can now simulate this in CU50. Enter the material and the Plant , Select option task list on the main screen. Select characteristic value A-CPU, click the result icon and you will see operation 0010 is selected.
If you hit the result icon now, you will see operation 0010 is selected.
If you now go back and select any other value then A-CPU, Operation 0010 will not be selected.
You can now see that the operation 0010 is not selected. Result does now show the operation. It will only be selected if the selection condition is met ie characteristic VC_CHR_CPU has value A-CPU