<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tc/onlinemanual/000309" xml:lang="en">
	<Header>
		<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Example of defining a mask</Title>
		<Keyword><Level1>mask</Level1>
			<Level2>example</Level2>
		</Keyword>
		<Keyword><Level1>serial number</Level1>
			<Level2>example</Level2>
		</Keyword>
	</Header>
	<GeneralSection><Paragraph>This example shows how to define a mask for the following type of serial number:</Paragraph>
		<Paragraph>DAF NL*D*Manu*RD*00437</Paragraph>
		<Paragraph>where:</Paragraph>
		<TABLE border="1"><THEAD><TR><TD>Mask Segment</TD>
					<TD>Description</TD>
				</TR>
			</THEAD>
			<TBODY><TR><TD>DAF NL</TD>
					<TD>a fixed alphanumeric string</TD>
				</TR>
				<TR><TD>D</TD>
					<TD>the year number 1994</TD>
				</TR>
				<TR><TD>Manu</TD>
					<TD>a manually operated gearbox, as opposed to a variomatic gearbox</TD>
				</TR>
				<TR><TD>RD</TD>
					<TD>The color code for red</TD>
				</TR>
				<TR><TD>00437</TD>
					<TD>the item sequence number</TD>
				</TR>
			</TBODY>
		</TABLE>
		<ProcedureSection><SectionTitle>To generate serial numbers</SectionTitle>
			<Steps><StepsIntro>To generate this type of serial numbers, take the following steps:</StepsIntro>
				<Step><StepTitle>Define a mask</StepTitle>
					<Paragraph>In the <GUIRef href="/baanerp/tc/ibd/tcibd4102m000" role="session">Masks (tcibd4102m000)</GUIRef> session, define a mask code and a description and enter an asterisk (*) as the separator.</Paragraph>
				</Step>
				<Step><StepTitle>Define the mask segments</StepTitle>
					<Paragraph>In the <GUIRef href="/baanerp/tc/ibd/tcibd4103s000" role="session">Mask Segments (tcibd4103s000)</GUIRef> session, select the mask and add the following segments to the mask:</Paragraph>
					<TABLE border="1"><TBODY><TR><TH>Segment number</TH>
								<TH>Segment type</TH>
								<TH>Segment value</TH>
								<TH>Segment length</TH>
							</TR>
							<TR><TD>10</TD>
								<TD>Alphanumeric</TD>
								<TD>DAF NL</TD>
								<TD>6</TD>
							</TR>
							<TR><TD>20</TD>
								<TD>Transl table</TD>
								<TD>Year</TD>
								<TD>1</TD>
							</TR>
							<TR><TD>30</TD>
								<TD>Option</TD>
								<TD>Gearbox type</TD>
								<TD>4</TD>
							</TR>
							<TR><TD>40</TD>
								<TD>Transl table</TD>
								<TD>Color</TD>
								<TD>2</TD>
							</TR>
							<TR><TD>50</TD>
								<TD>Sequence</TD>
								<TD>1</TD>
								<TD>5</TD>
							</TR>
						</TBODY>
					</TABLE>
					<Paragraph><Emphasis>Note</Emphasis> If you specify a segment type <GUIRef href="/baanerp/tc/domains/ibd.sety#function" role="enum">Translation Table</GUIRef>, you must select an existing translation table. Start the <GUIRef href="/baanerp/tc/ibd/tcibd4104s000" role="session">Translation Tables (tcibd4104s000)</GUIRef> session to define the translation tables as described in Step 3 and Step 4 before you continue in the <GUIRef href="/baanerp/tc/ibd/tcibd4103s000" role="session">Mask Segments (tcibd4103s000)</GUIRef> session.</Paragraph>
				</Step>
				<Step><StepTitle>Define the translation tables</StepTitle>
					<Paragraph>In the <GUIRef href="/baanerp/tc/ibd/tcibd4104s000" role="session">Translation Tables (tcibd4104s000)</GUIRef> session, define the following translation tables:</Paragraph>
					<TABLE border="1"><TBODY><TR><TH>Translation</TH>
								<TH>Segment</TH>
								<TH>Value</TH>
							</TR>
							<TR><TD>Table</TD>
								<TD>Type</TD>
								<TD>Type</TD>
							</TR>
							<TR><TD>YEAR</TD>
								<TD>Date</TD>
								<TD>Year (4 digit)</TD>
							</TR>
							<TR><TD>COLOR</TD>
								<TD>Option</TD>
								<TD>Color</TD>
							</TR>
						</TBODY>
					</TABLE>
				</Step>
				<Step><StepTitle>Define the converted values</StepTitle>
					<Paragraph>Use the <GUIRef href="/baanerp/tc/ibd/tcibd4106m000" role="session">Values by Translation Table (tcibd4106m000)</GUIRef> session to define the converted values of each translation table as follows:</Paragraph>
					<TABLE border="1"><CAPTION><GUIRef href="" role="manual">YEAR</GUIRef> Translation table</CAPTION>
						<TBODY><TR><TH>Value type</TH>
								<TH>Segment value</TH>
								<TH>Translated value</TH>
							</TR>
							<TR><TD>YEAR (4 digit)</TD>
								<TD>1990</TD>
								<TD>A</TD>
							</TR>
							<TR><TD>-</TD>
								<TD>1991</TD>
								<TD>B</TD>
							</TR>
							<TR><TD>-</TD>
								<TD>1992</TD>
								<TD>C</TD>
							</TR>
							<TR><TD>-</TD>
								<TD>1993</TD>
								<TD>D</TD>
							</TR>
						</TBODY>
					</TABLE>
					<TABLE border="1"><CAPTION><GUIRef href="" role="manual">COLOR</GUIRef> Translation table</CAPTION>
						<TBODY><TR><TH>Value type</TH>
								<TH>Segment value</TH>
								<TH>Translated value</TH>
							</TR>
							<TR><TD>Color</TD>
								<TD>Black</TD>
								<TD>BK</TD>
							</TR>
							<TR><TD>-</TD>
								<TD>Blue</TD>
								<TD>BU</TD>
							</TR>
							<TR><TD>-</TD>
								<TD>Red</TD>
								<TD>RD</TD>
							</TR>
							<TR><TD>-</TD>
								<TD>Green</TD>
								<TD>GN</TD>
							</TR>
							<TR><TD>-</TD>
								<TD>Yellow</TD>
								<TD>YW</TD>
							</TR>
						</TBODY>
					</TABLE>
				</Step>
			</Steps>
		</ProcedureSection>
	</GeneralSection>
</ManualTopic>
