AssetLedgerAccounts::assetLedgerDimension Method
Retrieves the ledger dimension to which to post for a transaction with a fixed assets main account.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
server public static LedgerDimensionDefaultAccount assetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[AssetPostingProfile _assetPostingProfile,
AssetDocumentType_JP _assetDocumentType_JP])
Microsoft Dynamics AX 2012 R2 (SYS)
server public static LedgerDimensionDefaultAccount assetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[AssetPostingProfile _assetPostingProfile])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
server public static LedgerDimensionDefaultAccount assetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[AssetPostingProfile _assetPostingProfile])
Microsoft Dynamics AX 2012 (FPK)
server public static LedgerDimensionDefaultAccount assetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[AssetPostingProfile _assetPostingProfile])
Microsoft Dynamics AX 2012 (SYS)
server public static LedgerDimensionDefaultAccount assetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[AssetPostingProfile _assetPostingProfile])
Run On
Server
Parameters
- _assetId
Type: AssetId Extended Data Type
The fixed asset.
- _assetBookId
Type: AssetBookId Extended Data Type
The asset book of the fixed asset.
- _assetTransType
Type: AssetTransType Enumeration
The transaction type of the fixed asset.
- _assetPostingProfile
Type: AssetPostingProfile Extended Data Type
The posting profile to use; optional.
- _assetDocumentType_JP
Type: AssetDocumentType_JP Enumeration
The japan asset document type; optional.
Return Value
Type: LedgerDimensionDefaultAccount Extended Data Type
The ledger dimension to which to post a transaction with a fixed assets main account.
Exceptions
Exception | Condition |
---|---|
Error | A posting profile is not specified and no default posting profile is in the AssetParameters table. -or- A posting profile is not specified and no default posting profile is in the AssetParameters table. -or- A posting profile exists, but no ledger dimension is found for the given transaction type. |