Main Account with different COA Structure

Hi Friends,

I have Multiple Chart Of Account Structure.

Each Chart of Account having multiple dimensions.

One COA having the dimensions of Project , Customer.(For Eg. Main Account - 4110100,Project - P123,Customer - C0001)

Another COA having the dimension of Project , Vendor and Fixed Asset(For Eg. Main Account - 2210100, Project - C123, Vendor - 1001, FIxed Asset - EQ001)

How the system know for the ledger Account(4110100) having project and customer as dimensions.

how to Assign the LedgerDimension field value in LedgerJOurnalTrans table dynamically based on the Main Account.

I want to Create LedgerJournalLines like . Account type - Ledger Account - 4110100-P123-C0001

How the system know for the ledger Account(2210100) having project and vendor and Fixed Asset as dimensions.

how to Assign the LedgerDimension field value in LedgerJournalTrans table dynamically based on the Main Account.

I want to Create LedgerJournalLines like . Account type - Ledger Account - 2210100-C123-1001-EQ001

Friends If You Know Please Share your Knowledge…

Regards,

Muthusamy