I’m having trouble with trying to do either a Method Directive or Data Directive. I’m trying to set a PartPlant.RecieveTime to a number if PartOpr.OpCode = ‘WHSE’ The issue I’m facing is the Part, PartPlant, PartRev, tables cannot see the table PartOpr table and therefore I cannot create a criteria to trigger my BPM on both Method directives or Data directives. Does anyone know a solution or work around.
Here is my company’s request: 1. For all Manufactured parts with a single operation of ‘WAREHOUSE ASSEMBLY’, can the Receive time be auto-populated to 14 days?
I’d probably put a post-proc BPM on EngWorkBench.CheckIn method. Might need to also put it in CheckInAll. Depends on whether or not CheckInAll calls CheckIn. I don’t recall if it does. Might want to test that. Placing the BPM on these methods ensures your settings are updated as soon as the new revision goes live.
Within the BPM invoke the BO method Part.GetByID using your eco PartNum as the parameter. The PartPlant record is within the PartTableSet returned by this method.
Change the partplant setting in the PartTableSet object you retrieved from GetByID based on whether or not the “WHSE” opcode is present in your eco data.
Then shove the modified tableset into Part.Update.
You should be able to do all of this in widgets. Just make sure to drop in some condition blocks so you’re not updating Part unnecessarily.