After Purchase Order is posted , record is deleted on Purchase Order and the record will get set on Posted Purchase Invoice. So, I have custom table name 'SAMPLE' having status enum field. As soon as Purchase order is posted I want to change the status to OK from NEW. Is there any solution to this?