How to use AXBuild for fast compilation in Dynamics Ax 2012 R3

We can compile with whole AOT in less time as compared to compilation in Mophx. From Dynamics Ax 2012 R2 cu7 and later a utility provided for this purpose. For example, the name of your AOS is “MicrosoftDynamicsAX“. This this step :

  1. Open command prompt (cmd).
  2. Go to your ax directory, normally you can use : cd C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin
  3. Then add : axbuild.exe xppcompileAll /aos=01 /workers=2

This is the result :



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

Customize : Restrict Session Date to Use Future Date AX 2012

Session date can help user to change the date for the current client session. The following list provides examples of some processes or areas of Microsoft Dynamics AX that are affected when you change the client session date:

  • The posting date in all modules
  • The invoice date and associated due date
  • The statistics period in which the current transaction is updated

Continue reading “Customize : Restrict Session Date to Use Future Date 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”

Select On-hand Per Date In AX 2012 Using SQL Query

If you know database structure in AX 2012, you can directly select data from SQL Server. Of course select data from SQL Server are faster than select data from AX 2012 framework.

In AX 2012, you can run report inventory to get On-hand data. To access it,  use this navigation : Inventory management -> Reports -> Physical inventory -> Physical inventory by inventory dimension. Use parameter below to run report :

onhand_axpar Continue reading “Select On-hand Per Date In AX 2012 Using SQL Query”

Featured post

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 ↑