<?xml version="1.0" encoding="utf-8"?>
<!--
        
        ** OAGIS® Revision: 9.1  **
        ** Date: 11 May 2007 **
        ** Copyright 1997-2007, All Rights Reserved **
        
        This is an OAGIS® BOD XML Schema (XSD) Definition.
        
       License information for this file is provided in the file **OAGi License Agreement.txt** that is provided with this download package.
        
        For support, more information, or to report implementation bugs, please contact the Open Applications Group at xml@openapplications.org.
        
        XML Schema 
        
-->
 
<!--
© Copyright 2007 Infor Global Solutions Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. The 
word and design marks set forth herein are trademarks and/or registered trademarks of Infor Global Solutions 
Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. All other trademarks listed herein 
are the property of their respective owners.
 
-->
 
<!--    *****     Update Log     *****
 
Date          By      Note
3 May 2008    PO      New schema.
 
        *****     Update End     *****
 
-->


<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schema.infor.com/InforOAGIS/2"
    targetNamespace="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified"
    attributeFormDefault="unqualified">

    <xsd:include schemaLocation="../Components/Operational/MasterDataComponents.xsd"/>

    <xsd:element name="ItemLocationForecast" type="ItemLocationForecastType">
        <xsd:annotation>
            <xsd:documentation> ItemLocationForecast used for reporting forecast quantities for an
                item in a location.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:complexType name="ItemLocationForecastType">
        <xsd:sequence>
            <xsd:element ref="ItemLocationForecastHeader" minOccurs="0"/>
            <xsd:element ref="ItemLocationForecastDetail" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ItemLocationForecastHeaderType">
        <xsd:complexContent>
            <xsd:extension base="StatusEnabledHeaderType">
                <xsd:sequence>
                    <xsd:element ref="Item" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="Location" minOccurs="0"/>
                    <xsd:element ref="FoercastDateBasis" minOccurs="0"/>
                    <xsd:element ref="FirstMonthlyForecastQuantity" minOccurs="0"/>
                    <xsd:element ref="LeadTimeForecastQuantity" minOccurs="0"/>
                    <xsd:element ref="ReplenishmentOffsetLeadTimeForecastQuantity" minOccurs="0"/>
                    <xsd:element ref="StandardDeviationQuantity" minOccurs="0"/>
                    <xsd:element ref="StandardDeviationOverLeadTimeQuantity" minOccurs="0"/>
                    <xsd:element ref="ForecastGrowthQuantity" minOccurs="0"/>
                    <xsd:element ref="ForecastLevelQuantity" minOccurs="0"/>
                    <xsd:element ref="AnnualizedForecastQuantity" minOccurs="0"/>
                    <xsd:element ref="NetForecastNextYearQuantity" minOccurs="0"/>
                    <xsd:element ref="DemandLastPeriodQuantity" minOccurs="0"/>
                    <xsd:element ref="LastPeriodForecastQuantity" minOccurs="0"/>
                    <xsd:element ref="LastPeriodOverrideQuantity" minOccurs="0"/>
                    <xsd:element ref="ObsolescenceQuantity" minOccurs="0"/>
                    <xsd:element ref="SlowMovingProductCode" minOccurs="0"/>
                    <xsd:element ref="SlowMovingProductAverageEventQuantity" minOccurs="0"/>
                    <xsd:element ref="SlowMovingProductProbabilityEventCode" minOccurs="0"/>
                    <xsd:element ref="EstimatedAnnualUsageQuantity" minOccurs="0"/>
                    <xsd:element ref="TheoreticalStockOnHandQuantity" minOccurs="0"/>
                    <xsd:element ref="SafetyStockDays" minOccurs="0"/>
                    <xsd:element ref="SafetyStockQuantity" minOccurs="0"/>
                    <xsd:element ref="ReOrderPointQuantity" minOccurs="0"/>
                    <xsd:element ref="DemandLastUpdate" minOccurs="0"/>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

    <xsd:element name="ItemLocationForecastHeader" type="ItemLocationForecastHeaderType"/>

    <xsd:complexType name="ItemLocationForecastDetailType">
                <xsd:sequence>
                    <xsd:element ref="PeriodType" minOccurs="0"/>
                    <xsd:element ref="EffectiveDateTime" minOccurs="0"/>
                    <xsd:element ref="Quantity" minOccurs="0"/>
                    <xsd:element name="EffectiveTimePeriod" type="TimePeriodType"/>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
    </xsd:complexType>
    

    <xsd:element name="ItemLocationForecastDetail" type="ItemLocationForecastDetailType"/>
    
    <xsd:element name="PeriodType" type="CodeType"/>
    <xsd:element name="FirstMonthlyForecastQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                First Period Net Forecast - Monthly number for first forecast
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="FoercastDateBasis" type="DateType">
        <xsd:annotation>
            <xsd:documentation>
                The as-of date used for the generation of this forecast
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="LeadTimeForecastQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                Forecast Over the Leadtime - Takes into account the consumption between now and reorder point
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ReplenishmentOffsetLeadTimeForecastQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                Leadtime Forecast after the Replenishment Offset - Forecast after the first reorder time for 2nd reorder point. Needs unit code
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="StandardDeviationQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="StandardDeviationOverLeadTimeQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                Standard Deviation Covering The Re-supply Lead Time
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ForecastGrowthQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ForecastLevelQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="AnnualizedForecastQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                Annualised Forecast - based on Statistical Model
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="NetForecastNextYearQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="DemandLastPeriodQuantity" type="QuantityType">
    <xsd:annotation>
        <xsd:documentation>
            
        </xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="LastPeriodForecastQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="LastPeriodOverrideQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ObsolescenceQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="SlowMovingProductCode" type="CodeType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="SlowMovingProductAverageEventQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="SlowMovingProductProbabilityEventCode" type="CodeType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="EstimatedAnnualUsageQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                Estimated Annual Usage - based on averaged positive Statistical Forecast months
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="TheoreticalStockOnHandQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ReOrderPointQuantity" type="QuantityType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="DemandLastUpdate" type="DateType">
        <xsd:annotation>
            <xsd:documentation>
                
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
</xsd:schema>
