<?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="d1e1333953">
         <Level1>Order priority</Level1>
         <Level2>simulating</Level2>
      </Keyword>
      <Keyword type="header" order="d1e1333958">
         <Level1>Simulation</Level1>
         <Level2>order priority</Level2>
      </Keyword>
      <Keyword type="header" order="d1e1333963">
         <Level1>Sales order</Level1>
         <Level2>priorities</Level2>
      </Keyword>
   </Header>
   <GeneralSection>
      <Paragraph>Order priority
		simulations are used to sort sales orders according to the order delivery
		priority.</Paragraph>
      <List>
         <ListIntro>The order priority can be defined by:</ListIntro>
         <ListItem>Simulation codes.</ListItem>
         <ListItem>The agreed delivery
		  date.</ListItem>
      </List>
      <Paragraph>If 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 is <GUIRef href="/baanerp/td/domains/sls.opri#simulation.code" role="option">Simulation</GUIRef>,
		simulated order priorities are defined in simulation codes. The simulation code
		consists of a sort sequence and a sort mode. You can add up to six values to a
		sort sequence/sort mode combination.</Paragraph>
      <Paragraph>If the <GUIRef href="/baanerp/td/sls/tdsls0100s400#tdsls000.opri.4" role="manual">Order Priority Method</GUIRef> field in the <GUIRef href="/baanerp/td/sls/tdsls0100s400" role="session">Sales Order Parameters (tdsls0100s400)</GUIRef> session is <GUIRef href="/baanerp/td/domains/sls.opri#delivery.date" role="option">Delivery Date</GUIRef>, the order priority is determined by the planned delivery date
		and the simulations are not used.</Paragraph>
      <ExampleSection>
         <SectionTitle>Example</SectionTitle>
         <List>
            <ListIntro>For example, you can define the simulation code AA and add
			 the following values to the sort sequence:</ListIntro>
            <ListItem>1 = Planned receipt date.</ListItem>
            <ListItem>2 = Sold-to business partner.</ListItem>
         </List>
         <Paragraph>If the <GUIRef href="/baanerp/td/sls/tdsls4124s000#tdsls025.sort" role="manual">Sort Mode</GUIRef> field in
		  the <GUIRef href="/baanerp/td/sls/tdsls4124s000" role="session">Priority Simulation (tdsls4124s000)</GUIRef> session is set to Ascending for both sort
		  sequences, 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 executed
		  the first next, and so on.</Paragraph>
      </ExampleSection>
      <GeneralSection>
         <SectionTitle>To define and maintain order priority
		  (simulations)</SectionTitle>
         <ProcedureList>
            <ListItem>Priority simulation codes are maintained in the <GUIRef href="/baanerp/td/sls/tdsls4524m000" role="session">Priority Simulations (tdsls4524m000)</GUIRef> session.</ListItem>
            <ListItem>After the simulation codes are defined, they are generated by
			 using the <GUIRef href="/baanerp/td/sls/tdsls4229s000" role="session">Generate Sales Order Priority Simulations (tdsls4229s000)</GUIRef> session. The result
			 of this session is a list of sales orders with their delivery priorities.</ListItem>
            <ListItem>In the <GUIRef href="/baanerp/td/sls/tdsls4126m000" role="session">Sales Order Priority - Simulations (tdsls4126m000)</GUIRef> session, you can change
			 priority simulations for sales orders within a simulation code and item
			 combination.</ListItem>
            <ListItem>The simulations for order priorities are printed in the <GUIRef href="/baanerp/td/sls/tdsls4429m000" role="session">Print Sales Order Priority Simulations (tdsls4429m000)</GUIRef> print session.</ListItem>
            <ListItem>The simulated order priorities are processed to actual sales
			 orders in the <GUIRef href="/baanerp/td/sls/tdsls4226s000" role="session">Process / Delete Sales Order Priority Simulations (tdsls4226s000)</GUIRef> session. You can also delete the generated
			 simulations.</ListItem>
            <ListItem>Changes to the order priority of actual deliveries can be
			 made in the <GUIRef href="/baanerp/td/sls/tdsls4129m000" role="session">Sales Order Priorities (tdsls4129m000)</GUIRef> session.</ListItem>
         </ProcedureList>
      </GeneralSection>
   </GeneralSection>
</ManualTopic>