<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/cp/onlinemanual/000481" xml:lang="en">
   <Header>
      <Title>To determine the VMI Relation</Title>
      <Keyword type="header" order="d1e165826">
         <Level1>Order planning</Level1>
         <Level2>to determine a plan item's VMI role</Level2>
      </Keyword>
      <Keyword type="header" order="d1e165831">
         <Level1>VMI Relation</Level1>
         <Level2>to determine</Level2>
      </Keyword>
      <Keyword type="header" order="d1e165836">
         <Level1>To Determine</Level1>
         <Level2>vmi relation</Level2>
      </Keyword>
   </Header>
   <AimSection>
      <Paragraph>This topic describes how ERP Enterprise determines the value
		of the <GUIRef href="/baanerp/cp/rpd/cprpd1100m000#cprpd100.vmir" role="manual">VMI Relation</GUIRef> field in the <GUIRef href="/baanerp/cp/rpd/cprpd1100m000" role="session">Items - Planning (cprpd1100m000)</GUIRef> session.</Paragraph>
   </AimSection>
   <GeneralSection>
      <Paragraph>Whenever you run <Link href="/baanerp/cp/glossary/glossary#000060" role="glossary">order-based planning</Link>, ERP Enterprise reevaluates the <GUIRef href="/baanerp/cp/rpd/cprpd1100m000#cprpd100.vmir" role="manual">VMI Relation</GUIRef> field. ERP Enterprise takes the entire period between current date and the <Link href="/baanerp/cp/glossary/glossary#000066" role="glossary">planning horizon</Link> into account. If at any time in that
		period an applicable <Link href="/baanerp/tc/glossary/glossary#000500" role="glossary">terms and conditions agreement</Link> is found, the <GUIRef href="/baanerp/cp/rpd/cprpd1100m000#cprpd100.vmir" role="manual">VMI Relation</GUIRef> field is set to <GUIRef href="/baanerp/cp/domains/vmi.role#customer" role="option">Customer</GUIRef> or <GUIRef href="/baanerp/cp/domains/vmi.role#supplier" role="option">Supplier</GUIRef>, even if this terms and conditions agreement is
		not effective at the current date. In this way, ERP Enterprise ensures the <Link href="/baanerp/cp/glossary/glossary#000060" role="glossary">order-based planning</Link> run carries out the VMI
		functionality if it is needed and makes the VMI related sessions and features
		available.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Overall procedure</SectionTitle>
      <Paragraph>First, ERP Enterprise checks whether the VMI role is <GUIRef href="/baanerp/cp/domains/vmi.role#supplier" role="option">Supplier</GUIRef>; if not, ERP Enterprise checks whether the
		VMI role is <GUIRef href="/baanerp/cp/domains/vmi.role#customer" role="option">Customer</GUIRef>. If neither applies, ERP Enterprise sets the <GUIRef href="/baanerp/cp/rpd/cprpd1100m000#cprpd100.vmir" role="manual">VMI Relation</GUIRef> field to <GUIRef href="/baanerp/cp/domains/vmi.role#not.applicable" role="option">Not Applicable</GUIRef>.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>To check if you are the supplier</SectionTitle>
      <ProcedureList>
         <ListIntro>To determine whether the VMI role is <GUIRef href="/baanerp/cp/domains/vmi.role#supplier" role="option">Supplier</GUIRef>, ERP Enterprise performs the following actions:</ListIntro>
         <ListItem>
            <Paragraph>ERP Enterprise retrieves the plan item's <Link href="/baanerp/cp/glossary/glossary#000315" role="glossary">cluster</Link>, based on the first <Link href="/baanerp/tc/glossary/glossary#000069" role="glossary">segment</Link> of the plan item code and checks whether this
			 cluster has a <Link href="/baanerp/tc/glossary/glossary#SoldtoBusine_tc" role="glossary">sold-to business partner</Link>.</Paragraph>
            <Paragraph>A cluster's sold-to business partner is defined in the <GUIRef href="/baanerp/tc/emm/tcemm1135m000#tcemm135.ofbp" role="manual">Sold-to Business Partner</GUIRef> field in the <GUIRef href="/baanerp/tc/emm/tcemm1135m000" role="session">Clusters (tcemm1135m000)</GUIRef> session. In the same session, you can optionally
			 define a cluster's <Link href="/baanerp/tc/glossary/glossary#ShiptoBusine_tc" role="glossary">ship-to business partner</Link>.</Paragraph>
         </ListItem>
         <ListItem>
            <Paragraph>ERP Enterprise searches for a valid <Link href="/baanerp/tc/glossary/glossary#000500" role="glossary">terms and conditions agreement</Link> for the combination of
			 item, <Link href="/baanerp/tc/glossary/glossary#SoldtoBusine_tc" role="glossary">sold-to business partner</Link>, and optionally <Link href="/baanerp/tc/glossary/glossary#ShiptoBusine_tc" role="glossary">ship-to business partner</Link>.</Paragraph>
            <Paragraph>A terms and conditions agreement defined for a group of
			 items, such as an <Link href="/baanerp/tc/glossary/glossary#000007" role="glossary">item group</Link> or <Link href="/baanerp/tc/glossary/glossary#ProducType_tc" role="glossary">product type</Link>, is valid for every item within that group
			 of items.</Paragraph>
            <Paragraph>A terms-and-conditions agreement without an active <Link href="/baanerp/td/glossary/glossary#000220" role="glossary">sales contract</Link> is not a valid terms-and-conditions
			 agreement.</Paragraph>
         </ListItem>
         <ListItem>ERP Enterprise finds the effective <Link href="/baanerp/tc/glossary/glossary#000505" role="glossary">terms and conditions lines</Link> between the current date and
		  the planning horizon, based on the <Link href="/baanerp/tc/glossary/glossary#000504" role="glossary">terms and conditions search attributes</Link>.</ListItem>
         <ListItem>From the applicable record in the <GUIRef href="/baanerp/tc/trm/tctrm1135m000" role="session">Planning Terms and Conditions (tctrm1135m000)</GUIRef> session, ERP Enterprise retrieves the value
		  of the <GUIRef href="/baanerp/tc/trm/tctrm1135m000#tctrm135.rfsp" role="manual">Responsible for Supply Planning</GUIRef> check box.</ListItem>
         <ListItem>If the <GUIRef href="/baanerp/tc/trm/tctrm1135m000#tctrm135.rfsp" role="manual">Responsible for Supply Planning</GUIRef> check box is
		  selected, ERP Enterprise sets the <GUIRef href="/baanerp/cp/rpd/cprpd1100m000#cprpd100.vmir" role="manual">VMI Relation</GUIRef> field to <GUIRef href="/baanerp/cp/domains/vmi.role#supplier" role="option">Supplier</GUIRef>.</ListItem>
      </ProcedureList>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>To check if you are the customer</SectionTitle>
      <ProcedureList>
         <ListIntro>To determine whether the VMI relation is <GUIRef href="/baanerp/cp/domains/vmi.role#customer" role="option">Customer</GUIRef>, ERP Enterprise performs the following actions:</ListIntro>
         <ListItem>
            <Paragraph>ERP Enterprise searches for suppliers ( <Link href="/baanerp/tc/glossary/glossary#BuyfroBusine_tc" role="glossary">buy-from business partners</Link>) with <Link href="/baanerp/tc/glossary/glossary#000500" role="glossary">terms and conditions agreements</Link> effective between the
			 current date ('now') and the planning horizon.</Paragraph>
            <Paragraph>ERP Enterprise also retrieves the plan item's default warehouse.</Paragraph>
            <Paragraph>This terms and conditions agreement must be valid for the
			 combination of item, <Link href="/baanerp/tc/glossary/glossary#BuyfroBusine_tc" role="glossary">buy-from business partners</Link>, and
			 warehouse.</Paragraph>
            <Paragraph>A terms and conditions agreement defined for a group of
			 items, such as an <Link href="/baanerp/tc/glossary/glossary#000007" role="glossary">item group</Link> or <Link href="/baanerp/tc/glossary/glossary#ProducType_tc" role="glossary">product type</Link>, is valid for every item within that group
			 of items. Similarly, a terms and conditions agreement in which no warehouse is
			 specified is valid for all items.</Paragraph>
            <Paragraph>A terms-and-conditions agreement without an active <Link href="/baanerp/td/glossary/glossary#PurchContra_td" role="glossary">purchase contract</Link> is not a valid terms-and-conditions
			 agreement.</Paragraph>
         </ListItem>
         <ListItem>ERP Enterprise finds the effective <Link href="/baanerp/tc/glossary/glossary#000505" role="glossary">terms and conditions lines</Link> between the current date and
		  the planning horizon, based on the <Link href="/baanerp/tc/glossary/glossary#000504" role="glossary">terms and conditions search attributes</Link>.</ListItem>
         <ListItem>From the applicable record in the <GUIRef href="/baanerp/tc/trm/tctrm1135m000" role="session">Planning Terms and Conditions (tctrm1135m000)</GUIRef> session, ERP Enterprise retrieves the values
		  of the <GUIRef href="/baanerp/tc/trm/tctrm1135m000#tctrm135.spbs" role="manual">Supply Planning by Supplier</GUIRef> check box.</ListItem>
         <ListItem>If the <GUIRef href="/baanerp/tc/trm/tctrm1135m000#tctrm135.spbs" role="manual">Supply Planning by Supplier</GUIRef> check box is selected, ERP Enterprise sets the <GUIRef href="/baanerp/cp/rpd/cprpd1100m000#cprpd100.vmir" role="manual">VMI Relation</GUIRef> field to <GUIRef href="/baanerp/cp/domains/vmi.role#customer" role="option">Customer</GUIRef>.</ListItem>
      </ProcedureList>
   </GeneralSection>
   <RelatedTopics>
      <SectionTitle>Related topics</SectionTitle>
      <RelTopic>
         <Link href="/baanerp/cp/onlinemanual/000021" role="manual">Order planning, an overview</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/cp/onlinemanual/000470" role="manual">Supply planning by supplier</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/cp/onlinemanual/000482" role="manual">VMI business partner selection</Link>
      </RelTopic>
   </RelatedTopics>
</ManualTopic>