I have a routine that messages salesorder owners when a goods receipt comes in that can satisfy outstanding backorders.
I currently trigger this from the 'Add' button in a goods receipt PO. All works fine provided that the user alway says yes to the SystemMessage 'You Cannot Change this document after it has been added. Continue?' if user says no the message gets Sent anyway...
I can trap the OK click on formtype '0' but I dont know how to tell if this particular system message was Launched by clicking the 'Add' Button on the GoodsReceipt PO form. I dont want to disable the system message but want to kick off the checkbackorders routine on 'OK' event in Sysform IF the sysform belongs to the Goods Receipt form...
Any pointers anyone 😊