Journals in Dynamics AX are manual worksheets that can be posted into the system. One of the frequently used journals for financial operations is the General journal. Sometimes, I call it the father of all other financial journals as it allows processing virtually all types of postings: ledger account transfers, fixed asset operations, customer/vendor payments, bank operations, project expenses, and similar. Other derived journals like the Fixed assets journal or Payment journal in Accounts receivable or Accounts payable are optimized for specific business tasks but, basically, they do the same job.
Dynamics AX also contains other types of journals, for example, in the Inventory management or Production modules. Although those journals are more connected to their specific area, they still share the same principles.
In this recipe, we will demonstrate how to create a new general journal from X++ code. This is often required when developing custom functionality...