Convert 2 customer functionality in Dynamics Ax 4.0 via code

Hey Every-One,

How can we create convert 2 customer(convert to customer) functionality in dynamics Ax 4.0 via code.If any one have any idea regarding this then please let me know.Thanks in Advance.

Regards

Arun Garg