Documentation >
MAC-PAC Reference Library >
Distribution >
Expert Configurator >
Key Concepts and Procedures >
Configuration Codes >
Example: Template Makeup
Example: Template Makeup
Here is a simple example of a configuration template and a configuration code and expanded configuration code for part BENCH.
The item BENCH has a configuration code template called BNCH that is composed of three fields: Color, Seats, and # of Legs. The expanded configuration code template is composed of one field called 'Bench Height is:'. It also has several literals and blanks. These make it easier to read. Template BNCH would be defined as:
|
|
|
|
'COLOR:'
|
1 - 6
|
literal
|
|
Color
|
7 - 9
|
option
|
123
|
Blank
|
10
|
|
|
'SEATS:'
|
11 - 16
|
literal
|
|
Seats
|
17
|
option
|
|
Blank
|
18
|
|
|
'# OF LEGS:'
|
19 - 28
|
literal
|
|
Legs
|
29
|
option
|
|
Blank
|
30
|
|
|
'BENCH HEIGHT'
|
51 - 63
|
literal
|
|
'IS:'
|
64-68
|
literal
|
|
Height
|
69
|
optional
|
|
The Definition of Template BNCH.
This is the default template for part BENCH.
If a Reference File category is associated with a field on a template, the value of the option for that field is used to retrieve information from the Reference File category. The information will be formatted within the configuration code. Thus, the Reference File category may be used to convert a long description to an abbreviation, a code, or a better description of the abbreviation. Reference File category 123 holds valid colors and each color is three characters long. Use a Screen Validation Rule to validate the number of seats, number of legs, and bench height. See the Screen Validation Rule Key Concept in this manual for further information.
Use the Configuration Template Maintenance conversation to define the template BNCH. The figure below is a sample of the detail screen (EC160S02) with template BNCH defined.
WILLIAMS CONFIGURATION TEMPLATE MAINTENANCE 6/02/92
DSP01 DETAIL
Template Code BNCH BENCH TEMPLATE
From To Ref
Seq Pos Pos Position Desc T Position Value Cat
0001 1 6 LITERAL COLOR L COLOR:
0002 7 9 BENCH COLOR O COLOR 123
0003 10 10 BLANK L BLANK
0004 11 16 LITERAL SEATS L SEATS:
0005 17 17 # OF SEATS O SEATS
0006 18 18 BLANK L BLANK
0007 19 28 LITERAL LEGS L # OF LEGS:
0008 29 29 # OF LEGS O LEGS
0009 30 30 BLANK L BLANK
0010 51 63 LITERAL HEIGHT L BENCH HEIGHT
0011 64 68 LITERAL HEIGHT2 L IS:
0012 69 69 BENCH HEIGHT O HEIGHT
F2=Command F3=Exit F9=Maintenance
|
The Configuration Template Detail Screen with Template BNCH Defined.
A BENCH that is red, seats two, and has six legs, would have a 50-character configuration code of:
'COLOR:RED SEATS:2 # OF LEGS:6 '
Whereas a BENCH that is green, seats three, and has four legs, would have the code:
'COLOR:GRN SEATS:3 # OF LEGS:4 '
The expanded configuration code for the above Template BNCH would be:
'BENCH HEIGHT IS: 12 '
Once you create a sales order line for the configured part, the configuration code will be formatted automatically based on the part's template. Codes are displayed on the Sales Order Maintenance single line and line detail screens. Configuration codes will also be formatted automatically for configured parts in the bill of material.