Tuesday, April 11, 2017

Finance Accounting is Fun with AX 7

Finance Accounting is Fun with AX 7
This blog is for all AX application consultants, Manager and Program Manager.

I am writing this blog to explain basic finance accounting with AX 7. You don’t really need to have a finance background to understand finance accounting in Dynamics AX. Before I start explaining finance in AX, I will brief some basic account concept, principles and terminology to make it easy for you to relate with real scenario.
Some Basic Accounting Terms:
Revenue – Income from business. (e.g. Sales, Turnover)
Expense – Something spent to accomplish a purpose. (e.g. Travel, Operating expenses, Taxes)
Asset – In simple words anything of value that can be converted into cash. (e.g. Property, Cash, Investment)
Liability – Company’s financial debt, in other words money or services owed to another party.
Chart of Account – List of all companies account.
Balance Sheet – Financial statement which includes asset, liabilities and shareholder equity. In simple words this report gives you an idea of what company owns and owes and amount invested by shareholders.
Income Statement – This statement and report shows profit and loss sustained by company.
Now you have a little idea on the very some basic terms which you will be seeing while implementing finance in AX. The most important terms to understand before you start working finance in AX are Debit and Credit. As per the double entry system every business transaction is recorded in at least 2 accounts, means one account will receive a debit entry and other will receive credit entry.
The main confusion here is that which account should get credited and which account should get debited. For example, when any organization takes 5000 from a bank this transaction will affect two accounts as per double entry accounting system.
1. Cash Account (Asset Account)
2. Payable Account (Liability Account)
Now you have identified two accounts now which account to debit and which to credit. Very easy way to identify is that whatever comes in is debit whatever goes out is credit depends on the situation and transaction.
In this scenario
1. Cash Account (Asset Account) - Debit
2. Payable Account (Liability Account) - Credit




Here is a simple diagram to demonstrate the process.


Now when you have understood the basic finance terms and debit/credit transactions, we are good to start implementing finance in AX.

Let’s take a real time example and try to implement the same in Dynamics AX.

Simple Scenario: Suppose there is a company name XYZ and they sell Mobile phones, they buy mobile phones from different vendors and sell to different customers. This is just a very simple example to explain how to finance accounting can be implemented in AX, their requirements can vary according to their needs.
Now let’s talk these requirements in AX terms.
Legal Entity – XYZ
Financial Dimensions – Item, Vendor, Customer
Currency - USD
If you are thinking what is this financial dimension and why do we need this, here is a brief description
A financial dimension is a subaccount to the general ledger chart of accounts and they allow accounts to be broken down into additional detail for reporting and analysis. In simple terms they simplify the accounting process for detailed analysis, else you need to create lot of accounts for each combination of account.

Let’s define a simple chart of account as well. Chart of account is a list of company’s all account.

Main Accounts:
1000 to 1999 – Assets
2000 to 2999 – Liabilities
3000 to 3999 – Equity
4000 to 4999 – Sales
5000 to 5999 – COGS [Cost of Goods Sold]
6000 to 6999 – Operational Expense
7000 to 7999 – Non Operational Expense
8000 to 8999 - Others

In this blog we will cover the following areas:

Configuration of General Ledger
Currency and exchange rules setup
Fiscal Calendar and Periods setup
Plan and configure Chart of Accounts
Chart of accounts
Create Main Accounts
Financial Dimensions
Financial Dimension Set
Account Structure
Advanced Rule
Main Account Allocation
Ledger Setup
Account for Automatic Transactions

Setup and Process Journals
Journal Setup
Journal Controls
Journal Descriptions
Balance Control Accounts
General Ledger Parameters

Let’s get started and jump into AX and start with our first section configuration of General Ledger:
1. Setup currency and exchange rule – We setup exchange rule and multi-currency setup is used to enable transaction in multiple currencies.

CURRENCY (Default Currency)  EXCHANGE RATE TYPES  EXCHANGE RATE  REVALUEATION ACCOUNTS (This account will be used for currency valuation process and will determine gain and losses)

AX contain the list of almost all currencies, we will update an existing currency and assign it to a ledger as default currency. Let’s navigate to currency form to have a look.
Navigate to General Ledger >> Currencies >> Currencies
Filter to USD currency and click edit



You see a checkbox here for triangulation currency – this is mainly used for European countries. Basically when you convert from one currency to another, you must convert via triangulated currency.
Currency converter – As label tells Online numeric conversion tool, it is used when user needs to see reports in other currency then the default one. For example, here we have USD as default currency and you want to see your trial balance in Euro as a reporting currency, to do that you need to on conversion yes for Euro.
Rounding Rule – It says what are we going to round any amount to, for example if I mention 0.01 AX will round to nearest hundred. You can set rounding rules for SO, PO, Prices and Assed fixed depreciation.

Let’s set Euro as triangulated currency with currency conversion and rounding rule on.


Next step would be, add your currency information to Ledger.

Navigate to General Ledger >> Ledger Setup >> Ledger

Here you will set Accounting currency and Reporting currency under currency tab. We have set currency as USD, you still can do transaction in other currencies if you have setup conversion rate for that currency.
Let’ setup exchange rate
Create New Exchange Rate Type >> Exchange Rate >> Assign to Ledger

Navigate to General Ledger >> Currency >> Exchange Rate Type and create a new exchange rate type Default 2016 and click Exchange rate to define exchange rate.

Now setup exchange rate from USD to EURO, while setting up conversion rate you can select dates from which this conversion rate would be applicable.


You can set conversion rate for as many currencies you want, now let’s assign this exchange rate to our Ledger.
Navigate to Ledger form and set exchange rate as Default 2016.

The same way you can set the budget exchange rate as well.
Note: you can either create exchange rate manually or you can directly import exchange rate.

2. Fiscal Calendar and period Setup

You must know this before you can post any transaction in AX you must have open period and open fiscal year.
Each Fiscal calendar can have one or more Fiscal year and each fiscal year can have many periods in it. Also, each fiscal calendar can be used by multiple legal entity.
Create a Calendar >> ADD Period >> Link to Ledger
Navigate to GL >> Calendar >> Fiscal Calendar, click new and add new fiscal calendar name “Default” and 2016 as fiscal year.





You can see it has created 12 periods as we mentioned length of period = 1 and unit months.
Next step is to add this fiscal calendar to ledger
Navigate to GL form and add the fiscal calendar the one we created above.


3. Chart of Account - Before creating a chart of account you must plan your chart of account.

As we discussed a simple scenario in start, let’s configure our accounts accordingly.

Navigate to General Ledger >> Chart of Account >> Account >> Chart of Account

Click New to create a new COA

Under Main account mask we entered **** that means account number would be strict to 4 digits.
4. Create Main Accounts.
Before creating Main Accounts, we will have a look on commonly used main account types.
Profit and Loss, Revenue and Expense
Balance Sheet, Asset, Liability and Equity
Total
Report
As we discussed a scenario initially. Let’s create main accounts
Main Accounts:
1000 to 1999 – Assets
2000 to 2999 – Liabilities
3000 to 3999 – Equity
4000 to 4999 – Sales
5000 to 5999 – COGS [Cost of Goods Sold]
6000 to 6999 – Operational Expense
7000 to 7999 – Non Operational Expense
8000 to 8999 - Others


Click new and enter account number, name and Account type. You can enter other necessary information as required like if you know offset account # (use to make an opposite transaction as per double entry system rule) or currency information etc.
Add Legal Entity under Legal entity overrides tab.

Note: You won’t be able to add legal entity if you have not set the same Chart of Account in Ledger



Add all the accounts the same way. I have added the accounts we discussed initially.

 We create some accounts as total accounts for reporting purpose as well. I will display one demonstrate to configure total account (Expense total [operational and non-operation accounts].
Click New to add a Total account.
Enter Account number, Name, account type and legal entity detail.


Click on Total button and add from value and to value to define accounts range.

Click save and exit.
Now other different type of account is Reporting account. Let’s configure one reporting account as well (For Profit and Loss reporting account).
Note – This account can be posted; we will use this account for reporting purpose.
Click new and enter account number, name, main account type = Reporting and Reporting type = Header.



Now we have created a COA and have added all main accounts.

5. Now let’s talk about Finance Dimension.

Finance Dimension: Financial dimensions are used to provide more detail about a transaction in the general ledger. Please note financial dimensions are not really mandatory setup to implement AX. However, this makes life easy and simplify the accounting process. It helps to view and track the data efficiently. So it is always a good practice to use finance dimensions.
Type of Dimensions

Let’s move to AX and create all financial dimensions what we discussed in scenario.
Navigate to General Ledger >> Account >> Dimensions >> Financial Dimension


Click New and select Department (Org Type Financial dimension) from dropdown “Use value from” and enter Department Name and Report column name.
 
Now click on activate to activate the dimension for use.



Click on Dimension Values button to see all the department available.





Please leave a comment, if you like this I would be covering the remaining part in next blog.
























Monday, April 27, 2015

Data Migration Microsoft Dynamics AX 2012

I am writing this blog to demonstrate how Data Import Export Framework works in Microsoft Dynamics AX 2012 R2 and R3.

Before starting the step by step process, I would like to give little introduction about Data Import Export Framework. Data Import/Export Framework is a feature that helps you export data and import it into Microsoft Dynamics AX. You can import data into AX from any File, AX (one company to another) and ODBC database. I will demonstrate each of them one by one.

There is not much difference how it work in R2 and R3. Microsoft have done some changes, bug fixes and have added some new features. However, that doesn't change the process flow.

New Added Features:

It is included in Microsoft Dynamics AX 2012 R3. Prior to Microsoft Dynamics AX 2012 R3, it was available as a separate download.
  • A new security group for the Data Import/Export Framework, Microsoft Dynamics AX Data Import Export Framework Service User.
  • Additional entities: Resource requirements, Operations, and Route relation.
  • Staging-level validation of data that contains role separators.
  • Support for SQL Server 2014.
  • Additional data sources when you use Data Import/Export Framework as an Application Integration Framework (AIF) service. These include files, ODBC, and other Microsoft Dynamics AX instances. You can also now use a Data Import/Export Framework as an AIF service to export data to a file.
  • Staging-level conversion of fields that use the GUID data type.
  • The Custom Entity wizard now creates the class and functions of a new entity, in addition to the staging table, project, and query.
  • Error files for data import/export operations are now created in XML instead of in plain text for easier parsing.
  • You can now use a role separator in export as well as import operations, to delimit multiple values in the same field.


     Step by step process:


    1. Make sure that Microsoft Data import/export services is up and running.
    services.msc



    2. Create a folder in the same system where data import/export services is running and make that folder shared.

    3. Copy the folder path.

    4. Open Data Import Export module.






    5. Navigate to USMF/Data import export framework/Area page/Setup and click on Data import/export framework parameter to setup parameters.


    6. Paste the shared folder URL or Path  and click Validate.

    7.  Now Open Source Data format to setup source parameters ( from what source are we trying to import data like csv, excel, AX etc.)


    8. Click on New enter source name as CSV and Type as File and set file parameters as shown below


    9. Click on Processing group -  Navigate to USMF/Data import export framework/Area page/


     10. Click on New and create a new processing group - enter name and description


    11. Save and click on Entities
  • 12. Click on new and select entity as Customer ( you can use any entity you want to import the data, for demonstration I am using Customer entity)and source data format as CSV

    13. Click on Generate Source File.

    Select fields you want to import the data for and to create a source file



    14. Click on Generate sample file.

    15. Save the file say name as customerdmf and close the file.

    16. Open Microsoft excel.

    17. switch to data tab and select "From Text" as source.



    18. select the file created above - customerdmf and click Next.

    19. Check "My data has header checkbox".




    Click on Next
    20 Select Comma as delemeter.










    21. Click on Next and Finish.

    22. Click OK.


    23. Enter the data into sheet.



    Make sure CountryRegionID, Currency, CustGroup you enter should exists there in system to cross check you can navigate to USMF/Accounts receivable/Common/Customers/All customers and click on create new customer







    24. Save the file type as .csv.

    25. Go back to entity page and select the file we entered data.



    26.  click on Generate source mapping button.






    27. Click on Validate button to validate the data.





    28. Click on Preview source file to preview the data.


    29. Close the entity page.

    30. Select the same processing group and click on get Staging data.


    31. click ok and Click  Run





    32.

    33. select the same processing group and click on copy data to target



    34. Select the Staging Job ID and Click Ok.












    35 Run the Job.








    Congrts, Your data has been imported :)

    36. Verify the data.

    Navigate to USMF/Accounts receivable/Common/Customers/All customers

    37. Filter the customer with the name you have mentioned in csv file.


    Please do write me for any queries, would be happy to help :)

    Next post I will cover advanced DMF .

    Thank you.
    Sunil Wadhwa