<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/td/onlinemanual/000066" xml:lang="en">
   <Header>
      <Title>Order priority (simulations)</Title>
      <Keyword type="header" order="d1e1602231">
         <Level1>Order priority</Level1>
         <Level2>simulating</Level2>
      </Keyword>
      <Keyword type="header" order="d1e1602236">
         <Level1>Simulation</Level1>
         <Level2>order priority</Level2>
      </Keyword>
      <Keyword type="header" order="d1e1602241">
         <Level1>Sales order</Level1>
         <Level2>priorities</Level2>
      </Keyword>
   </Header>
   <AimSection ID="aim_sales_order_priority_simulations">
      <Paragraph>You can use <Link href="/baanerp/td/glossary/glossary#OrderPrioriS_td" role="glossary">order priority simulations</Link> to calculate the priority
		sequence in which inventory is allocated to orders. For example, if
		insufficient inventory is available, you can use a priority simulation to sort
		sales orders according to the order delivery priority.</Paragraph>
   </AimSection>
   <GeneralSection>
      <List>
         <ListIntro>The <Link href="/baanerp/td/sls/tdsls0100s400#tdsls000.opri.4" role="formfield">Order Priority Method</Link> field
		  in the <GUIRef href="/baanerp/td/sls/tdsls0100s400" role="session">Sales Order Parameters (tdsls0100s400)</GUIRef> session determines how the order priority
		  is defined.</ListIntro>
         <ListItemHead>
            <GUIRef href="/baanerp/td/domains/sls.opri#simulation.code" role="option">Simulation</GUIRef>
         </ListItemHead>
         <ListItem>Simulated order priorities are defined in simulation codes. The
		  simulation code consists of a sort sequence and a sort mode. You can select six
		  fields for each code to sort <Link href="/baanerp/td/glossary/glossary#SalesOrder_td" role="glossary" Update="No">sales orders</Link>. ERP Enterprise takes the
		  default fields from the <Link href="/baanerp/td/glossary/glossary#SlsOrderLns_td" role="glossary">sales order lines</Link> table, but
		  you can also use fields from sales orders and <Link href="/baanerp/tc/glossary/glossary#BusinePartne_tc" role="glossary">business partners</Link>.</ListItem>
         <ListItemHead>
            <GUIRef href="/baanerp/td/domains/sls.opri#delivery.date" role="option">Delivery Date</GUIRef>
         </ListItemHead>
         <ListItem>The order priority is determined by the planned delivery date
		  and the simulations are not used.</ListItem>
      </List>
      <ExampleSection>
         <SectionTitle>Example</SectionTitle>
         <List>
            <ListIntro>Simulation code AA includes the following sort sequences:</ListIntro>
            <ListItem>1 = Planned receipt date</ListItem>
            <ListItem>2 = Sold-to business partner</ListItem>
         </List>
         <Paragraph>If, for both sort sequences, the <GUIRef href="/baanerp/td/sls/tdsls4124s000#tdsls025.sort" role="manual">Sort Mode</GUIRef> field is
		  Ascending in the <GUIRef href="/baanerp/td/sls/tdsls4124s000" role="session">Priority Simulation (tdsls4124s000)</GUIRef> session, sales orders with the oldest planned receipt
		  date are delivered first. If orders exist with the same planned receipt date,
		  the sales orders with a sold-to business partner that appears first in the
		  alphabet are next executed, and so on.</Paragraph>
      </ExampleSection>
      <GeneralSection>
         <SectionTitle>Defining and maintaining order priority
		  (simulations)</SectionTitle>
         <ProcedureList>
            <ListIntro>Complete the following steps:</ListIntro>
            <ListItem>Specify priority simulation codes in the <Link href="/baanerp/td/sls/tdsls4524m000" role="session">Priority Simulations (tdsls4524m000)</Link> session.</ListItem>
            <ListItem>Generate delivery priorities for sales orders in the <Link href="/baanerp/td/sls/tdsls4229s000" role="session">Generate Sales Order Priority Simulations (tdsls4229s000)</Link> session.</ListItem>
            <ListItem>In the <Link href="/baanerp/td/sls/tdsls4126m000" role="session">Sales Order Priority - Simulations (tdsls4126m000)</Link> session, you can change priority
			 simulations for sales orders within a simulation code and item combination.</ListItem>
            <ListItem>Process the simulated order priorities to actual sales orders
			 in the <Link href="/baanerp/td/sls/tdsls4226s000" role="session">Process / Delete Sales Order Priority Simulations (tdsls4226s000)</Link> session. You can
			 also delete the generated simulations.</ListItem>
            <ListItem>Optionally, change the order priority of actual deliveries in
			 the <Link href="/baanerp/td/sls/tdsls4129m000" role="session">Sales Order Priorities (tdsls4129m000)</Link> session.</ListItem>
         </ProcedureList>
      </GeneralSection>
   </GeneralSection>
</ManualTopic>