Material Lot Import Document

A JSON material lot import document (MLID) contains all the details of a material lot, including receiver data. The MLID constitutes the body of the HTTP POST request of the ERP Import service, which posts the material to Plant Applications.

The example MLID is of schema version 2.

{
  "schemaVersion": 2,
  "materialLot": [
    {
      "lotIdentifier": "Lot-1",
      "productName": "RI-RM02-lb",
      "quantity": 10,
      "unitOfMeasure": "",
      "status": "Scrap",
      "description": "",
      "propertyValues": [
        {
          "propertyName": "OrgCode",
          "propertyValue": "Org4"
        },
        {
          "propertyName": "RECEIVER",
          "propertyValue": "RE001"
        },
        {
          "propertyName": "VENDOR",
          "propertyValue": "VD01"
        },
        {
          "propertyName": "TIMESTAMPCREATION",
          "propertyValue": "2020-09-18T13:28:39.395Z"
        },
        {
          "propertyName": "TIMESTAMPCHANGE",
          "propertyValue": "2020-09-18T13:28:39.395Z"
        },
        {
          "propertyName": "AUTHORCHANGE",
          "propertyValue": "JonDoe"
        },
        {
          "propertyName": "SOMEPROPERTY1",
          "propertyValue": "Y"
        },
        {
          "propertyName": "SOMEPROPERTY2",
          "propertyValue": "2.5"
        },
        {
          "propertyName": "WORKORDER",
          "propertyValue": "WO001"
        },
        {
          "propertyName": "OPERATION",
          "propertyValue": "OP40"
        }
      ]
    }
  ]
}

The example MLID is of schema version 3.

{
  "schemaVersion": 3,
  "materialLot": [
    {
      "lotIdentifier": "Receiver-001",
      "productName": "",
      "description": "Receiver",
      "quantity": 2,
      "unitOfMeasure": "",
      "propertyValues": [
        {
          "propertyName": "OrgCode",
          "propertyValue": "Org4"
        },
        {
          "propertyName": "test",
          "propertyValue": "1"
        }
      ]
    },
    {
      "lotIdentifier": "Lot Identifier nonSerialize",
      "productName": "Prod1",
      "description": "",
      "quantity": 100,
      "unitOfMeasure": "inch",
      "propertyValues": [
        {
          "propertyName": "test",
          "propertyValue": "1"
        }
      ]
    }
  ]
}