Dimension creation through code

Hi All,

I have dimension name and financial dimension values. I needs to insert these values into master tables through code.

Lets say, I have dimension “XYZ” and related financial dimension values are “X1, X2, Y1, Y2”. Now dimension name “XYZ” should be inserted “DimensionAttribute” table and all the financial dimension values must be inserted into corresponding line level table.

I don’t how to get the remaining standard field values through code. Any classes and methods available? Please suggest me a solution.

Thanks in advance.

Regards,

Faisal Raja J