=GL (What, Arg1, Arg2, Arg3,..., Arg22)
Purpose: Returns the budget, balance, net change, debits or credits of the G/L Account of a given company based on filters.
This interactive tutorial will walk you through how to use the Jet GL() Function for Dynamics NAV
(be sure to press the Play button in the lower-left after the tutorial is displayed)
To retrieve the balance of G/L account 44100, you would type the following:
If you wanted to know the net change of account 44100 between 1/1/2002 and 1/31/2002, you would type the following:
For G/L Balances with standard NAV:
- you can filter on the two Global Dimensions for G/L Balances or
- if using a NAV Analysis View, you can filter on up to 4 dimensions that are tied to that View
For the balance of account "40100" with Global Dimension 1 of "USA" and Global Dim 2 of "COPPER", you can use the following function.
Please note that some NAV verticals that allow more than 2 Global Dimensions may not be compatible with the GL function.
GL Function Reference (for NAV)
|Dynamics NAV Parameter||
Determines what the GL function returns.
Specifies filters for the G/L Account Number.
If you specify a single, totaling account, you will get totals.
Specifies the starting date of transactions to include.
If you are interested in the balance of an account on a given date, leave StartDate blank.
If you are interested in the net change of an account, use Balance and specify both the StartDate and EndDate.
Specifies the ending date of transactions to include.
Specifying a start period and an end period will give you the net change between the first day of the start period and the last day of the end period.
Specifying a start period with no end period will give you the net change between that start date and the present.
Specifying no start period will give you the balance/budget as of the end period.
Specifying no start period or end period will give you the present balance/budget.
The G/L Analysis View to use.
Leave this blank to use balances from the G/L directly.
Filter for the first dimension of the analysis view.
If View is blank, this is the filter for Global Dimension 1. Dimension totaling is handled the same way as Account totaling.
Filter for the second dimension of the analysis view.
If View is blank, this is the filter for Global Dimension 2.
Filter for the third dimension of the analysis view.
Filter for the fourth dimension of the analysis view.
Filter for the business unit
Specifies the filter for the Budget.
This is unused unless returning budgets (in the "What" parameter)
This must be spelled the same as it appears in NAV, including case, spaces and punctuation. If this parameter is empty (""), the default company in the Jet Reports Options/Data Sources Screen is used.
“True” to exclude closing date transactions. Defaults to “False”.
When the value of the Filter argument is “True”, GL data from the source table for this function will be retrieved and cached before expanding any of the report's replicators.
This can improve performance for some reports.
"True" to show the FinHlink string that will be used for drilldown. Defaults to "False".
Data source name. If this parameter is blank, the default data source is used