To Find Ledger Account Id by Ledger dimension in Ax 2012 you can get hint from below code.
findByLedgerDimension is a method defined in Mainaccount table where you can pass ledgerdimension value . MainAccountId is field name which is created in MainAccount Table. MainAccount Table is main master table for Ledgers.
info(strFmt("%1",MainAccount::findByLedgerDimension(3427167077).MainAccountId));
findByLedgerDimension is a method defined in Mainaccount table where you can pass ledgerdimension value . MainAccountId is field name which is created in MainAccount Table. MainAccount Table is main master table for Ledgers.
info(strFmt("%1",MainAccount::findByLedgerDimension(3427167077).MainAccountId));