Get Ledger Dimension Value in AX 2012

In Microsoft Dynamics AX 2009, an account number from the LedgerTable table was considered to represent a ledger account. The account number was combined with the financial dimensions array to link financial activity to a ledger account. An example of this was the LedgerTrans table, in which the AccountNum field represented the ledger account and the Dimension field represented the financial dimensions.

In Microsoft Dynamics AX 2012, these fields are deleted and replaced with a single field that holds the main account and all financial dimensions related to financial activity. Of course to get this value from this single field in AX 2012 are more complex than two fields which consist of main account id and array of financial dimension. Continue reading “Get Ledger Dimension Value in AX 2012”

Featured post

enum2str Function in AX

This function is used to converts the specified enumerated text to a string.  There is only a parameter in this function :

  1. _enum : The enumerated text to convert.

Example :

static void enum2StrExample(Args _arg)
 InventTransType itTypeSU, itTypeSO;
 LedgerTransType ltType;
 itTypeSU = InventTransType::SummedUp;
 itTypeSO = InventTransType::Sales;
 ltType = LedgerTransType::ExchAdjustment;

Continue reading “enum2str Function in AX”

str2Date Function in AX

This function is used to convert the specified string to a date value. There is 2 parameters in this function :

  1. _text : The string to convert to a date value.
  2. _sequence : A three digit integer that describes the positions of the day, month, and year in the string to convert (day = 1, month = 2, year = 3). For example, if we want to use year, month, day, we must write 321.

Continue reading “str2Date Function in AX”

Featured post

Create a website or blog at

Up ↑