Hello,
I need help on a BPM to lock a Sales Order thereby preventing Sales Order Entry people from changing an order while it's already in queue for shipping using Insite's Advance Ship. They made me a customization where if an Order is in Queue, Insite will write back to Vantage to OrderHed.Checkbox04 = TRUE. I wrote a 4GL code below but it's not working. Am I missing something? I'm kinda new to 4GL so any help will be greatly appreciated. Thank you.
for each ttorderHed where (ttorderHed.RowMod = 'U' OR ttorderHed.RowMod = 'A')no-lock:
if ttOrderHed.CheckBox04 = TRUE then do:
{lib/PublishEx.i &ExMsg = "'This Sales Order is in the process of Shipping. If you want to make changes, please call the Shipping Department. Thank you.'"}
{&THROW_PUBLIC}.
end.
end.
I need help on a BPM to lock a Sales Order thereby preventing Sales Order Entry people from changing an order while it's already in queue for shipping using Insite's Advance Ship. They made me a customization where if an Order is in Queue, Insite will write back to Vantage to OrderHed.Checkbox04 = TRUE. I wrote a 4GL code below but it's not working. Am I missing something? I'm kinda new to 4GL so any help will be greatly appreciated. Thank you.
for each ttorderHed where (ttorderHed.RowMod = 'U' OR ttorderHed.RowMod = 'A')no-lock:
if ttOrderHed.CheckBox04 = TRUE then do:
{lib/PublishEx.i &ExMsg = "'This Sales Order is in the process of Shipping. If you want to make changes, please call the Shipping Department. Thank you.'"}
{&THROW_PUBLIC}.
end.
end.