Method Directive Across Business Objects

Hey all!

So I created a new pre-processing method directive on CustShip.UpdateMaster. When I mark the order as Shipped (ReadyToInvoice = true), I take the order number on the shipment’s line item, and check a UD boolean field in the OrderHed table that matches on the order number to see if the boolean is true. If so, I throw an exception that the order is on ship hold and kill the transaction.

It seems to kinda work… but then it gives me an error that no records can be found in the ShipDtl table, which is strange because I can definitely find them in a BAQ. Any ideas what I could be doing wrong?

There is a bucket load of background processing done when the shipped checkbox is set. Also, if the package is processed thru QuickShip already then there is a decent chance the hold is too late.

I use a DD and stop the pack from being closed, so they can’t freight the pack.

1 Like

That did it, thanks much! Especially helps because this was a rush job as the previous logic “disappeared” somehow…

1 Like