Not sure how to best explain this but here goes:
Imagine a production environment where there are various machines.
A product can start its journey on a 'production run' from any one of those machines and take a number of different routes (process steps) through the production environment, back and forth, same or different machines etc.
The only natural link is that each process step is assigned a unique order, and on each process step the previous order is captured.
So assuming letters for the order reference I would get a table similar to the following to import where CurrentOrder & PreviousOrder were just the first two columns, other columns would have other production data (like qty, machine etc.) I simply use an auto key when importing so each line of the data has a unique key. However the combination of Current order and previous order may repeat, just on different dates.
CurrentORder PreviousOrder
A A
B A
B A
C B
D C
D C
E D
Z A
Y Z
X Y
(All order numbers are actually alpha numeric in real life and unique for each process step)
I always know the last process step, hence the last current order, but how then would I create the link to all previous orders in a production run?
EDIT: sometimes an order is re-opened on a process step to remove a defect. In which case it is not always possible to know the last process step, other than the current order never appears as a previous order.
So from the above example above, Say the last process step is current order E, I would want to link the combinations of orders E&D, D&C, C,&B, B&A and A&A BUT not the combination of Z&A as that was a different production flow that just had the same origin.
Any help would be much appreciated.
Thank you!
Imagine a production environment where there are various machines.
A product can start its journey on a 'production run' from any one of those machines and take a number of different routes (process steps) through the production environment, back and forth, same or different machines etc.
The only natural link is that each process step is assigned a unique order, and on each process step the previous order is captured.
So assuming letters for the order reference I would get a table similar to the following to import where CurrentOrder & PreviousOrder were just the first two columns, other columns would have other production data (like qty, machine etc.) I simply use an auto key when importing so each line of the data has a unique key. However the combination of Current order and previous order may repeat, just on different dates.
CurrentORder PreviousOrder
A A
B A
B A
C B
D C
D C
E D
Z A
Y Z
X Y
(All order numbers are actually alpha numeric in real life and unique for each process step)
I always know the last process step, hence the last current order, but how then would I create the link to all previous orders in a production run?
EDIT: sometimes an order is re-opened on a process step to remove a defect. In which case it is not always possible to know the last process step, other than the current order never appears as a previous order.
So from the above example above, Say the last process step is current order E, I would want to link the combinations of orders E&D, D&C, C,&B, B&A and A&A BUT not the combination of Z&A as that was a different production flow that just had the same origin.
Any help would be much appreciated.
Thank you!
Last edited: