QAD EE 2014 Customization

Hi QAD and Progress Developers,

I am stuck with a QAD EE customization. Version is 2014 EE. The requirement is to create a SAFdefault code and Saf COde automatically during Customer Create. Usually while creating a customer Code in a tab called defaults there is a space to add a new row and enter something called SAF Code and SafDefaultCode. I need to make sure that if this is not entered i chousl create a SAFDefault code which is equal to customer cod which was entered.
Can u guys suggest me how to do this ?

Thanks & Regards