---
title: "Adding Input Lot Traceability to OEE Operations 3.0"
id: "adding-input-lot-traceability-to-oee-operations-3-0"
project: "Knowledge Base"
url: "https://docs.sepasoft.com/articles/knowledge-base/adding-input-lot-traceability-to-oee-operations-3-0"
updated: 2026-07-23T18:08:19Z
---

# Adding Input Lot Traceability to OEE Operations 3\.0

Users who have purchased both the Sepasoft Track & Trace module and the Sepasoft OEE & Downtime module are able to integrate those modules together in a variety of ways. The simplest way of doing so is to add Traceability to an existing OEE operation.

In this article, we will demonstrate how to simply add an input lot to an OEE operation, thereby becoming aware of how much raw/input material is consumed by the OEE Operation.

This article assumes that you have familiarity with both the OEE and Track and Trace modules, but need help integrating the two modules as described above.

1. Create an OEE Operation in the OEE Material Manager:
    1. See [Creating Materials](/docs/display/MHD/Creating-Materials) and [Material Production Settings](/docs/display/MHD/Material-Production-Settings) for more on this step.
2. Find your newly created OEE Operation in the Object Editor
    1. The names of all OEE Operations follow this pattern:
        1. Material Name-Path/To/Your/Line
        2. ![](/resources/Storage/knowledge-base/adding-input-lot-traceability-to-oee-operations-3-0/object%20editor.jpg)
3. In the Relationship Panel, you will find 3 objects, in this order:
    1. The Operations Definition
    2. A Changeover Operations Segment, with a name that ends in "\_CO"
    3. A Production Operations Segment
4. Right-click and edit the Production Operations Segment
5. Expand the "DefaultBeginTrigger" under "Trigger Segment Begin", and uncheck the "Auto" checkbox:
    1. ![](/resources/Storage/knowledge-base/adding-input-lot-traceability-to-oee-operations-3-0/image2020-6-10_14-1-49.png)
6. Add an input material to the segment by selecting the word "Material" and hitting the plus sign.
    1. ![](/resources/Storage/knowledge-base/adding-input-lot-traceability-to-oee-operations-3-0/addmaterial.gif)
    2. For it to work with the screen attached to this document, you should follow the below settings exactly, but this is not the only possible correct configuration - you may wish to use "Available Lot Quantity" rather than a manual quantity, for example.
7. In your new Material, set the following properties, and leave all others to their defaults:
    1. Name: Material In
    2. Use: In
    3. Material Reference: Your desired Material or Material Class
    4. Lot Equipment Reference: Your desired Storage Unit, Supplemental Equipment, or Equipment Class
    5. Lot Number Source: Auto
    6. Quantity Source: Manual
    7. Rate Period: None
    8. ![](/resources/Storage/knowledge-base/adding-input-lot-traceability-to-oee-operations-3-0/image2020-6-10_14-11-40.png)
8. Hit Save.
9. Now that you need to specify an Input Material to your Production Segment, beginning your OEE Operation takes a few extra steps. Essentially, you must now use the Track and Trace tools for stopping the Changeover segment and beginning the Production segment. Here are the three pieces of script for starting changeover, starting production, and ending production, respectively:
    1. Start Changeover

Code

```
# Nothing changes for starting Changeover - this is still the normal way
system.mes.oee.beginOEERun("Material Name", "Path/To/Your/Line")
```

    2. Start Production

Code

```
# You will need to end changeover using the Trace scripting functions
co_seg = system.mes.getActiveSegment("Path/To/Your/Line", "Output Material Name-Path:To:Your:Line_CO")
co_seg.end()

# Create production segment, again, using Trace scripting functions
operation = system.mes.getCurrentOperation(line_path)
prod_seg = oper.createSegment("Output Material Name-Path:To:Your:Line", False)

# Then, you will need to assign input and output materials
prod_seg.setMaterial("Material In", "My Lot Number", 500)
prod_seg.setMaterial("Material Out", "Output Material Name", "Path/To/Your/Line")

# Then, begin the segment
prod_seg.begin()
```

    3. End Production

Code

```
# Again, this is the normal way of ending OEE Operations
system.mes.oee.endOEEProduction("Path/To/Your/Line")
```

10. If you are starting from a schedule, the above steps still apply as listed, but you'll need to begin changeover from the Operations Request Link:
    1. Start Changeover from Schedule

Code

```
# Nothing changes for starting Changeover from a schedule - this is still the normal way
oper_req_link = system.mes.getMESObjectLink("OperationsRequest", oper_req_uuid)
system.mes.oee.beginOEERun(oper_req_link)
```
