Compartir a través de


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

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.

See Also

Reference

AssetLedgerAccounts Table