Materials Consumed Guidelines (.xml)

See How To Use this Guide before interpreting the guidelines below.

Message Type: MATERIALS_CONSUMED

Info Exchange Display Name: Materials Consumed

When sending an element in Date or DateTime format, a valid date must be given. "00" is not a valid day or month value and "0000" is not a valid year value.
Data Element Occurs Format Length Enum Req Description
mtc:TL_XML_MatConsumed [1...1] - - - - Root element.
  mtc:ControlFileHeader [1...1] - - - - Materials consumed file control header.
    txn:Version [1...1] String [1/20] - M Version of XML message. *1
    txn:FileSenderNumber [1...1] String [1/20] - M File sender company IDE - Supplier Site ID. *2
    txn:FileReceiverNumber [1...1] String [1/20] - M File receiver company ID - customer. *3
    txn:UsageIndicator [1...1] String [1/10] UsageIndicator M Identifies test or production data. *4
    txn:FileTransactionType [1...1] String [1/30] - M File message type MUST equal "MATCONSUMED". *5
    txn:FileControlNumber [1...1] String [1/20] - M Unique file control ID number. *6
    txn:FileDate [1...1] Date [1/*] - M Date file generated. *7
    txn:FileTime [1...1] Time [1/*] - M Time file generated. *8
  mtc:MaterialsConsumed_HeaderRecord [1...1] - - - - Materials consumed header segment.
    txn:CustomerNumber [0...1] String [0/80] - O Customer ID number. *9
    txn:SupplierNumber [0...1] String [0/80] - O Supplier ID number. *10
    txn:ShipToNumber [0...1] String [0/80] - O Ship-to party ID number.
    txn:DateOfConsumption [1...1] Date [1/*] - M Date goods consumed. *11
    txn:TimeOfConsumption [0...1] Time [0/*] - O Time goods consumed. *12
    txn:ReferenceDocumentNumber [0...1] String [0/35] - O Reference document number.
    txn:DocumentText [0...1] String [0/25] - O Reference document text.
    txn:MaterialConsumptionType [0...1] String [1/5] MaterialConsumptionType O Material consumption type: Production, Returns, Ship Confirm, etc. *13
    txn:BillOfLadingNumber [0...1] String [0/35] - O Bill of Lading number.
  mtc:MaterialsConsumed_DetailsRecord [1...1] String - - - Materials consumed item details segment.
    txn:PurchaseOrderNumber [1...1] String [1/35] - M Purchase Order (PO) number. *14
    txn:PurchaseOrderLineItem [1...1] String [1/6] - M PO item number. *15
    txn:PurchaseOrderDate [0...1] Date [0/*] - O PO date. *16
    txn:WorkOrderNumber [1...1] String [1/35] - M Work order number. *17
    txn:CustomerMaterialNumber [1...1] String [1/35] - M Customer material number. *18
    txn:CustomerFinishedGoodsMaterial [0...1] String [0/35] - O Customer's finished good number for parent item being manufactured by API or bulk material being consumed in message. *19
    txn:ExpirationDate [0...1] Date [0/*] - O Expiration date for customer material. *20
    txn:SupplierMaterialNumber [0...1] String [0/35] - O Supplier material number. *21
    txn:MaterialDescription [0...1] String [0/50] - O Material description.
    txn:QuantityPosted [1...1] String [1/15] - M Quantity consumed. *22
    txn:QuantityUOM [1...1] String [1/3] UnitOfMeasure M Unit of measure for quantity consumed. *23
    txn:TypeOfMaterialConsumed [0...1] String [1/5] MaterialType O Type of material consumed: component consumed or finished good produced. *24
    txn:Plant [0...1] String [0/4] - O Plant ID. *25
    txn:StorageLocation [0...1] String [0/4] - O Storage location. *26
    txn:CustomerBatchNumber [1...1] String [1/35] - M Customer batch number. *27
    txn:ParentFinishedGoodsBatchNumber [0...1] String [0/35] - O Stores customer's finished goods batch number for finished good being manufactured by API or bulk material being consumed in message. Required for Merck batch genealogy report but may not be used by other customers. *28
    txn:SupplierBatchNumber [0...1] String [0/35] - O Supplier batch number.