<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/bc/mtc/bcmtc1223m000" xml:lang="en">
	<Header>
		<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Generate Default Order Numbers (bcmtc1223m000)</Title>
	</Header>
	<HelpTopic><AimSection><Paragraph>Use this session to generate default sales, purchase and work order numbers. The settings for generating default order number can be set per order origin. This implies that default sales order numbers can be generated using another method than generated default purchase or work order numbers.</Paragraph>
		</AimSection>
		<GeneralSection><Paragraph>Generating default orders numbers is controlled by setting 2 parameters:</Paragraph>
			<List><ListItem>Generation Method</ListItem>
				<ListItem>10-to9 Conversion Handling</ListItem>
			</List>
			<Paragraph>The offered methods for generating default order numbers are:</Paragraph>
			<List><ListItem>One-to-one Conversion The  order numbers are converted without any changes to the ERP LN 6.1 order number.</ListItem>
				<ListItem>First Characters are Zero The  order numbers are converted to ERP LN 6.1 with multiple zero’s as prefix.</ListItem>
				<ListItem>Use Prefix The  sales order number prefix, stored in OMAR COMIN 17, is used to convert the order number to ERP LN 6.1. For purchase and work orders, no such prefix is available. Converting these orders based on the ‘use prefix’ method, is done by taking the defined purchase order and work order series in session "Conversion Parameters for Common" as prefix.</ListItem>
				<ListItem>Generate New Numbers New order numbers are generated based on predefined number groups and series, defined in the Conversion Parameters for Common, and converted to ERP LN 6.1. For sales orders, COMIN 17 is used as sales order series.</ListItem>
			</List>
			<Paragraph>As the order numbers in  can contain up to 10 positions, whereas ERP LN 6.1 allows 9 positions, the ’10-to-9 Conversion Handling’ parameter controls the 10 positions to 9 positions conversion.</Paragraph>
			<List><ListItem>Chop first Character</ListItem>
				<ListItem>Chop last Character</ListItem>
			</List>
			<Paragraph>Use the ‘Validate’ option present in session <GUIRef href="" role="manual">Mapping Table for Order Numbers (bcmtc1123m000)</GUIRef>, after generating default order numbers, for detecting duplicate order numbers per order origin. In this session it is always possible to manually change a defaulted ERP LN 6.1 order number.</Paragraph>
		</GeneralSection>
		<GeneralSection><SectionTitle>Preparation</SectionTitle>
			<Paragraph>Before you can use this session all sales, purchase and work order numbers that are to be converted must be present in session <GUIRef href="" role="manual">Mapping Table for Order Numbers (bcmtc1123m000)</GUIRef>.</Paragraph>
		</GeneralSection>
		<GeneralSection><SectionTitle>Execution</SectionTitle>
			<Paragraph>Generating default order numbers depends on whether Master Data is converted or Production Data (including Master Data). If Production Data is converted it is mandatory to run the session.</Paragraph>
		</GeneralSection>
		<GeneralSection><SectionTitle>Process logic</SectionTitle>
			<Paragraph>The order number conversion process is controlled by the selected order origin, the selected method and 10-to-9 conversion handling. In the following flow/pseudo code details the functionality of each of the offered conversion methods. This flow is followed for each source order number in order to get a target order number.</Paragraph>
			<List><ListIntro>If method = one-to-one conversion</ListIntro>
				<ListItem>If order number length is 10. <List><ListItem>If 10-to-9 Conversion = chop first character -&gt; target order number = source order number – first position.</ListItem>
						<ListItem>If 10-to-9 Conversion = chop last character -&gt; target order number = source order number – last position</ListItem>
						<ListItem>If order number length is 9 -&gt; target order number = source order number.</ListItem>
						<ListItem>If order number length is less than 9 -&gt; target order number = source order number</ListItem>
					</List>
				</ListItem>
			</List>
			<List><ListIntro>If method = first characters are zero</ListIntro>
				<ListItem>If order number length is 10. <List><ListItem>If 10-to-9 Conversion = chop first character -&gt; target order number = source order number – first position</ListItem>
						<ListItem>If 10-to-9 Conversion = chop last character -&gt; target order number = source order number – last position.</ListItem>
						<ListItem>If order number length is 9 -&gt; target order number = source order number.</ListItem>
						<ListItem>If order number length is less than 9 -&gt; target order number = source order number prefixed with zero’s up to 9 positions.</ListItem>
					</List>
				</ListItem>
			</List>
			<List><ListIntro>If method = use prefix</ListIntro>
				<ListItem>If order number length is 10 <List><ListItem>If 10-to-9 Conversion = chop first character -&gt; target order number = source order number – first position.</ListItem>
						<ListItem>If 10-to-9 Conversion = chop last character -&gt; target order number = source order number – last position.</ListItem>
						<ListItem>If order number length is 9 -&gt; target order number = source order number.</ListItem>
						<ListItem>If order number length is less than 9. <List><ListItem>Determine the sales, purchase and work order series (OMAR COMIN 17, bcmtc100.srpo, bcmtc100.srwo) and the length of these series.</ListItem>
								<ListItem>If the available length (available length = 9 – source order number length) is greater than the series length, the order series is used as a order number prefix. If the prefix together with the source order number does not add up to 9 positions, zeros are put in between the prefix and source order number. -&gt; target order number = prefix + (zeros +) source order number.</ListItem>
							</List>
						</ListItem>
					</List>
				</ListItem>
			</List>
			<List><ListIntro>If method = generate new numbers</ListIntro>
				<ListItem>Determine the last (previous) issued order number for the current origin (sales, purchase, work order) <List><ListItem>-&gt; target order number = last issued order number + 1</ListItem>
					</List>
				</ListItem>
			</List>
			<Paragraph>The following table contains some example source order numbers, with various lengths, and the defaulted target order number, applying the process logic described above.</Paragraph>
			<TABLE border="5" cellpadding="5" cellspacing="10"><THEAD><TR><TD width="20%">Source Order no</TD>
						<TD width="19%">One-to-One</TD>
						<TD width="163">First Characters are Zero</TD>
						<TD width="156">Use Prefix *</TD>
						<TD width="19%">Generate New * Numbers</TD>
					</TR>
				</THEAD>
				<TBODY><TR><TD width="20%">HP1000</TD>
						<TD width="19%">HP1000</TD>
						<TD width="163">000HP1000</TD>
						<TD width="156">MM0HP1000</TD>
						<TD width="19%">MM0000001</TD>
					</TR>
					<TR><TD width="20%">HP1000001</TD>
						<TD width="19%">HP1000001</TD>
						<TD width="163">HP1000001</TD>
						<TD width="156">HP1000001</TD>
						<TD width="19%">MM0000001</TD>
					</TR>
					<TR><TD width="20%">HP10000010 **</TD>
						<TD width="19%">P10000010</TD>
						<TD width="163">P10000010</TD>
						<TD width="156">P10000010</TD>
						<TD width="19%">MM0000001</TD>
					</TR>
					<TR><TD width="20%">HP10000010 ***</TD>
						<TD width="19%">HP1000001</TD>
						<TD width="163">HP1000001</TD>
						<TD width="156">HP1000001</TD>
						<TD width="19%">MM0000001</TD>
					</TR>
				</TBODY>
			</TABLE>
			<Paragraph>* In these example order number conversion ‘MM’ is used as Series.</Paragraph>
			<Paragraph>** Order number length is 10; order numbers are defaulted using the ‘chop first character’ option.</Paragraph>
			<Paragraph>*** Order number length is 10; order numbers are defaulted using the ‘chop last character’ option.</Paragraph>
		</GeneralSection>
		<GeneralSection><SectionTitle>Restart</SectionTitle>
			<Paragraph>When you restart the session to generate new default order numbers, this will only have effect if the checkbox ‘Overwrite’ is selected.</Paragraph>
		</GeneralSection>
	</HelpTopic>
	<Fields><FieldHelp ID="e.gen.def"><Header>
				<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Generate Default Sales Order Numbers</Title>
			</Header>
			<FuncDesc>Indicates if default sales, purchase and/or work order numbers are to be generated.</FuncDesc>
			<AllowedValues><SectionTitle>Allowed values</SectionTitle>
				<Paragraph>Yes and No</Paragraph>
			</AllowedValues>
			<DefaultValue><SectionTitle>Default value</SectionTitle>
				<Paragraph>No</Paragraph>
			</DefaultValue>
		</FieldHelp>
		<FieldHelp ID="e.sls.series"><Header>
				<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Sales Order Series</Title>
			</Header>
			<FuncDesc>The order series that is used in generating default sales order numbers when using methods ‘Use Prefix’ and ‘Generate New Numbers’.</FuncDesc>
			<DefaultValue><SectionTitle>Default value</SectionTitle>
				<Paragraph>The Automatic Sales Order Number Prefix, as defined in COMIN variable 17 of the  OMAR database.</Paragraph>
			</DefaultValue>
		</FieldHelp>
		<FieldHelp ID="e.overwrite"><Header>
				<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Overwrite</Title>
			</Header>
			<FuncDesc>The ‘Overwrite’ checkbox can be used to overwrite the ERP LN 6.1 order numbers generated in a previous run. If you select the ‘Overwrite’ checkbox in combination with the ‘Make Empty’ method it clears all generated Order Numbers.</FuncDesc>
			<AllowedValues><SectionTitle>Allowed values</SectionTitle>
				<Paragraph>Yes and No</Paragraph>
			</AllowedValues>
			<DefaultValue><SectionTitle>Default value</SectionTitle>
				<Paragraph>No</Paragraph>
			</DefaultValue>
		</FieldHelp>
		<FieldHelp ID="e.method"><Header>
				<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Order Number Generation Method</Title>
			</Header>
			<FuncDesc>The Order Number Generation Method parameter controls the method to be used for generating default order numbers.</FuncDesc>
			<AllowedValues><SectionTitle>Allowed values</SectionTitle>
				<List><ListItem>One-To-One</ListItem>
					<ListItem>First Characters are Zero</ListItem>
					<ListItem>Use Prefix</ListItem>
					<ListItem>Generate New Numbers</ListItem>
					<ListItem>Make Empty</ListItem>
				</List>
			</AllowedValues>
			<SimpleSection><Paragraph>If this session is restarted for the purpose of regenerating default order numbers, the various methods only have effect if ‘Overwrite‘ option is selected.</Paragraph>
			</SimpleSection>
			<DefaultValue><SectionTitle>Default value</SectionTitle>
				<Paragraph>One-To-One</Paragraph>
			</DefaultValue>
			<RelatedTopics><SectionTitle>Related topics</SectionTitle>
				<RelTopic>For more information and examples on ‘one-to-one’ order number conversion, refer to "To migrate order numbers".</RelTopic>
			</RelatedTopics>
		</FieldHelp>
		<FieldHelp ID="e.ten.to.nine"><Header>
				<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">10-to-9 Conversion Handling</Title>
			</Header>
			<FuncDesc>Indicates how to handle  order numbers that exceed the 9 positions that are available in ERP LN 6.1</FuncDesc>
			<AllowedValues><SectionTitle>Allowed values</SectionTitle>
				<List><ListItem>Chop first Character</ListItem>
					<ListItem>Chop last Character</ListItem>
				</List>
			</AllowedValues>
			<DefaultValue><SectionTitle>Default value</SectionTitle>
				<List><ListItem>Chop first Character</ListItem>
				</List>
			</DefaultValue>
		</FieldHelp>
		<FieldHelp ID="bcmtc100.srpo"><Header>
				<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Purchase Order Series</Title>
			</Header>
			<FuncDesc>The order series that is used in generating default purchase order numbers when using methods ‘Use Prefix’ and ‘Generate New Numbers’.</FuncDesc>
			<DefaultValue><SectionTitle>Default value</SectionTitle>
				<Paragraph>The Purchase Order Series as defined in session "Conversion Parameters for Common" is defaulted and cannot be changed</Paragraph>
			</DefaultValue>
		</FieldHelp>
		<FieldHelp ID="bcmtc100.srwo"><Header>
				<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Work Order Series</Title>
			</Header>
			<FuncDesc>The order series that is used in generating default work order numbers when using methods ‘Use Prefix’ and ‘Generate New Numbers’.</FuncDesc>
			<DefaultValue><SectionTitle>Default value</SectionTitle>
				<Paragraph>The Work Order Series as defined in session "Conversion Parameters for Common" is defaulted and cannot be changed.</Paragraph>
			</DefaultValue>
		</FieldHelp>
	</Fields>
	<FormCommands><CommandHelp ID="generate.defaults"><Header>
				<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Generate</Title>
			</Header>
			<FuncDesc>This specific command generates default values for the fields in this session.</FuncDesc>
		</CommandHelp>
	</FormCommands>
</Session>
