When creating a new segmentation type, you are able to configure a number of rules and controls that will pertain to these.
One of the options is to create segments that are defined either by delimiters or by length. Types defined using delimiters allow you to split the item code into different segments by using either a non-numerical (preferred) or numerical character.
Example:
If you define the segmentation type with the following:
- Delimiters are a hyphen <-> and a slash </>.
- Blank as delimiter is set to YES
- Number of segments is set to 4
- Primary segment is segment 2 and you enter your Item code in the Item file as such: 28in/winter BBA-NO, the segments, after segmentation, will contain the following values:
Segment 1 = 28in
Segment 2 = winter
Segment 3 = BBA
Segment 4 = No
Segment 5 = Blank
Segment 6 = Blank
Primary Segment = winter
To create a segmentation type using the segmentation by delimiters method, do as follows:
- Select the Item segmentation types menu item.
- You access Work with item segmentation types. Click Add.
- On the detail panel, complete the following fields:
- Segmentation type
- Enter the name of the segment type.
- Description
- Enter text to describe this new item segmentation type.
- Number of segments
- Enter 1 to 6 since you are creating a segmentation type based on the Segmentation by delimiter method.
- Delimiters
- Only applicable for the Segmentation by delimiter method. Enter all the characters that can be used to divide the item into segments. Note: You cannot enter the character that is used as the Search delimiter (which is defined in the DIS control file).
- Blank as delimiter
- Only applicable for the Segmentation by delimiter method. Indicate if blank is to be used as delimiter, in addition to those characters that may have been entered in the Delimiters field.
- Segment by length
- Not applicable for types based on the Segmentation by delimiter method. Leave this field blank.
- Segment desc (1-6)
- In each of the fields listed here, enter a value that will describe each of the segments.
- Primary segment
- Enter a number 1 to 6 that identifies the segment to be searched in the Select item routine, when no search delimiters have been entered
- Segment
- Indicate in the six fields if the corresponding segment is to be validated against the records in the Item segment value table. This gives you the possibility to validate whether an item code is being entered according to a pre-defined syntax.
For example:
You want segments 1 and 2 to contain certain values, but segments 3-6 can contain any value. In this case you would set segments 1 and 2 to YES and segments 3 through 6 to NO. (A NO entry signifies that anything entered into the segment is allowed and valid). Within the Item segment value table you would enter, for each segment you want validated, the segment number and the valid value that the segment must contain for this Segmentation type.
For more details concerning this, see Assign segment values.
- Compress item code
- Only applicable for the Segmentation by delimiter method. Indicate if the item code should be stored in a compressed format (i.e. without delimiters). If you set this field to YES, the item code is added to and stored as an item alias in the Item cross reference file, with all delimiters removed from the original item code. This compressed format can be used for quicker entry of the item code without any delimiters. For example: If the Item code with delimiters is MFGX/123456 BB*99, the stored compressed item code would be MFGX123456BB*99.
- Text
- Enter text of your choice to further describe this segmentation type.
Validations
In the Segment fields below, you can enter specific validations for the segments you defined.
Click OK to save. Exit the routine.