<?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
29 Apr 2011   PO      New noun
09 Oct 2012   BvO    Remake, based on existing noun
        *****     Update End     *****
 
-->
<xsd:schema targetNamespace="http://schema.infor.com/InforOAGIS/2"
	xmlns="http://schema.infor.com/InforOAGIS/2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified" attributeFormDefault="unqualified">

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

	<xsd:element name="DefectiveMaterialNotice" type="DefectiveMaterialNoticeType">
		<xsd:annotation>
			<xsd:documentation>Used to report defective material information to
				supplier.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:element name="DefectiveMaterialNoticeHeader" type="DefectiveMaterialNoticeHeaderType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The header information
				of the non-conforming material report. </xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:element name="DefectiveMaterialNoticeDisposition"
		type="DefectiveMaterialNoticeDispositionType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The transactional
				details of the quantities that are either rejected or accepted upon review.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:complexType name="DefectiveMaterialNoticeType">
		<xsd:sequence>
			<xsd:element ref="DefectiveMaterialNoticeHeader" minOccurs="0"/>
			<xsd:element ref="DefectiveMaterialNoticeDisposition" minOccurs="0"
				maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:complexType name="DefectiveMaterialNoticeHeaderType">
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledHeaderType">
				<xsd:sequence>			
					<xsd:element ref="CreationPeriod" minOccurs="0"/>
					<xsd:element ref="CompletionPeriod" minOccurs="0"/>
					<xsd:element ref="PurchaseOrderReference" minOccurs="0"/>
					<xsd:element ref="SupplierRMAReference" minOccurs="0"/>
					<xsd:element ref="ReceiveDeliveryReference" minOccurs="0"/>
					<xsd:element ref="SupplierParty" minOccurs="0"/>
					<xsd:element ref="ShipFromParty" minOccurs="0"/>
					<xsd:element ref="CustomerParty" minOccurs="0"/>
					<xsd:element ref="ShipToParty" minOccurs="0"/>
					<xsd:element ref="Item" minOccurs="0"/>
					<xsd:element ref="NonConformingQuantity" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The total rejected quantity.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="NonConformingBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="AcceptedQuantity" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The total accepted quantity.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="AcceptedBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="TotalQuantity" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The total quantity reported to be
								non-conformant.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="TotalBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="EndItem" minOccurs="0"/>
					<xsd:element ref="ProjectReference" minOccurs="0"/>
					<xsd:element ref="Location" minOccurs="0"/>
					<xsd:element ref="WarehouseLocation" minOccurs="0"/>
					<xsd:element ref="RejectedByPerson" minOccurs="0"/>
					<xsd:element ref="RejectedDateTime" minOccurs="0"/>
					<xsd:element ref="ReasonCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The reason for the
								non-conformance.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="NonConformanceType" minOccurs="0"/>
					<xsd:element ref="NonConformanceSeverityCode" minOccurs="0"/>
					<xsd:element ref="DefectiveMaterialNoticeResponsibility" minOccurs="0"/>
					<xsd:element ref="MaterialReviewBoard" minOccurs="0"/>
					<xsd:element ref="PlannedReviewDateTime" minOccurs="0"/>
					<xsd:element ref="SourceOfDefect" minOccurs="0"/>
					<xsd:element ref="Waiver" minOccurs="0"/>
					<xsd:element ref="NonConformanceSubject" minOccurs="0"/>
					<xsd:element ref="MaterialMadeBy" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The person or party who made the non-conforming
								material.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="MaterialCheckedBy" minOccurs="0"/>
					<xsd:element ref="NonConformanceReportedBy" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The person or party who reported the
								non-conformance.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="MaterialInspectedBy" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The person or party who inspecred the non-conforming
								material.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="FirstCorrectedShipmentDate" minOccurs="0"/>
					<xsd:element ref="ActionInformation" minOccurs="0"/>
					<xsd:element ref="RejectTagNumber" minOccurs="0"/>
					<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="Classification" minOccurs="0"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="DefectiveMaterialNoticeDispositionType">
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledLineType">
				<xsd:sequence>
					<xsd:element ref="DispositionType" minOccurs="0"/>
					<xsd:element ref="DispositionCode" minOccurs="0"/>
					<xsd:element ref="DispositionDateTime" minOccurs="0"/>
					<xsd:element ref="InspectorPersonReference" minOccurs="0"/>
					<xsd:element ref="ActualDuration" minOccurs="0"/>
					<xsd:element ref="DocumentationAcceptedIndicator" minOccurs="0"/>
					<xsd:element ref="Quantity" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The quantity involved in the disposition. Whether the
								quantity applies to either rejected or accepted material depends on
								the status of the disposition. The status can be either Rejected or
								Accepted.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="BaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="RejectionCause" minOccurs="0"/>
					<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="Classification" minOccurs="0"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="ActionInformationType">
		<xsd:sequence>
			<xsd:element ref="ContainmentRequiredIndicator" minOccurs="0"/>
			<xsd:element ref="ContainmentResponseDueDate" minOccurs="0"/>
			<xsd:element ref="ContainmentDate" minOccurs="0"/>
			<xsd:element ref="CorrectiveResponseRequiredIndicator" minOccurs="0"/>
			<xsd:element ref="CorrectiveResponseDueDate" minOccurs="0"/>
			<xsd:element ref="CorrectiveDate" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="DefectiveMaterialNoticeResponsibilityType">
		<xsd:sequence>
			<xsd:element ref="ResponsibilityCode" minOccurs="0"/>
			<xsd:element ref="ResponsiblePersonReference" minOccurs="0"/>
			<xsd:element ref="SupplierParty" minOccurs="0"/>
			<xsd:element ref="ShipFromParty" minOccurs="0"/>
			<xsd:element ref="CustomerParty" minOccurs="0"/>
			<xsd:element ref="ShipToParty" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="MaterialReviewBoardType">
		<xsd:sequence>
			<xsd:element ref="MaterialReviewBoardCode" minOccurs="0"/>
			<xsd:element ref="ResponsiblePersonReference" minOccurs="0"/>
			<xsd:element ref="RequiredIndicator" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="WaiverType">
		<xsd:sequence>
			<xsd:element ref="CustomerParty" minOccurs="0"/>
			<xsd:element ref="RequiredIndicator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Indicates whether a waiver needs to be
						received.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="RequestedIndicator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Indicates whether a waiver must be
						requested.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ReceivedDateTime" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="ActionAssignmentType">
		<xsd:sequence>
			<xsd:element ref="PersonReference" minOccurs="0"/>
			<xsd:element ref="CustomerParty" minOccurs="0"/>
			<xsd:element ref="SupplierParty" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="NonConformingQuantity" type="QuantityType"/>
	<xsd:element name="EndItem" type="ItemType"/>
	<xsd:element name="NonConformanceType" type="CodeType"/>
	<xsd:element name="NonConformanceSeverityCode" type="CodeType"/>
	<xsd:element name="DefectiveMaterialNoticeResponsibility"
		type="DefectiveMaterialNoticeResponsibilityType"/>
	<xsd:element name="ResponsibilityCode" type="CodeType"/>
	<xsd:element name="MaterialReviewBoard" type="MaterialReviewBoardType"/>
	<xsd:element name="MaterialReviewBoardCode" type="CodeType"/>
	<xsd:element name="PlannedReviewDateTime" type="DateTimeType"/>
	<xsd:element name="SourceOfDefect" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The cause of the non-conformance. A value of the user-definable code
				list 'Source of Defect Codes'.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="Waiver" type="WaiverType"/>
	<xsd:element name="RequiredIndicator" type="IndicatorType"/>
	<xsd:element name="RequestedIndicator" type="IndicatorType"/>
	<xsd:element name="NonConformanceSubject" type="CodeType"/>
	<xsd:element name="MaterialMadeBy" type="ActionAssignmentType"/>
	<xsd:element name="MaterialCheckedBy" type="ActionAssignmentType"/>
	<xsd:element name="NonConformanceReportedBy" type="ActionAssignmentType"/>
	<xsd:element name="MaterialInspectedBy" type="ActionAssignmentType"/>
	<xsd:element name="FirstCorrectedShipmentDate" type="DateType"/>
	<xsd:element name="RejectTagNumber" type="NumericType"/>
	<xsd:element name="ActionInformation" type="ActionInformationType"/>
	<xsd:element name="ContainmentRequiredIndicator" type="IndicatorType"/>
	<xsd:element name="ContainmentResponseDueDate" type="DateType"/>
	<xsd:element name="ContainmentDate" type="DateType"/>
	<xsd:element name="CorrectiveResponseRequiredIndicator" type="IndicatorType"/>
	<xsd:element name="CorrectiveResponseDueDate" type="DateType"/>
	<xsd:element name="CorrectiveDate" type="DateType"/>
	<xsd:element name="DispositionType" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>Type of disposition. A value of the extensible code list 'Disposition
				Types'. Valid values include Rework (Existing Specification), Rework (New
				Specification), Reclassify, Return to Supplier, Scrap, Use As Is, Repair to
				Concession, No Fault Found, Awaiting Disposition.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="DispositionCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>User-definable disposition code.A value of the user-definable code
				list 'Disposition Codes'. Whether the disposition code refers to either a rejection,
				or an acception, depends on the status of the disposition. The status can be either
				Rejected or Accepted.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="DispositionDateTime" type="DateTimeType">
		<xsd:annotation>
			<xsd:documentation>The date and time the disposition was entered.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="InspectorPersonReference" type="PersonReferenceType">
		<xsd:annotation>
			<xsd:documentation>The person who inspected / dispositioned the
				items.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="DocumentationAcceptedIndicator" type="IndicatorType"/>
	<xsd:element name="RejectionCause" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The cause code associated with the rejected quantity. A value of the
				user-definable code list 'Rejection Cause Codes'.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
</xsd:schema>
