To generate dimension and find the account value - KGSPMIDimensionUtility
KGSPMIDimensionUtility /// <summary> /// Utility class for Dimensions. /// </summary> class KGSPMIDimensionUtility { public static RefRecId generateDynamicAccount( LedgerJournalACType _type, str _account) { DimensionDynamicAccountServiceProvider dimensionDynamicAccountServiceProvider; DimensionAttributeValueContract ledgerContract; DimensionStorageResult dimensionStorageResult; DimensionDynamicAccountContract contract; contract = new DimensionDynamicAccountContract (); contract.parmAccountType(_type); contract.parmCompany(curExt()); ledgerContract = DimensionAttributeValueContract ::construct(enum2Str(_type), _account); contract.parmPrimaryDimensionAttributeValue(ledgerContract); dimensionDynamicAccountServiceProvider = DimensionDynamicAccountServiceProvider ::newForDynamicAccountContract(contract); dimensionStorageResult = dimensionDynamicAccountServiceProvider.resolve(); return dimens...