<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tc/onlinemanual/000309" xml:lang="en">
   <Header>
      <Title>Example of defining a mask</Title>
      <Keyword type="header" order="d1e1454761">
         <Level1>Mask</Level1>
         <Level2>example</Level2>
      </Keyword>
      <Keyword type="header" order="d1e1454766">
         <Level1>Serial number</Level1>
         <Level2>example</Level2>
      </Keyword>
   </Header>
   <GeneralSection>
      <Paragraph>This example shows how to
		define and use a <Link href="/baanerp/tc/glossary/glossary#000300" role="glossary">mask</Link> to generate the following identification
		code:</Paragraph>
      <Paragraph>DAF NL*D*Manu*RD*00437</Paragraph>
      <Paragraph>The code consists of the following segments:</Paragraph>
      <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
         <THEAD noTR="1">
            <TR no="1" isLast="true">
               <TD rowspan="1" colspan="1">Segment</TD>
               <TD rowspan="1" colspan="1">Description</TD>
            </TR>
         </THEAD>
         <TBODY noTR="5">
            <TR no="1" isLast="false">
               <TD rowspan="1" colspan="1">DAF NL</TD>
               <TD rowspan="1" colspan="1">Fixed alphanumeric string</TD>
            </TR>
            <TR no="2" isLast="false">
               <TD rowspan="1" colspan="1">D</TD>
               <TD rowspan="1" colspan="1">Code that represents the year 1993</TD>
            </TR>
            <TR no="3" isLast="false">
               <TD rowspan="1" colspan="1">Manu</TD>
               <TD rowspan="1" colspan="1">Feature code that represents a manually operated gearbox (as
				opposed to a variomatic gearbox)</TD>
            </TR>
            <TR no="4" isLast="false">
               <TD rowspan="1" colspan="1">RD</TD>
               <TD rowspan="1" colspan="1">Color code that stands for red</TD>
            </TR>
            <TR no="5" isLast="true">
               <TD rowspan="1" colspan="1">00437</TD>
               <TD rowspan="1" colspan="1">Item sequence number</TD>
            </TR>
         </TBODY>
      </TABLE>
   </GeneralSection>
   <ProcedureSection>
      <ProcIntro>
         <Paragraph>To define a mask to generate this type of identification code,
		  complete the following steps:</Paragraph>
      </ProcIntro>
      <Steps>
         <Step>
            <StepTitle>Define a mask code</StepTitle>
            <Paragraph>In the <GUIRef href="/baanerp/tc/ibd/tcibd4102m000" role="session">Masks (tcibd4102m000)</GUIRef> session, define a mask code and description. Enter an
			 asterisk (*) as separator.</Paragraph>
         </Step>
         <Step>
            <StepTitle>Define the mask segments</StepTitle>
            <Paragraph>In the <GUIRef href="/baanerp/tc/ibd/tcibd4503m000" role="session">Mask Segments (tcibd4503m000)</GUIRef> session, select the defined mask and add the following
			 segments:</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <TBODY noTR="6">
                  <TR no="1" isLast="false">
                     <TH rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/ibd/tcibd4103s000#tcibd403.seqn" role="manual">Segment Number</GUIRef>
                     </TH>
                     <TH rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/ibd/tcibd4103s000#tcibd403.sety" role="manual">Segment Type</GUIRef>
                     </TH>
                     <TH width="95" rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/ibd/tcibd4503m000#tcibd403.seva" role="manual">Segment Value</GUIRef>
                     </TH>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD rowspan="1" colspan="1">10</TD>
                     <TD rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/domains/ibd.sety#alphanumeric" role="option">Alphanumeric</GUIRef>
                     </TD>
                     <TD width="95" rowspan="1" colspan="1">DAF NL</TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD rowspan="1" colspan="1">20</TD>
                     <TD rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/domains/ibd.sety#function" role="option">Translation Table</GUIRef>
                     </TD>
                     <TD width="95" rowspan="1" colspan="1">Year</TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD rowspan="1" colspan="1">30</TD>
                     <TD rowspan="1" colspan="1"> 
                        <GUIRef href="/baanerp/tc/domains/ibd.sety#option" role="option">Option</GUIRef>
                     </TD>
                     <TD width="95" rowspan="1" colspan="1">Gearbox type</TD>
                  </TR>
                  <TR no="5" isLast="false">
                     <TD rowspan="1" colspan="1">40</TD>
                     <TD rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/domains/ibd.sety#function" role="option">Translation Table</GUIRef>
                     </TD>
                     <TD width="95" rowspan="1" colspan="1">Color</TD>
                  </TR>
                  <TR no="6" isLast="true">
                     <TD rowspan="1" colspan="1">50</TD>
                     <TD rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/domains/ibd.sety#sequence" role="option">Sequence</GUIRef>
                     </TD>
                     <TD width="95" rowspan="1" colspan="1">1</TD>
                  </TR>
               </TBODY>
            </TABLE>
            <Paragraph>Note that if you
			 select the <GUIRef href="/baanerp/tc/domains/ibd.sety#function" role="option">Translation Table</GUIRef> segment
			 type, you must define a translation table. Define translation tables as
			 described in step 3 and step 4 before you continue in the <GUIRef href="/baanerp/tc/ibd/tcibd4103s000" role="session">Mask Segment (tcibd4103s000)</GUIRef> session.</Paragraph>
         </Step>
         <Step>
            <StepTitle>Define the translation tables</StepTitle>
            <Paragraph>Define the following
			 translation tables in the <GUIRef href="/baanerp/tc/ibd/tcibd4504m000" role="session">Translation Tables (tcibd4504m000)</GUIRef> session:</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <TBODY noTR="3">
                  <TR no="1" isLast="false">
                     <TH rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/ibd/tcibd4504m000#tcibd404.tfco" role="manual">Translation Table</GUIRef>
                     </TH>
                     <TH rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/ibd/tcibd4504m000#tcibd404.sety" role="manual">Segment Type</GUIRef>
                     </TH>
                     <TH rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/ibd/tcibd4104s000#tcibd404.trco" role="manual">Value Type</GUIRef>
                     </TH>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD rowspan="1" colspan="1">YEAR</TD>
                     <TD rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/domains/ibd.sety#date" role="option">Date</GUIRef>
                     </TD>
                     <TD rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/domains/com.datp#year.4digit" role="option">Year (4-digit)</GUIRef>
                     </TD>
                  </TR>
                  <TR no="3" isLast="true">
                     <TD rowspan="1" colspan="1">COLOR</TD>
                     <TD rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/domains/ibd.sety#option" role="option">Option</GUIRef>
                     </TD>
                     <TD rowspan="1" colspan="1">Color</TD>
                  </TR>
               </TBODY>
            </TABLE>
         </Step>
         <Step>
            <StepTitle>Define the converted values</StepTitle>
            <Paragraph>In the <GUIRef href="/baanerp/tc/ibd/tcibd4504m000" role="session">Translation Tables (tcibd4504m000)</GUIRef> session, from the <Link href="/baanerp/tc/glossary/glossary#specific" role="glossary">appropriate</Link> menu, start 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.</Paragraph>
            <Paragraph>The first table you must define is the YEAR translation
			 table:</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <CAPTION>YEAR translation table</CAPTION>
               <TBODY noTR="5">
                  <TR no="1" isLast="false">
                     <TH rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/ibd/tcibd4106m000#tcibd404.trco" role="manual">Value Type</GUIRef>
                     </TH>
                     <TH width="133" rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/ibd/tcibd4106m000#tcibd406.tval" role="manual">Segment Value</GUIRef>
                     </TH>
                     <TH width="149" rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/ibd/tcibd4106m000#tcibd406.tali" role="manual">Translated Value</GUIRef>
                     </TH>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/domains/com.datp#year.4digit" role="option">Year (4-digit)</GUIRef>
                     </TD>
                     <TD width="133" rowspan="1" colspan="1">1990</TD>
                     <TD width="149" rowspan="1" colspan="1">A</TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD rowspan="1" colspan="1">-</TD>
                     <TD width="133" rowspan="1" colspan="1">1991</TD>
                     <TD width="149" rowspan="1" colspan="1">B</TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD rowspan="1" colspan="1">-</TD>
                     <TD width="133" rowspan="1" colspan="1">1992</TD>
                     <TD width="149" rowspan="1" colspan="1">C</TD>
                  </TR>
                  <TR no="5" isLast="true">
                     <TD rowspan="1" colspan="1">-</TD>
                     <TD width="133" rowspan="1" colspan="1">1993</TD>
                     <TD width="149" rowspan="1" colspan="1">D</TD>
                  </TR>
               </TBODY>
            </TABLE>
            <Paragraph>The second table is the COLOR translation table:</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <CAPTION>COLOR translation table</CAPTION>
               <TBODY noTR="6">
                  <TR no="1" isLast="false">
                     <TH rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/ibd/tcibd4106m000#tcibd404.trco" role="manual">Value Type</GUIRef>
                     </TH>
                     <TH rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/ibd/tcibd4106m000#tcibd406.tval" role="manual">Segment Value</GUIRef>
                     </TH>
                     <TH rowspan="1" colspan="1">
                        <GUIRef href="/baanerp/tc/ibd/tcibd4106m000#tcibd406.tali" role="manual">Translated Value</GUIRef>
                     </TH>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD rowspan="1" colspan="1">Color</TD>
                     <TD rowspan="1" colspan="1">Black</TD>
                     <TD rowspan="1" colspan="1">BK</TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD rowspan="1" colspan="1">-</TD>
                     <TD rowspan="1" colspan="1">Blue</TD>
                     <TD rowspan="1" colspan="1">BU</TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD rowspan="1" colspan="1">-</TD>
                     <TD rowspan="1" colspan="1">Red</TD>
                     <TD rowspan="1" colspan="1">RD</TD>
                  </TR>
                  <TR no="5" isLast="false">
                     <TD rowspan="1" colspan="1">-</TD>
                     <TD rowspan="1" colspan="1">Green</TD>
                     <TD rowspan="1" colspan="1">GN</TD>
                  </TR>
                  <TR no="6" isLast="true">
                     <TD rowspan="1" colspan="1">-</TD>
                     <TD rowspan="1" colspan="1">Yellow</TD>
                     <TD rowspan="1" colspan="1">YW</TD>
                  </TR>
               </TBODY>
            </TABLE>
         </Step>
      </Steps>
   </ProcedureSection>
</ManualTopic>