Financial Dimensions

I need to create Movement Journal through code,i hv almost done,Can some one tell me how to populate financial Dimensions in Movement Journal…i meaan i Hv Purpose Subledger data in my Customizes screen from tere i will create Movement Journal at tat case now to assign these financial dimensions to Movement Journal FInancial Dimension…If can Code to Populate Financial Dimension pls do share me…These dimension will be based on my accno which is seperate master like customer,vendor etc…

You have not mentioned the version of AX, which is very important for someone to answer your question…

from where you want to pick the dimensions?

In Ax 2012.

I have Customized Form with Fields like itemno,Qty,CostCenter,Purpose Subledger etc…as Financial Dimensions Site,Warehouse as Inventory Dimensions,i have place a button once i click movement journal will b created…

At tis Stage i have assigned the values from my customized table to Inventjournaltranstable,like wise how to assign financial dimensions.