All of the ines for that order? Or just open lines? (I don’t think you’d want to set the CancelationReason_c
field on a line that was already fulfilled.
And to update the OrderDtl records, an InTran could set ttOrderDtl.CancelationReason_c
based on the value found in the OrderHed record. Conditional on the line status going from Open to Closed, and maybe some other checks to make sure its being closed from the OrderEntry UI, and not from a shipment.