Hi experts,
I have a table which has all the data i need to perform and get aggregation amt , end objective is to use this aggregate amount & create 1 JE in 1 company having line items corresponding to multiple accounts from multiple company.
Developing & using custom methods on table i can generate data like below.

After this i need a code/pseduocode which would do the following
1. Create 1 JE in 1 company
For example je D01 in company D which will never be present in above list of companies
2.Traverse the above structure & create line items in this JE for respective companies & acc# while ignoring 0 amt transactions.

I think key here will be to map the T1 T2 to Ledger dim value of ledger account in that company , is it something which can be managed in Ax directly or i need to create another column in my table & enter full ledgeraccountdim value so as to map T1 to a ledgerdimvalue as they are not stored as values but only as rec id in dimattribute & displayed as complete value only for display purpose.
Thanks
Mav