System Form 0
I have a UDO Form of document type. When I close the form using the close menu , I get a System Form 0 dialog Box with options Yes, No and Cancel to save the record. I have written code for validation, but this code is not executed when I press Yes and the blank record gets saved. Please let me know how to handle the System Form 0 ?