To insert data in customize table during proforma invoice for sales order in axapta you can apply code in run method of FormLetterService class. I hope this small things will help you a lot .
\Classes\FormletterService\run
\Classes\FormletterService\run