Enter financial dimension based on an form(SalesCreateOrder) input

Hi everybody,

when I create e new SalesOrder I want to write the mandator ID into the financial dimension by code how can I do this?