<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/ti/onlinemanual/000720" xml:lang="en">
   <Header>
      <Title>Generating Order Block Planning</Title>
      <Keyword type="header" order="d1e2370824">
         <Level1>Generating</Level1>
         <Level2>order block planning</Level2>
      </Keyword>
      <Keyword type="header" order="d1e2370829">
         <Level1>Order Block Planning</Level1>
         <Level2>generating</Level2>
      </Keyword>
   </Header>
   <GeneralSection>
      <SectionTitle>Procedure</SectionTitle>
      <ProcedureList>
         <ListIntro>If you enter values in the fields of this session, and click <GUIRef href="/baanerp/ti/sfc/tisfc0251m000#generate.order.blocks" role="command">Generate</GUIRef>, ERP Enterprise performs the following
		  actions:</ListIntro>
         <ListItem>
            <Paragraph>ERP Enterprise checks whether the <GUIRef href="/baanerp/ti/sfc/tisfc0151m000" role="session">Order Block Planning (tisfc0151m000)</GUIRef> session already
			 has records for the values you specified in the <GUIRef href="/baanerp/ti/sfc/tisfc0251m000#f.machine" role="manual">Machine</GUIRef> field and the <GUIRef href="/baanerp/ti/sfc/tisfc0251m000#f.ord.block.per" role="manual">Start Date of Order Block Period</GUIRef> field.</Paragraph>
            <Paragraph>If such order blocks exists, ERP Enterprise deletes these order
			 blocks, except for the order blocks of which the start time is before the value
			 of the <GUIRef href="/baanerp/ti/sfc/tisfc0251m000#f.freezing.time" role="manual">Freezing Time</GUIRef> field.</Paragraph>
         </ListItem>
         <ListItem>
            <List>
               <ListIntro>ERP Enterprise selects all <Link href="/baanerp/ti/glossary/glossary#000022" role="glossary">production orders</Link> that meet the following
				criteria:</ListIntro>
               <ListItem>
                  <Paragraph>The production order has an <Link href="/baanerp/ti/glossary/glossary#000000000000052" role="glossary">operations</Link> that is executed on the
				  specified <Link href="/baanerp/ti/glossary/glossary#Machines_ti" role="glossary">machine</Link>
                  </Paragraph>
                  <Paragraph>If a production order has multiple operations that are
				  executed on the specified machine, ERP Enterprise takes the first of these
				  operations.</Paragraph>
               </ListItem>
               <ListItem>This operation's originally planned finish date falls
				within the specified range.</ListItem>
               <ListItem>The production order has an order code that falls within
				the specified selection range.</ListItem>
               <ListItem>The production order has a <Link href="/baanerp/ti/glossary/glossary#000021" role="glossary" Update="No">status</Link> that falls within the specified
				selection range.</ListItem>
               <ListItem>The production order has a planner that falls within the
				specified selection range.</ListItem>
               <ListItem>The production order is not contained in any order block
				for any machine or start date of order block period.</ListItem>
            </List>
         </ListItem>
         <ListItem>
            <Paragraph>For each of the selected operations, and for each of the <Link href="/baanerp/ti/glossary/glossary#100103" role="glossary">setup classes</Link> you specified in this session, ERP Enterprise searches the
			 applicable <Link href="/baanerp/ti/glossary/glossary#100104" role="glossary">setup state</Link>, as defined in the <GUIRef href="/baanerp/ti/sfc/tisfc0133m000" role="session">Setup Classes and States by Operation (tisfc0133m000)</GUIRef> session.</Paragraph>
            <Paragraph>If ERP Enterprise finds no such setup state for an operation, ERP Enterprise assumes that the
			 operation has the setup state that comes after all other setup
			 states.</Paragraph>
         </ListItem>
         <ListItem>ERP Enterprise clusters the selected operations into order blocks, whereby every order block
		  has a different combination of setup states.</ListItem>
         <ListItem>
            <Paragraph>ERP Enterprise sorts the production order in each order block according to the relevant
			 operation's originally planned finish date.</Paragraph>
            <Paragraph>For more information, refer to the Help of the <Link href="/baanerp/ti/sfc/tisfc0152m000#tisfc052.pfdt" role="formfield">Original Planned Finish Date</Link> field in the <GUIRef href="/baanerp/ti/sfc/tisfc0152m000" role="session">Production Orders by Block (tisfc0152m000)</GUIRef> session.</Paragraph>
         </ListItem>
         <ListItem> 
            <ProcedureList>
               <ListIntro>ERP Enterprise sequences the order blocks by using the following procedure:</ListIntro>
               <ListItem>For each order block, get the <Link href="/baanerp/ti/glossary/glossary#100104" role="glossary">setup state</Link> that belongs to the <Link href="/baanerp/ti/glossary/glossary#100103" role="glossary">setup class</Link> you specified in the <GUIRef href="/baanerp/ti/sfc/tisfc0251m000#f.setup.cl.one" role="manual">First Setup Class</GUIRef> field.</ListItem>
               <ListItem>Get the value of the <GUIRef href="/baanerp/tc/mcs/tcmcs0186m000#tcmcs086.plsq" role="manual">Planning Sequence</GUIRef> field in the <GUIRef href="/baanerp/tc/mcs/tcmcs0186m000" role="session">Setup States (tcmcs0186m000)</GUIRef> session.</ListItem>
               <ListItem>Sort the order blocks ascending, using the planning
				sequence as key. If a setup state has no planning sequence, put the order block
				in last place.</ListItem>
            </ProcedureList>
         </ListItem>
         <ListItem>If multiple order blocks have the same value of the <GUIRef href="/baanerp/tc/mcs/tcmcs0186m000#tcmcs086.plsq" role="manual">Planning Sequence</GUIRef> field, ERP Enterprise sequences these
		  order blocks further by using the setup states that belong to the setup class
		  you specified in the <GUIRef href="/baanerp/ti/sfc/tisfc0251m000#f.setup.cl.two" role="manual">Second Setup Class</GUIRef> field.</ListItem>
         <ListItem>If necessary, ERP Enterprise repeats that procedure by using the setup classes you specified in
		  the <GUIRef href="/baanerp/ti/sfc/tisfc0251m000#f.setup.cl.thr" role="manual">Third Setup Class</GUIRef> field and the <GUIRef href="/baanerp/ti/sfc/tisfc0251m000#f.setup.cl.for" role="manual">Fourth Setup Class</GUIRef> field.</ListItem>
      </ProcedureList>
   </GeneralSection>
   <RelatedTopics>
      <SectionTitle>Related topics</SectionTitle>
      <RelTopic>
         <Link href="/baanerp/ti/onlinemanual/000355" role="manual">Order-block planning</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/ti/onlinemanual/000357" role="manual">To plan with order blocks</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/basictasks/000006" role="manual">To use From and To fields</Link>
      </RelTopic>
   </RelatedTopics>
</ManualTopic>