<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/cp/onlinemanual/000034" xml:lang="en">
   <Header>
      <Title>Calendars in Enterprise Planning</Title>
      <Keyword type="header" order="d1e188404">
         <Level1>Calendars</Level1>
         <Level2>Enterprise Planning</Level2>
      </Keyword>
   </Header>
   <GeneralSection>
      <Paragraph> 
         <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> needs <Link href="/baanerp/tc/glossary/glossary#Calendar_tc" role="glossary">calendars</Link> to know how many
		available hours are in a day or in a week and to take into account the
		availability of the <Link href="/baanerp/cp/glossary/glossary#000008" role="glossary">resources</Link>.</Paragraph>
      <List>
         <ListIntro>In other words, <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> uses calendars to:</ListIntro>
         <ListItem>Determine start date,
		  end date, and requirement date for <Link href="/baanerp/cp/glossary/glossary#000050" role="glossary">planned orders</Link>.</ListItem>
         <ListItem>Carry out capacity
		  planning.</ListItem>
         <ListItem>Determine the actual
		  length of horizons and <Link href="/baanerp/cp/glossary/glossary#000063" role="glossary">time fences</Link> that are expressed in workdays.</ListItem>
      </List>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Calendar selection for production planning</SectionTitle>
      <List>
         <ListIntro>If ERP Enterprise cannot find a calendar, it uses the following priority path to select a
		  calendar for production planning:</ListIntro>
         <ListItem>The resource calendar,
		  which is linked to the resource.</ListItem>
         <ListItem>The department
		  calendar, which is linked to the <Link href="/baanerp/ti/glossary/glossary#000000000000036" role="glossary">work center</Link>.</ListItem>
         <ListItem>The <Link href="/baanerp/tc/glossary/glossary#000011" role="glossary">enterprise unit</Link> calendar, which is linked to either the work center, the warehouse,
		  or the plan item, dependent on the lead time which is being planned.</ListItem>
         <ListItem>The company calendar.</ListItem>
      </List>
      <Paragraph>If the required delivery
		date of a <Link href="/baanerp/cp/glossary/glossary#000047" role="glossary">planned production order</Link> is after the latest date on the
		calendar that is used for production planning, ERP Enterprise falls back on the
		standard calendar.</Paragraph>
      <Paragraph>For planning aspects
		that take place at a resource, <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> uses the calendar that you
		linked to the specific resource. If no resource calendar is available, <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> looks at
		the department calendar for planning.</Paragraph>
      <Paragraph>For planning aspects
		that take place at a work center that is not a resource, <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> uses the
		calendar that you defined for the department in the <GUIRef href="/baanerp/tc/mcs/tcmcs0565m000" role="session">Departments (tcmcs0565m000)</GUIRef> session.</Paragraph>
      <Paragraph>For planning aspects
		that are not related to a work center, for example, fixed lead times, <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> uses the
		calendar you defined for the enterprise unit to which the item in question
		belongs.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Calendar selection for purchase planning</SectionTitle>
      <List>
         <ListIntro>For purchase planning, ERP Enterprise first determines the
		  business partner safety time, for which a calendar is selected according to the
		  following priority path:</ListIntro>
         <ListItem>The shipping calendar
		  linked to the <Link href="/baanerp/tc/glossary/glossary#BuyfroBusine_tc" role="glossary">buy-from business partner</Link>.</ListItem>
         <ListItem>The calendar linked to
		  the buy-from business partner.</ListItem>
         <ListItem>The company calendar.</ListItem>
      </List>
      <Paragraph>Next, ERP Enterprise distinguishes between
		situations in which you specified a supplier in the <GUIRef href="/baanerp/td/ipu/tdipu0101m000#tdipu001.otbp" role="manual">Buy-from Business Partner</GUIRef> field
		in the <GUIRef href="/baanerp/td/ipu/tdipu0101m000" role="session">Items - Purchase (tdipu0101m000)</GUIRef> session or in the <GUIRef href="/baanerp/td/ipu/tdipu0110m000" role="session">Items - Purchase Business Partner (tdipu0110m000)</GUIRef> session, and situations in which you
		did not define a supplier.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Purchase planning with supplier</SectionTitle>
      <Paragraph>If you specified a
		supplier, ERP Enterprise further
		distinguishes between items it can plan in the lead-time horizon and items that
		it cannot.</Paragraph>
      <List>
         <ListIntro>For items that can be planned in the lead-time horizon, the
		  next step ERP Enterprise performs is
		  to offset the transport time. To do so, ERP Enterprise selects a calendar
		  according to the following priority path:</ListIntro>
         <ListItem>The shipping calendar
		  linked to the buy-from business partner.</ListItem>
         <ListItem>The calendar linked to
		  the buy-from business partner.</ListItem>
         <ListItem>The company calendar.</ListItem>
      </List>
      <List>
         <ListIntro>Finally, ERP Enterprise must offset the processing time of the
		  purchase order. The calendar to calculate this lead-time type is selected
		  according to the following priority path:</ListIntro>
         <ListItem>The calendar linked to
		  the purchase office.</ListItem>
         <ListItem>The company calendar.</ListItem>
      </List>
      <Paragraph>For items that <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> cannot
		plan in the lead-time horizon, ERP Enterprise must offset the calculated lead-time, for
		which ERP Enterprise uses the company
		calendar.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Purchase planning without supplier</SectionTitle>
      <Paragraph>If you did not specify a
		supplier for the item, after the offset of the outbound time, the inbound time,
		the extra lead time, and the safety time, ERP Enterprise only must offset the
		item supply time. To do so, ERP Enterprise uses the company calendar.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Calendar selection for distribution planning</SectionTitle>
      <List>
         <ListIntro>For distribution planning, <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> uses
		  various distribution-related calendars. To offset the inbound time and the
		  outbound time, ERP Enterprise uses
		  the following priority path to select a calendar:</ListIntro>
         <ListItem>The calendar linked to
		  the warehouse.</ListItem>
         <ListItem>The company calendar.</ListItem>
      </List>
      <List>
         <ListIntro>Next, ERP Enterprise offsets the <Link href="/baanerp/cp/glossary/glossary#000056" role="glossary">extra lead time</Link> and the item safety time, for which the following priority path is
		  used:</ListIntro>
         <ListItem>The calendar linked to
		  the buy-from business partner.</ListItem>
         <ListItem>The company calendar</ListItem>
      </List>
      <List>
         <ListIntro>For the next step, ERP Enterprise checks whether you specified a carrier in
		  which case ERP Enterprise offsets the
		  transport time. To do so, ERP Enterprise uses the following priority path to select a
		  calendar:</ListIntro>
         <ListItem>The calendar linked to
		  the buy-from business partner.</ListItem>
         <ListItem>The company calendar.</ListItem>
      </List>
      <List>
         <ListIntro>If you did not specify a carrier, ERP Enterprise checks whether you
		  specified a resource in the <GUIRef href="/baanerp/cp/rpd/cprpd7130m000" role="session">Supplying Relationships (cprpd7130m000)</GUIRef> session, in which case ERP Enterprise calculates the
		  distribution supply time. To do so, ERP Enterprise uses the following priority path to select a
		  calendar:</ListIntro>
         <ListItem>The resource calendar,
		  which is linked to the resource.</ListItem>
         <ListItem>The department
		  calendar, which is linked to the work center.</ListItem>
         <ListItem>The enterprise-unit
		  calendar, which is linked to the plan item.</ListItem>
         <ListItem>The company calendar.</ListItem>
      </List>
      <List>
         <ListIntro>If you did not specify either a <Link href="/baanerp/tc/glossary/glossary#Carrier_tc" role="glossary">carrier</Link> or a resource, ERP Enterprise also calculates the
		  distribution supply time. However, if you did not specify a resource, ERP Enterprise uses the following
		  priority path to select a calendar:</ListIntro>
         <ListItem>The calendar linked to
		  the enterprise unit.</ListItem>
         <ListItem>The company calendar.</ListItem>
      </List>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Availability types</SectionTitle>
      <Paragraph>A calendar can contain
		several <Link href="/baanerp/tc/glossary/glossary#ResoActiType_tc" role="glossary"
               Update="No">availability types</Link>. In the <GUIRef href="/baanerp/cp/rpd/cprpd4160m000" role="session">Scenario - Availabilities (cprpd4160m000)</GUIRef> session, you can define which
		availability type you want to use for a particular scenario/calendar
		combination. As a result, you can carry out what-if analyses by choosing a
		different availability type for each scenario.</Paragraph>
      <Paragraph>For your convenience, the <GUIRef href="/baanerp/cp/rpd/cprpd0100m000" role="session">Planning Parameters (cprpd0100m000)</GUIRef> session also displays the <Link href="/baanerp/tc/glossary/glossary#ResoActiType_tc" role="glossary">availability types</Link> for <GUIRef href="/baanerp/ti/rou" role="module">Routing</GUIRef>, <GUIRef href="/baanerp/td/pur" role="module">Purchase Control</GUIRef>, <GUIRef href="/baanerp/wh" role="package">Warehousing</GUIRef>, and
		the value of the <GUIRef href="/baanerp/tc/com/tccom0000s000#tccom999.ract" role="manual">Availability Type for Carrying Goods</GUIRef> field in the <GUIRef href="/baanerp/tc/com/tccom0000s000" role="session">COM Parameters (tccom0000s000)</GUIRef> session.</Paragraph>
   </GeneralSection>
   <RelatedTopics>
      <SectionTitle>Related topics</SectionTitle>
      <RelTopic>
         <Link href="/baanerp/cp/onlinemanual/000300" role="manual">Enterprise Planning, an Overview</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/tc/onlinemanual/000128" role="manual">Overview of calendar functionality</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/cp/onlinemanual/000087" role="manual">Workdays and calendar days in Enterprise Planning</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/cp/onlinemanual/000089" role="manual">Availability types in Enterprise Planning</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/cp/onlinemanual/000161" role="manual">To compute supply lead-times</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/cp/onlinemanual/000407" role="manual">Time Zones in Enterprise Planning</Link>
      </RelTopic>
   </RelatedTopics>
</ManualTopic>