BPM To AutoTick Lock Qty and Lock Date PO

Hello, I want to make a BPM or Data directive that auto ticks the Lock QTY and Lock Date in purchase order entry as this is currently preventing new PO suggestions coming through

I created an In-Transaction Data Directive against the PORel table that checked these boxes. I have included screenshots of the widgets and actions set. I had to add the condition so it wouldn’t fire in certain Plants in one of our companies.