<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/tg/brg/tgbrg1900m000" xml:lang="en">
   <Header>
      <Title>Convert Illegal Codes (tgbrg1900m000)</Title>
   </Header>
   <HelpTopic>
      <AimSection>
         <Paragraph> Use this session to correct illegal codes of <Link href="/baanerp/tg/glossary/glossary#000061" role="glossary">model items</Link> that were
		  created in Baan releases prior to Baan 5.0. As a result of domain
		  restrictions, codes that were legal in earlier ERP releases must be converted
		  if you want to use the model items in ERP5.0c and future releases.</Paragraph>
      </AimSection>
      <GeneralSection>
         <Paragraph>This session checks
		  all codes that appear within the range of companies that you have specified,
		  and converts illegal codes to legal codes.</Paragraph>
         <GeneralSection>
            <SectionTitle>Conversion procedure</SectionTitle>
            <Paragraph>The logical
			 expression for restricted codes is: <Code>[a-zA-Z][a-zA-Z0-9]</Code>
            </Paragraph>
         </GeneralSection>
         <Paragraph>This means that a
		  restricted code should start with a letter, and can only be followed by 0 or
		  more letters, digits and underscores.</Paragraph>
         <Paragraph>The conversion of the
		  illegal codes is dealt with in the following way:</Paragraph>
         <ProcedureList>
            <ListItem>Illegal characters
			 that are <Emphasis>not</Emphasis> on the first position of a code are replaced
			 by an "_".</ListItem>
         </ProcedureList>
         <ExampleSection>
            <SectionTitle>Example</SectionTitle>
            <Paragraph>Code <Code>MPU-08</Code> becomes <Code>MPU_08</Code> after conversion.</Paragraph>
         </ExampleSection>
         <List>
            <ListIntro>An illegal character on the first position of a code is
			 converted in the following way:</ListIntro>
            <ListItem>The digit 1 is
			 converted to the letter A, the 2 to B, etc. The digit 0 is converted to the
			 letter J.</ListItem>
            <ListItem>All other invalid
			 characters are converted to the letter Z.</ListItem>
         </List>
         <ExampleSection>
            <SectionTitle>Example</SectionTitle>
            <Paragraph>Code 2000 becomes
			 B000 after conversion. Code <Code>[0000]</Code> becomes <Code>Z0000_</Code> after conversion.</Paragraph>
         </ExampleSection>
      </GeneralSection>
   </HelpTopic>
   <Fields>
      <FieldHelp ID="convert.yn">
         <Header>
            <Title>Convert Illegal Codes</Title>
         </Header>
         <FuncDesc> If this check box is selected, illegal codes that occur
		  in the range of <Link href="/baanerp/tg/glossary/glossary#000091" role="glossary">companies</Link> that you have
		  selected, are converted to legal codes according to illegal coding conversion
		  procedure.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="delete.yn">
         <Header>
            <Title>Delete Illegal Codes</Title>
         </Header>
         <FuncDesc> If this check box is selected, the illegal codes that
		  occur in the selected range of <Link href="/baanerp/tg/glossary/glossary#000091" role="glossary">companies</Link> are deleted after
		  conversion.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="print.yn">
         <Header>
            <Title>Print Report</Title>
         </Header>
         <FuncDesc> If this check box is selected, a report is printed that
		  shows the following data:</FuncDesc>
         <SimpleSection>
            <List>
               <ListItem>The converted codes.</ListItem>
               <ListItem>The deleted codes.</ListItem>
               <ListItem>Existing codes that
				are generated. Existing codes must be changed manually to preserve the <Link href="/baanerp/tg/glossary/glossary#000061" role="glossary">model items</Link>.</ListItem>
            </List>
         </SimpleSection>
      </FieldHelp>
   </Fields>
   <FormCommands>
      <CommandHelp ID="exec.cont.process">
         <Header>
            <Title>Convert...</Title>
         </Header>
         <FuncDesc>If you click this button (or command), the illegal codes in the
		  range of companies that you have selected are converted to legal codes.</FuncDesc>
      </CommandHelp>
   </FormCommands>
</Session>