Budget Formula Codes
The creation of budgets is a recurrent element of the budgetary function. The budgets can be constructed by disregarding the current situation or they can be based on previous budgets or real elements. This function is used to automatically calculate the elements constituting a budget code by means of formulas indicating the elements to be calculated and from where to start the calculation.
It is within this single function that you can set up all the calculation elements.
Example: the budget for company AAA is calculated each year on a global envelope basis (100,000 EUR). For each dimension, the proportion(%) of the actual N-1 with respect to the N-1 budget, determines the new percentage for the budget obtained for the year N. In this way, the budget N for "Department 1" is equal to the total amount for the Budget N* (Actual for "Department 1" / Total amount for N-1 budget). This case can be defined simply in the following way:
- a calculation expression formula (for instance: V_BUDN*(F1/F2)
- its constituting elements: F1 is the actual N-1; F2 is the budgeted N-1; V_BUDN is a constant that indicates the global amount to be distributed. By this simple setup, the calculation to be carried out could be defined.
Prerequisites
Refer to documentation Implementation
Screen management
The setup of budget formulas is performed on two tabs Formulas and Variables and is used to determine the calculation rules of a budget.
Header
Criteria
Formula (field BUDFOR) |
Code on 10 characters, which identifies the budget calculation formula. |
field DESTRA |
Short description (field SHOTRA) |
The short description replaces the standard description when display or print constraints require it. By default the short title, the long title or the column header of a data are recorded (on creation/update) in the connection language of the user.
A user who logs on with this language will view the short description, long description or column header in their connection language if a translation exists. Otherwise, these descriptions will be available in the folder language. The connection language must be defined as a default language for thefolder. |
Basis of transfer (field FLGDSP) |
The transfer basis determines the budget calculation type.
For instance: Original budget N-1: from 01/01/N-1 to 31/12/N-1 - Period 01: 607000/SERV01/DIV01: 1000 - Period 02: 607000/SERV01/DIV01: 2000 - Period 03 to 12: 607000/SERV01/DIV01: 0 Calculated budget: from 01/01/N to 31/12/N - Period 01: 607000/SERV01/DIV01: 1000 - Period 02: 607000/SERV01/DIV01: 2000 - Period 03 to 12: 607000/SERV01/DIV01: 0
For instance: Original budget N-1: from 01/01/N-1 to 31/12/N-1 - Period 01: 607000/SERV01/DIV01: 1000 - Period 02: 607000/SERV01/DIV01: 2000 - Period 03 to 12: 607000/SERV01/DIV01: 0 - Time distribution key for 607000: 50 for January, 50 for February and 0 for the rest Calculated budget: from 01/01/N to 31/12/N - Period 01: 607000/SERV01/DIV01: 1500 - Period 02: 607000/SERV01/DIV01: 1500 - Period 03 to 12: 607000/SERV01/DIV01: 0 If the decision is taken to only select a portion of the budgeted periods from the original budget (period 01 only), this has an impact on the amount to distribute (1,000 instead of 3,000) and the calculated budget will see an equivalent reduction. If the contrary is true and the decision is made to select all the budgeted periods (01 to 12) in the budget N-1, but to restrict the period for the calculated budget to the first period of the year, the selected amount will be identical to the instance, but the calculated budgeted amount will be distributed prorata with the time key only on this period (in this case only the 01 period would have been budgeted for 1,500). |
Calculation expression (field CLCFOR) |
The expression determines the calculation formula. The valuation of this calculation expression determines the budgeted amount of the budget entered on the first line of the grid. |
Block number 2
Generate budget MO (field OD) |
If this box is checked, the program will generate the budget MOs in accordance with the budget setup. |
Delete budget (field DEL) |
Tab Formulas
The first line defines the budget to be calculated. The following lines define the formulas on which the calculation expression is based.
Type
- Budget to be calculated: cannot be entered,
- Amount column: specifies the type of amount to be distributed: Budgeted, Actual, Pre-committed, Committed.
Grid
Formula name (field FORNAM) |
For instance, it is possible to indicate for the budgetary line to be calculated: 607000 / SERV01 / DIV01 and for the budget line to be allocated: 607* / SERV01 / DIV01. In this scenario, all the budgetary line amounts 607*/SERV01/DIV01 (that is 607000 / SERV01 / DIV01 and 607100 / SERV01 / DIV01 and 607200 / SERV01 / DIV01), are copied to 607000/SERV01/DIV01. Nevertheless if it is necessary to calculate and/or allocate the common charges to several budgetary formula lines, it is simpler to use variable. Example: case of a "Company" budget calculation corresponding to the sum of budgets for multiple "Sites": the budget lines of sites are the same for each line of the formula. A variable can thus make it possible to avoid entering a budget line for each site. |
Amount (field TYP) |
It indicates the amount type to be taken into account:
The first line in the grid defines the budgeted amount to be calculated. |
Budget (field BUD) |
Field mentioning the budget code. |
Company (field CPY) |
This field can be assigned if the budget is defined at company and/or site level.
|
Site (field FCY) |
Field identifying the Site of the budget. The budgeted amount is calculated for this site on the first line of the grid. |
Ledger (field LEDTYP) |
Specify the ledger impacted by the budget calculation. The ledgers concerned by the budget calculation must necessarily have active "Analytical" and "Budget" flags (the budget can only be accessed if the "Analytical" flag is checked). |
Version (field VER) |
This field specifies the budget version impacted by the budget calculation. |
Period start (field STRDAT) |
Period start date. |
Period end (field ENDDAT) |
Period end date. |
field ACC |
Budget account. |
field CCE1 |
Budget dimension. |
Tab Variables
The use of variables is optional since it is you can directly indicate in the formulas, the budget line to be calculated and/or the budget line to be allocated (e.g.: 607000/SERV01/DIV01). The variables make it possible to launch/relaunch the budgetary calculation while only modifying certain criteria. You can thus factorize the formulas sharing common variables.
Example : case of a budget calculation Company representing the total of budgets from multiple sites.
The site budgets have common formulas: by assigning the analytical allocations in the form of variables, it is possible to launch the calculation for all sites in common selections: 607000/SERV01/DIV01; then new execution of the calculation for 608000/SERV01/DIV01 and so on.
- From the moment that a variable is entered, Sage X3 standardizes its code with the prefix "V_"
- These variables can contain wildcards ("?" or "*") and account and/or dimension groups for the original budget. When an account/dimension is directly used in the variable, you can directly jump to the chart of Accounts/Dimensions.
- Each calculation cancels and replaces the previous one.
Finally, let us take the first example, the table below displays the setup to be performed in the tabs Formulas and Variables.
The example was: the budget for company AAA is calculated each year on a global envelope basis (100,000 EUR). For each dimension, the proportion(%) of the actual N-1 with respect to the N-1 budget, determines the new percentage for the budget obtained for the year N. In this way, the budget N for "Department 1" is equal to the total amount for the Budget N* (Actual for "Department 1" / Total amount for N-1 budget). This case can be defined simply in the following way:
- a calculation expression formula (for instance: V_BUDN*(F1/F2)
- its constituting elements: F1 is the actual N-1; F2 is the budgeted N-1; V_BUDN is a constant that indicates the global amount to be distributed.
Setup of the Formulas tab:
Formula |
Type |
Budget |
Company |
Site |
Start |
End |
Account |
Department |
Dimension type 2 |
Dimension type 3 |
Budget to be calc. |
Budgeted |
BUD04 |
001 |
|
01/01/2004 |
31/12/2004 |
601000 |
V_START |
|
|
F1 |
Actual |
BUD03 |
001 |
|
01.01.03 |
31.12.03 |
601000 |
V_START |
|
|
F2 key |
Budgeted |
BUD03 |
001 |
|
01.01.03 |
31.12.03 |
601000 |
* |
|
|
Setup of the Variables tab:
Variable |
Title |
Value |
V_BUDN |
Envelope to be allocated |
100,000 |
V_START |
Department |
|
Result: at each calculation execution, the value of the variable V_START is required. It is thus possible to enter "Department 1" and launch the calculation and obtain the budget for BUD04 budget for the combination 601000/Department 1. Successively the variable V_START can take the values "Department2", "Department3" etc.
Grid
Variable (field VARCOD) |
Code identifying the variable on 10 characters. |
Description (field DES) |
This field is used to link a description to its record. This description can be printed on the records, displayed when the record code is entered in a screen, or used on selection. By default the short title, the long title or the column header of a data are recorded (on creation/update) in the connection language of the user.
A user who logs on with this language will view the short description, long description or column header in their connection language if a translation exists. Otherwise, these descriptions will be available in the folder language. The connection language must be defined as a default language for thefolder. |
Default value (field VARVAL) |
Variable value. |
Error messages
In addition to the generic error messages, the following messages can appear during the entry :
Variable not defined XXX
The assigned budgetary variable does not exist in the table. You need to use the function Selection to search for existing codes or jump to the budget variables setup directly using the associated field. The variables are defined in the variable tab, there is no tunnel or selection.
Incorrect expression, an opening/closing bracket is missing
A Sage X3 function is used in the formula but a bracket is missing.
Incorrect expression - Syntax error
A Sage X3 function is used but an entry error is preventing the correct interpretation of the formula.
ZZZ variable associated with the dimension type code XXX
The budget variables used at the level of the variable and the expression are incompatible because they are not associated with the same analytical dimension type code. It is necessary to replace the erroneous variable with an authorized variable.
Incorrect fiscal year
The fiscal year number entered does not exist in the fiscal year table. It is necessary to use the "selection" function to search for an existing number.
The expression does not contain a variable
To calculate a budget, it is necessary to use at least one variable in the expression.