Financial Reporting with XML (Excel®) Templates

AcctVantage supports the ability to export financial reports to an XML file that is readable by Microsoft Excel®.

You can design financial reports using what are called tokens in place of GL account codes, account names, actual or budgeted dollar amounts and reporting periods. When the report is generated, AcctVantage replaces these tokens with the requested data and exports an XML file. You can include formatting, formulas, logos, etc. in the template as in any Excel® spreadsheet. At this time, only single worksheet XML files can be processed. In a multiple page workbook, pages after the first page will be ignored.

We will detail the token definitions below. When designing your financial report, you will use a token in place of the indicated value. If the token represents a range of GL accounts, AcctVantage will automatically expand it to include a row for each account within the range. Any formulas will be adjusted as necessary to accommodate the rows added for a range of accounts.

1. XML Tokens

Tokens begin with *AV (Enter the token in the cell where you want the corresponding data to appear.)

  • *AVRY* - Returns the actual Report Year.
  • *AVRP* - Returns the actual Report Period.
  • *AV* ACCTNAME - Returns the GL Account Name.
  • *AV* ACCTCODE - Returns the GL Account Code.
  • *AV* ACT - Returns Actual Activity in dollars. Append a Modifier for the Report Period/Year.
  • *AV* BUD - Returns the Budget Amount in dollars. Append a Modifier for the Report Period/Year.
  • *AV* BU2 - Returns the Budget Amount (2nd Budget) in dollars. Append a Modifier for Report Period/Year.
  • *AV* BAL - Returns the Account Balance in dollars. Append a Modifier for Report Period/Year.

2. Token Modifiers

Tokens are entered into cells along with Modifiers that indicate either a GL Account Code range or the desired timeframe for the dollar amounts.

  • xxxxx-xxx-xxx - GL Account Code. Used only with *AV* ACCTNAME and *AV* ACCTCODE tokens.
  • RP - Returns the actual or budget dollar amounts for the indicated Report Period. This is established in the report dialog by the user when the report is printed.
  • RY - Returns the actual or budget dollar amounts for the indicated Report Year. This is established in the report dialog by the user when the report is printed.
  • Px - Period x. Where x represents a fiscal period. (If January is the first month of the fiscal year then January = P1)
  • xY or xP - When x has a numeric value, you can use this modifier to subtract years or periods.
  • , (comma symbol) - A comma is used to group report year and report year modifiers into a single value.
  • : (colon symbol) - A colon is used to separate “from” and “to” values in a range.

2.1. Sample Tokens

The lists above are a little bit cryptic, so we’ve included a selection of sample Token/Modifier combinations that you can copy and paste into your XML files.

  • *AV* ACCTNAME 40000-000-000:49999-000-000 - This token will be replaced with the GL Account Name. It will create a new row on the report for each account in the range. Any other tokens on the same row will refer to this token.
  • *AV* ACCTCODE - This token will be replaced with the GL Account Code. In this example, we are assuming that the account code range was defined in a previous cell on the same row, as in the *AV* ACCTNAME 40000-000-000:49999-000-000 token above. You can also indicate an account code range as a modifier for this token but you only need to enter one account code range modifier per row.
  • *AV* ACT RP,RY - Current fiscal period actual. Actual dollar amount for the indicated report period (RP) and report year (RY)
  • *AV* BAL RP,RY - Current fiscal period account balance for the indicated report period (RP) and report year (RY).
  • *AV* ACT RP,RY-1Y - Actual dollar amount for the indicated report period (RP) and one year prior to the indicated report year (RY). In other words, the same month last year.
  • *AV* ACT P1,RY:RP,RY - Year to date. Actual dollar amounts for the 1st Period of the report year through (:) the indicated report period/report year.
  • *AV* ACT P1,RY:P3,RY - 1st quarter. Actual dollar amounts for the 1st period (P1) of the report year (RY) through (:) the 3rd period (P3) of the report year (RY).
  • *AV* ACT P1,RY-1Y:P3,RY-1Y - 1st quarter, last year.
  • *AV* ACT RP,RY-1P - Last month.

To add AcctVantage data to your template, you’ll need to use tokens as described above. Each row of data on your report must include either the ACCTNAME or ACCTCODE token with the GL Account range modifier. This token must be placed to the left of any other tokens on the same row. Other tokens placed on the same row for balances, budget or activity will refer to this account code range. You may have rows that are used only for headers, text or calculations that do not refer to an account code range.

3. Create a Template

  1. Rows 5 and 9 represent data that is to be pulled from the AcctVantage database. Notice that the Cells C5 and C9 include both the token *AV* ACCTNAME as well as an account code range. The leftmost column of data (although not necessarily Column A) must contain either the ACCTNAME or ACCTCODE token and the account code range. Additional tokens or data elements on the same row will use the account code range defined in the leftmost column, so you don’t need to call out the account code ranges for each token.
  2. Cells D6, E6, D10 and E10 contain SUM formulas. Cells D12 and E12 contain formulas that total these sums.
  3. Column D in this example is being used to display the actual (as opposed to budgeted) activity for the reporting period (RP,RY - i.e. report period, report year). Remember that when printing the report, you determine the reporting period (or “as of” period) for the report in the report dialog.
  4. Column E in this example is being used to display the Year to Date (Period 1 of the report year through reporting period).

Note: When we print this template (see below), each data row (e.g. rows 5 & 9) will expand downward to include a row for each account within the defined range that has activity.

4. Save the Template

Your template must be saved in the XML Spreadsheet (*.xml) format. The system will not read *.xls or standard Excel® spreadsheet format.

4.1. Do you want to continue?

Click Continue if you see this message when saving in Excel®.

After you save the XML template, close the Excel® application. If Excel® is still open you won't be able to complete the next step of defining the report.

Do you want to continue?

5. Install the Template (Define the Report)

Navigate to General Ledger ➤ Financial Reports and click the Create New Record icon or use the keyboard shortcut Command + N.

5.1. What type of financial report do you want to define?

What type of financial report do you want to define?

5.2. Define the financial report.

  1. Give the template a Report Name and Report Title.
  • Report Type will be Operating if you are defining an Income Statement type report or Balance if you are defining a Balance Sheet.
  • After you define the report click the Load from Disk button and point to your XML file. Click OK to save.
    • Your template will be copied into the AcctVantage data file. You can remove it from your client workstation if you like.

    6. "Print" the Report

    1. Go to General Ledger ➤ Print Financial Reports.
    2. Highlight the report to print.
    3. Choose a period to print the report "as of."
    4. Click Print.
    "Print" the Report

    6.1. Choose a location to save the report.

    When you select Print, the system will direct you to give the file a name and a save location. Rather than printing to paper, the system will export an XML file in the save location you indicate.

    Choose a location to save the report.

    6.2. View the report.

    This is what the above template will look like when the saved report is opened in Excel®.

    7. Modify a Template

    • If you need to modify your template, you can retrieve it from the AcctVantage data file by opening the record in the General Ledger ➤ Financial Reports screen. Click the Save to disk button to export the template to your client workstation.
    • You can then open the template, make changes and use the Load from disk. button to overwrite the installed template with your new one.