Welcome, Guest. Please Login.
05/10/25 at 22:46:25
News:
Home Help Search Login


Pages: 1
Send Topic Print
mass change of Work Centers (Read 1151 times)
Laura  D. Oliver
Active Member
*****




Posts: 985
Gender: female
mass change of Work Centers
07/12/12 at 06:49:51
 
When we set DBA up 15 years ago we wrongly set up each machine as a work center.  Now we realize that  work centers  are really areas.   For example we have 40  lathes, but we really only need 1 work center called Lathes.  
 
Can we mass change all our lathe workcenters to just one  lathe workcenter?    
 
Since these work centers are literally on thousands of work orders, I am not sure what all work centers are tied to and what would be involved to do it manually.    
 
Thanks in advance
Laura
Back to top
 
 

Laura D. Oliver
classic DBA since 1997
EVO on Amazon server as of 5-2022
DIXIE PRECISION INC.
Birmingham, Alabama
(205)- 841-8400

www.dixieprecision.com



Email WWW   IP Logged
Lynn_Pantic
Administrator
*****


evolution (n) -
gradual change to a
different form

Posts: 5663
Re: mass change of Work Centers
Reply #1 - 07/12/12 at 07:54:20
 
The short answer is yes, you can do a search and replace.  The files involved are ROUTING, WOROUT and (if you use Routing Templates) ROUTTEMP.    The long answer of how to do it depends on whether the existing lathe Work Center codes are all consecutive so you could replace with "LATHES" if WC Code >LAT1 and WC Code <LAT40 or if the existing codes are all over the place and they need to be replaced one at a time
Back to top
 
 

Lynn Pantic
IS Tech Support
lynn@istechsupport.com
Email   IP Logged
TwinOaks
Member
**


I Love EvoERP!

Posts: 83
Gender: female
Re: mass change of Work Centers
Reply #2 - 12/04/15 at 10:18:46
 
We are looking at doing the same thing in our system, renumbering all of our work centers.  Your instructions make sense, so now the only question we have is how does this affect the currently printed off work orders?  Is there a file to go into to change the work centers on the current work orders, or does the system automatically suck up the new centers?
Back to top
 
 

Camille
Twin Oaks Industries
4+Yr User of EVO 2013.4 Latest Update
  IP Logged
Kelloggs
Active Member
*****


Do crazy people know
they are crazy?

Posts: 784
Gender: male
Re: mass change of Work Centers
Reply #3 - 12/08/15 at 10:48:12
 
It is quite simple.
 
Update your Work Center Table.  
You should not delete the "OLD" work centers, because you are not updating history.
 
Cann't be done while people is using the system.
You should not update work orders that are on the floor ("Released" status "R")
Backup, and backup your backup : ROUTING, ROUTTEMP, and WOROUT.
Test it on a play company !!!
 
Here is the sql statements:
 
UPDATE ROUTING SET MTRO_WC = 'NEW WC' WHERE MTRO_WC = 'OLD WC';
UPDATE ROUTTEMP SET MTRO_WC = 'NEW WC' WHERE MTRO_WC = 'OLD WC';
 
If you want to update all work orders regardless of Status ("Released") :
UPDATE WOROUT SET MTWORO_WC = 'NEW WC' WHERE MTWORO_WC = 'OLD WC';
 
Now if you don't want to update the ones on the "floor". It is a different statement :
 
UPDATE WOROUT SET MTWORO_WC = 'NEW WC'
     FROM WORKORD
     WHERE WORKORD.MTWO_WIP_WOSUF = WOROUT.MTWORO_WOSUF
       AND WORKORD.MTWO_WIP_WOPRE = WOROUT.MTWORO_WOPRE
       AND WORKORD.MTWO_WIP_STATUS <> 'R'
       AND WOROUT.MTWORO_WC='OLD WC' ;
 
You need to run each sql statement for each "OLD Work Center", unless there is something common among them: check previous posting (Lynn)
Example:
 
UPDATE ROUTING SET MTRO_WC = 'LATHES' WHERE MTRO_WC LIKE 'LAT%';
 
Have fun,
 
 Wink
 
Kelloggs
 
Disclaimer: I accept no liability for the content of this post, or for the consequences.....
 
Please test it on a play company!!!!
 
Tongue
Back to top
 
 

Evo ERP - 35 Users
Dumped MS Access like a hot potato (VB.Net rules!!!)
Email WWW   IP Logged
Pages: 1
Send Topic Print