<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/fm/onlinemanual/000031" xml:lang="en">
	<Header>
		<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Lead time calculations for originating orders</Title>
		<Keyword><Level1>Lead times</Level1>
		</Keyword>
		<Keyword><Level1>Calculations</Level1>
		</Keyword>
		<Keyword><Level1>Freight costs</Level1>
		</Keyword>
		<Keyword><Level1>Originating orders</Level1>
		</Keyword>
	</Header>
	<GeneralSection><Paragraph>For <Link href="/baanerp/fm/glossary/glossary#000048" role="glossary">originating orders</Link>, you can use the <GUIRef href="/baanerp/fm" role="package">Freight Management</GUIRef> lead time calculation engine to calculate the transportation time of items linked to sold-to or buy-from business partners. This engine is enabled if <GUIRef href="/baanerp/fm" role="package">Freight Management</GUIRef> is implemented, and the <GUIRef href="/baanerp/td/sls/tdsls4101m000#tdsls401.gefo" role="formfield">Generate Freight Order from Sales</GUIRef> check box is selected in the <GUIRef href="/baanerp/td/sls/tdsls4101m000" role="session">Sales Order Lines (tdsls4101m000)</GUIRef> session, or the <GUIRef href="/baanerp/td/pur/tdpur4101s000#tdpur401.gefo" role="formfield">Generate Freight Orders from Purchase</GUIRef> check box is selected in the <GUIRef href="/baanerp/td/pur/tdpur4101s000" role="session">Purchase Order - Line (tdpur4101s000)</GUIRef> session. Depending on the type of originating order, the transportation time is the planned delivery date or the planned receipt date of the goods listed on the order. To use the lead time calculation engine, click <GUIRef href="" role="manual">Calculate</GUIRef> next to the <GUIRef href="" role="manual">Planned Delivery Date</GUIRef> field in the <GUIRef href="/baanerp/td/sls/tdsls4101m000" role="session">Sales Order Lines (tdsls4101m000)</GUIRef> session or the <GUIRef href="/baanerp/td/ipu/tdipu0110m000" role="session">Item - Purchase Business Partner (tdipu0110m000)</GUIRef> session.</Paragraph>
		<Paragraph>While <GUIRef href="/baanerp/fm" role="package">Freight Management</GUIRef>
			<GUIRef href="/baanerp/fm/lbd" role="module">Load Building</GUIRef> is used for detailed transportation planning, you can use lead time calculation at originating order level to immediately receive a fair estimate of the transportation lead time of an order. The lead times calculated at originating order level may differ from the lead times calculated by <GUIRef href="/baanerp/fm/lbd" role="module">Load Building</GUIRef>.</Paragraph>
		<Paragraph>The accuracy of the results produced by the transport lead time calculation engine, largely depends on the data which it is fed. The calculation engine uses the following data:</Paragraph>
		<List><ListItem>Origin address</ListItem>
			<ListItem>Destination address</ListItem>
			<ListItem>Freight service level</ListItem>
			<ListItem>Carrier</ListItem>
			<ListItem>Route</ListItem>
		</List>
		<Paragraph>Of this data, the origin and destination addresses are mandatory, these addresses are always provided to the calculation engine.</Paragraph>
		<Paragraph>The carrier and the <GUIRef href="/baanerp/fm/fmd/fmfmd0170m000#fmfmd070.serv" role="formfield">Freight Service Level</GUIRef> can either be entered in the originating order or order line or defined for the item of the order in the <GUIRef href="/baanerp/fm/fmd/fmfmd1100m000" role="session">Items - Freight Management (fmfmd1100m000)</GUIRef> session. For further information, see <Link href="/baanerp/fm/onlinemanual/000007" role="manual">The use of items in Freight Management</Link> and <Link href="/baanerp/fm/onlinemanual/000006" role="manual">The use of freight services levels</Link>.</Paragraph>
		<Paragraph>The other data is only entered in the originating order or order line.</Paragraph>
		<Paragraph>If a carrier or a freight service level exists in both the originating order and in the <GUIRef href="/baanerp/fm/fmd/fmfmd1100m000" role="session">Items - Freight Management (fmfmd1100m000)</GUIRef> session, the carrier or freight service level of the originating order has priority.</Paragraph>
		<Paragraph>If no carrier exists for the originating order, order line, or item, the calculation engine can nevertheless find a carrier, as long as a transport means group, a transport type, or a combination code is defined for the item of the order in the <GUIRef href="/baanerp/fm/fmd/fmfmd1100m000" role="session">Items - Freight Management (fmfmd1100m000)</GUIRef> session. In such cases, the calculation engine looks for a carrier that matches the transport means group of the item. For further information, see <Link href="/baanerp/fm/onlinemanual/000002" role="manual">The use of transport types</Link>, <Link href="/baanerp/fm/onlinemanual/000003" role="manual">The use of combination codes</Link>, and <Link href="/baanerp/fm/onlinemanual/000005" role="manual">The use of transport means groups</Link>.</Paragraph>
		<Paragraph>If no transport means group exists for the item, the calculation engine looks for a transport means group that matches the combination code or transport type of the item, and then looks for a carrier that is linked to the transport means group.</Paragraph>
		<Paragraph>If more than one carrier is linked to the transport means group, it selects the carrier for which the transport means group is defined as the default transport means group.</Paragraph>
		<Paragraph>For each combination of data given, the lead time calculation engine produces the following results (remember that the origin and destination addresses are always given because they are mandatory):</Paragraph>
		<GeneralSection><SectionTitle>Origin and destination addresses</SectionTitle>
			<Paragraph>If only the origin and destination addresses of the originating order are given to the lead time calculation engine, the time maintained in either the <GUIRef href="/baanerp/tc/com/tccom4137s000" role="session">Distance Table by City (tccom4137s000)</GUIRef> session or the <GUIRef href="/baanerp/tc/com/tccom4138s000" role="session">Distance Table by ZIP Code/Postal Code (tccom4138s000)</GUIRef> session is returned as the transport lead time.</Paragraph>
		</GeneralSection>
		<GeneralSection><SectionTitle>Freight service level, origin and destination addresses</SectionTitle>
			<Paragraph>If the <GUIRef href="/baanerp/td/sls/tdsls4101m000#tdsls401.serv" role="formfield">Freight Service Level</GUIRef> is given in addition to the origin and destination addresses, the lead time maintained in the <GUIRef href="/baanerp/fm/fmd/fmfmd0170m000" role="session">Freight Service Levels (fmfmd0170m000)</GUIRef> session is returned as the transport lead time. You can enter the <GUIRef href="/baanerp/td/sls/tdsls4101m000#tdsls401.serv" role="formfield">Freight Service Level</GUIRef> in the originating sales or purchase order line, or define the <GUIRef href="/baanerp/td/sls/tdsls4101m000#tdsls401.serv" role="formfield">Freight Service Level</GUIRef> for the item in the <GUIRef href="/baanerp/fm/fmd/fmfmd1100m000" role="session">Items - Freight Management (fmfmd1100m000)</GUIRef> session.</Paragraph>
		</GeneralSection>
		<GeneralSection><SectionTitle>Carrier, origin and destination addresses</SectionTitle>
			<Paragraph>If the <GUIRef href="/baanerp/td/sls/tdsls4101m000#tdsls401.cfrw" role="formfield">Carrier</GUIRef> and the origin and destination addresses are given, the transportation lead time is calculated by dividing the travelling time between the origin and destination addresses by the average speed of the <Link href="/baanerp/fm/glossary/glossary#000004" role="glossary">transport means group</Link> of the carrier. If more than one transport means group is linked to the carrier, the lead time calculation search sequence for transport means groups is as follows:</Paragraph>
			<List><ListItem>The transport means group defined for the item in the <GUIRef href="/baanerp/fm/fmd/fmfmd1100m000" role="session">Items - Freight Management (fmfmd1100m000)</GUIRef> session is returned.</ListItem>
				<ListItem>The transport means group that matches the <Link href="/baanerp/fm/glossary/glossary#0000001" role="glossary">combination code</Link> or the <Link href="/baanerp/fm/glossary/glossary#0000002" role="glossary">transport type</Link> defined for the item in the <GUIRef href="/baanerp/fm/fmd/fmfmd1100m000" role="session">Items - Freight Management (fmfmd1100m000)</GUIRef> session is returned. If more than one transport means group matches these values, the default transport means group of the carrier is returned if the transport means group matches the combination-code or transport-type values. If the default transport means group of the carrier does not meet these values, the transport means group with the slowest average speed is returned. This is based on the assumption that the slowest transport means group is the cheapest. (Carrier-rate information from SSA ERP <GUIRef href="/baanerp/td/pcg" role="module">Pricing Control</GUIRef> is outside the scope of the transport lead time calculation engine.) If more than one carrier has the lowest average speed, the calculation engine selects the first one it encounters in the database.</ListItem>
			</List>
		</GeneralSection>
		<Note><SectionTitle>Note</SectionTitle>
			<Paragraph>The calculated travelling times are offset against the calendar of the carrier.</Paragraph>
		</Note>
		<GeneralSection><SectionTitle>Route, origin and destination addresses</SectionTitle>
			<Paragraph>If the <GUIRef href="/baanerp/fm/foc/fmfoc1150m000#fmfoc150.crte" role="formfield">Route</GUIRef> is given in addition to the origin and destination addresses, the transport lead time calculation engine first looks for <Link href="/baanerp/fm/glossary/glossary#000024" role="glossary">route plans</Link> and then for <Link href="/baanerp/fm/glossary/glossary#000031" role="glossary">standard routes</Link> with matching routes and addresses. If more than one matching route plan or standard route is found, the standard route is selected as specified in the <GUIRef href="/baanerp/fm/lbd/fmlbd0100m000" role="session">Freight Planning Parameters (fmlbd0100m000)</GUIRef> session (cheapest, fastest, or shortest), and route plans have priority over standard routes. If the calculation engine still finds more than one route plan, it selects the first one it encounters in the database. For further information, see <Link href="/baanerp/fm/onlinemanual/000022" role="manual">The use of route plans</Link> and <Link href="/baanerp/fm/onlinemanual/000021" role="manual">The use of standard routes</Link>.</Paragraph>
		</GeneralSection>
		<GeneralSection><SectionTitle>Route, carrier, origin and destination addresses</SectionTitle>
			<Paragraph>If the route, the carrier, and the origin and destination addresses are given, the transport lead time calculation engine first looks for <Link href="/baanerp/fm/glossary/glossary#000024" role="glossary">route plans</Link> and then for <Link href="/baanerp/fm/glossary/glossary#000031" role="glossary">standard routes</Link> with matching routes, carriers, and addresses.</Paragraph>
			<Paragraph>If more than one matching route plan or standard route is found, the calculation engine selects the route plan or standard route with a transport means group that matches the transport means group of the carrier.</Paragraph>
			<Paragraph>If the calculation engine still finds more than one route plan or standard route, the standard route is selected as specified in the <GUIRef href="/baanerp/fm/lbd/fmlbd0100m000" role="session">Freight Planning Parameters (fmlbd0100m000)</GUIRef> session (cheapest, fastest, or shortest), and route plans have priority over standard routes.</Paragraph>
			<Paragraph>If the calculation engine still finds more than one route plan, the calculation engine selects the first plan it encounters in the database.</Paragraph>
		</GeneralSection>
		<Note><SectionTitle>Note</SectionTitle>
			<Paragraph>Address lead times and load/unload date tolerances are added to the calculated lead times. For each loading address, loading time and waiting time for loading is added. For each unloading address, time for unloading and waiting time for unloading is added. Address lead times, waiting times for loading/unloading, and load/unload date tolerances are defined in the <GUIRef href="/baanerp/fm/fmd/fmfmd0110m000" role="session">Addresses - Freight Management (fmfmd0110m000)</GUIRef> session. For further information, see <Link href="/baanerp/fm/onlinemanual/000018" role="manual">Address lead times</Link> and <Link href="/baanerp/fm/onlinemanual/000017" role="manual">Load and unload date/time tolerances</Link>.</Paragraph>
		</Note>
	</GeneralSection>
	<RelatedTopics><SectionTitle>Related topics</SectionTitle>
		<RelTopic><Link href="/baanerp/tc/onlinemanual/000329" role="manual">Item data</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
