JSON Outside Processing Master Import Document

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

Schema versions 2 and 3 are supported in an MLID containing OSP.

JSON MLID Schema Version 3 Containing OSP

Using schema version 3, You can import material lots and OSP details - providing the status is not mandatory.
{
  "schemaVersion": 3,
  "materialLot": [
    {
      "lotIdentifier": "",
      "materialSubLots": [
        {
          "lotIdentifier": "lots1",
          "quantity": 1
        },
        {
          "lotIdentifier": "lots2",
          "quantity": 1
        }
      ],
      "productName": "8.2 Reg Nonser Prod",
      "quantity": 2,
      "unitOfMeasure": "",
      "description": "",
      "propertyValues": [
        {
          "propertyName": "WorkOrder",
          "propertyValue": "SHARMILA OSP Wo"
        },
        {
          "propertyName": "Operation",
          "propertyValue": "op2"
        }
      ]
    },
    {
      "lotIdentifier": "Receiver-osp-002",
      "productName": "",
      "quantity": 1,
      "unitOfMeasure": "",
      "status": "",
      "description": "receiver",
      "propertyValues": [
        {
          "propertyName": "STORAGELOCATION",
          "propertyValue": "true"
        }
      ]
    }
  ]
}}

JSON MLID Schema Version 2 Containing OSP

Using schema version 2, you can import material lots and OSP details - providing the status is mandatory.
{
  "schemaVersion": 2,
  "materialLot": [
    {
      "lotIdentifier": "",
      "productName": "Prod11",
      "quantity": 4,
      "unitOfMeasure": "",
      "status": "",
      "description": "",
      "propertyValues": [
        {
          "propertyName": "WorkOrder",
          "propertyValue": "WO-OSP-Non-Ser1"
        },
        {
          "propertyName": "WorkOrder",
          "propertyValue": "WO-OSP-Non-Ser1"
        },
        {
          "propertyName": "Operation",
          "propertyValue": "10"
        }
      ],
      "materialSubLots": [
        {
          "lotIdentifier": "JO-3",
          "quantity": 2
        },
        {
          "lotIdentifier": "JO-4",
          "quantity": 2
        }
      ]
    },
    {
      "lotIdentifier": "RECEIVEROSP",
      "productName": "",
      "quantity": 5,
      "unitOfMeasure": "",
      "status": "",
      "description": "Receiver",
      "propertyValues": [
        {
          "propertyName": "TestStringProp",
          "propertyValue": "WOProperty"
        },
        {
          "propertyName": "TestIntProp",
          "propertyValue": "[\"1\", \"2\"]"
        }
      ]
    }
  ]
}