The Database

The MARS database consists of three components. In order to explain these components, this chapter covers the following topics:

Topic

Contents

Page

Overview

Describes the components of the database.

See Overview

Master Tables

Explains the role of master tables, their structure, and how to maintain them.

See Master Tables

Ledgers

Explains the general purpose of ledgers. Defines the purpose of each ledger and places it into one of the following ledger categories: Detail, Summary, Open, Grant and Project, History, and Online.

See Ledgers

Document Listing

Relates how the document listing is used and how items are cleared from it.

See Document Listing (SUSF) Window

Reconciliation between Tables and Ledgers

Lists the tables that maintain summary balances for revenue, expenditure, appropriations, and balance sheet accounts, the ledgers that keep an audit trail of account activity, and the system assurance programs that can be run.

See Reconciliation between Tables and Ledgers

System Setup

Outlines the system setup issues that financial managers must address to ensure that MARS effectively meets their needs. Provides guidelines for properly setting up your system.

See System Setup

Overview

The discussions in this chapter revolve around the three components defined below. In addition, reconciliation between tables and ledgers, as well as management responsibilities toward MARS are also addressed.

Database Component

Function

Master Tables

The Master Tables contain centralized information specific to an installation; for example, its chart of accounts, system accounting/control options, and open items and budgetary data. The contents of most master tables are displayed online.

Ledgers

The Ledgers contain detailed and summary level data from accepted transactions. A version of the Detail General Ledger is available for online viewing. Most other ledger files are not displayed online. Budgetary detail can be viewed online through the use of the flexible budget ledger.

Document Listing

The Document Listing (SUSF) serves as a "holding file". It holds transaction data from the time it is entered into the system until system accepts the data as valid.

Accepted batches and documents remain on the Document Listing (SUSF) for a user-specified number of days. They are then purged by MARS archive utility (see the discussion on archiving accepted transactions later in this chapter). The Document Listing (SUSF) is available for online access, so users can approve documents, correct rejected documents, and review accepted documents.

Master Tables

Master tables are randomly accessible tables of information. They provide MARS with data for validating documents for a specific installation; for example, the installation's chart of accounts and system options.

Two types of master tables exist in MARS ADVANTAGE:

As you might expect, user-maintained tables are maintained by users and are referenced by MARS ADVANTAGE. For example, you add information to the Chart of Accounts and system control tables and MARS references your selections. Any changes to these tables must be made by a user.

System-maintained tables, on the other hand, are updated automatically by MARS as a result of processing documents. These tables contain data such as account balances and open items, and are not updated manually by users.

The Role of Master Tables

As described in the following paragraphs, master tables provide MARS with a central source of information that can be used during processing and reporting.

Additionally, master tables contain valuable information for users. Various levels of users need to access master table information because:

Master Table Structure

In master tables, information is stored in lines, with all related information on one line. Information within a line is divided into fields. Special fields, called key fields, identify a line and distinguish lines from each other. A table can have more than one key field, but all the key field values for a line are combined to get a unique identification for that line. Therefore, two lines in a table cannot have identical values in all their key fields. For example, a vendor is uniquely identified in the vendor table by its Vendor code. To retrieve a specific record, the user must know its key; for example, to look up a vendor's name and address you must know the vendor's code. All information in a table line that is not a key is referred to as result data.

The Agency (AGC2) and Activity (ACT2) windows illustrate two different master tables. Agency (AGC2), shown in Figure 3, lists valid Agency codes for each fiscal year and the associated agency and manager names. Agency (AGC2) must include one line per fiscal year for each agency at the site. MARS uses Agency (AGC2) to check the Agency codes entered in documents and to infer the agency names on reports.

  1. Figure 3

 

Agency (AGC2)

Activity (ACT2), shown in Figure 4, includes columns used to look up hierarchies for reports. Supplied only with an Activity code, MARS can place that activity under the proper activity class, category, group, and type when it prints reports.

  1. Figure 4

 

Activity (ACT2)

Open Purchase Order Header Inquiry (OPOH), shown in Figure 5, is an example of a system-maintained table. It contains a list of currently open (unliquidated) purchase orders and information about each purchase order. This table is updated automatically each time a new purchase order transaction is accepted into the system and each time an existing purchase order is referenced. Later, MARS uses this table to ensure that the purchase order numbers referenced on payment vouchers are valid.

  1. Figure 5

 

Open Purchase Order Header Inquiry (OPOH)

Master Table Maintenance

Master table maintenance includes adding, changing, or deleting a line in a master table. When new codes are added to the chart of accounts, new lines are needed (for example, a new Fund code, Vendor code, Object code). A new code cannot be used in transactions until it is added to the appropriate master table. Obsolete or erroneous codes should be deleted as necessary. Changing a line means changing the non-key fields (for example, changing a vendor address). To change a key field, the user must actually delete the old line and add the new line. A separate maintenance window exists for each master table.

Many of the codes in MARS are optional; if, for example, your installation does not use the activity group, this table will be empty.

Ledgers

In MARS ADVANTAGE, ledgers store data entered into the system by transactions. The data stored on ledgers includes the account code structure and other informational type data, for example, descriptions, as well as the amounts with the appropriate Debit/Credit code. The information stored in ledgers is used to generate most reports. Any reports, standard or custom, that show data by accounting period use the ledgers as input.

Many ledgers exist in MARS ADVANTAGE, each one serving a different purpose and collecting data from various sources. Some ledgers are updated daily, as new transactions are accepted by MARS ADVANTAGE. These detailed ledgers serve as the detailed audit trail of the system. These ledgers are high-volume and grow quickly in size; therefore, they should be summarized periodically (at period closing) into more manageable levels (summary ledgers). Summary ledgers contain all codes in the account code structure, so no data is lost for management reporting or accounting purposes. Individual transaction detail is not distinguishable on summary ledgers.

When a transaction is summarized into a summary ledger, it is removed from the detail ledger and placed in the closed ledger. Thus, summary ledgers contain data for an entire fiscal year, while detail ledgers contain data only for accounting periods. Detail level reports, for example, line-by-line transaction listings are easily obtainable for open accounting periods. However, it is almost impossible to get detailed reports for closed accounting periods. This historical data is usually stored on offline storage media (tape); therefore, advanced notice is required to the department before a detailed report on a closed accounting period can be expected.

The following sections describe MARS ledgers. A detailed discussion of the type of information stored in each ledger is located in the System Administration Guide .

Detail Ledgers

The detail ledgers contain detail transaction data for all open accounting periods. Monthly closing deletes records from the detail ledgers and writes them to the appropriate detail history ledger. The detail ledgers and their purposes are listed in the table below.

Ledger

Description

Current Detail Budget Ledger (CURRBD)

Contains all appropriation, expense budget, and revenue budget transactions on a detail level for all open accounting periods.

Allotment Ledger (CURRAL)

Contains all allotment transactions (one entry per transaction) on a detail level for the entire fiscal year. There is no summary allotment ledger.

Current Detail General Ledger (GENLED)

This is a balanced ledger which contains all requisition, purchase order, payment voucher, manual warrant, automated cash disbursement, invoice, cash receipt, payroll voucher, and journal voucher transactions on a detail level for all open accounting periods. The account distributions relevant to revenue, expenditure, and balance sheet entries are included.

Current Detail Plans Ledger (PLNLED)

Contains all plan transactions (one entry per transaction) on a detail level for the entire fiscal year. There is no summary plan ledger.

Current Detail Collection Memo Ledger (COLLED)

Contains one entry for each cash receipt on a detail level, for all open accounting periods. Each entry contains the detail account distribution associated with the corresponding revenue line.

Daily Budget Ledger (BUDLEDD) and Daily General Ledger (GENLEDD)

These ledgers represent a day's worth of transactions. They are used in the nightly system's assurance process as well as for updating the online general ledger, vendor history tables, and begin day balances.

Encumbrance Ledger (ENCLED)

This is a special reporting file created by annual closing containing detail encumbrance transactions from the closed year.

Trial Balance Ledger (TACBAL)

This ledger contains unadjusted trial balances. It is created by Trial Annual Close (AFINTAC1), which simulates an annual close.

Accounts Payable History Ledger (VHLED)

This ledger is deleted every day during the Daily Ledger Definition (AFINDAYL) process, and is only updated when the Summarize Disbursements option on System Control Options (SOPT) is set to Yes . The Post Offline Ledger Records (AFINADPR) process adds detail records to this ledger.

Additionally, this ledger is used as input to the Vendor History Update (AFINVHUP) program that is run every night. AFINVHUP updates the document history tables.

Manual Warrants Register (LODREG)

This ledger was created for reporting reasons only. It is updated everyday in the Daily Ledger Update (AFINPLT) process with detail manual warrant documents. During the Automated Disbursement cycle, this file is appended to the AUTOD's ledger so that manual warrants will show up when your Voucher Payment Check Register report (A657), and Discounts Taken/Lost report (A658) are run. The file is then deleted and redefined in preparation for the next round of manual warrants and checks.

Summary Ledgers

Summary ledgers contain one record per accounting distribution, reflecting all activity for closed periods. Monthly closing summarizes the data on the detail ledgers and updates these summary ledgers accordingly.

Ledger

Description

Year-to-Date Accounting Period (YTDAPR)

This ledger summarizes all accounting transactions from closed accounting periods. It contains one entry for each month. It is created by Accounting Period Summary (AFINAPLS).

Year-to-Date Budget Ledger (YTDBUD)

This ledger summarizes all appropriation, expense budget, and revenue budget transactions from closed accounting periods. (Quarter-to-Date and Month-to-Date Budget Ledgers can also be generated if a reporting requirement occurs.)

Year-to-Date General Ledger (YTDLED)

This ledger summarizes all accounting transactions from closed accounting periods. It contains one entry for each year. It is created by Accounting Period Summary (AFINAPLS) and Monthly Closing (MCLS). (Quarter-to-Date and Month-to-Date General Ledgers can also be generated if a reporting requirement occurs.)

Year-to-Date Collection Memo Ledger (YTDCOL)

This ledger summarizes the current detail collection memo ledger from closed accounting periods. (Quarter-to-Date and Month-to-Date Collection Memo Ledgers can also be generated if a reporting requirement occurs.)

Open Item Ledgers

Open item ledgers contain all open items (regardless of age) and those items closed between the current and one preceding accounting period. (Open items stay in ledgers for one accounting period following the period when they were closed.)

The open item ledgers contain the following types of records:

The match key field on these ledger records is the Document Number of the open item document. (The match key of the succeeding documents is the Document Number of the referenced open item.) Reporting programs and other programs can use this match key field to make a set of transactions that are associated with each other. Summarizations can be made from the set, or a sorted list of detailed transactions can also be produced.

Open item detail is stored on ledgers so that open item and aging reports can be generated. The information in the open item master tables is a summarization of the information in the ledgers. The same data is kept in master tables so users can access it online. The open item ledgers and their purposes are listed in the table below.

Ledger

Description

Open Purchase Order Ledger (POOPEN)

Contains all transactions related to open purchase orders (reserve for encumbrances subsidiary ledger).

Open Payment Voucher Ledger (PVOPEN)

Contains all transactions related to open payment vouchers (vouchers payable subsidiary ledger).

Open Invoice Ledger (INOPEN)

Contains all transactions related to open invoices (billed receivables subsidiary ledger).

The open item ledgers are purged by the Monthly Ledgers Clearing (AFINMCCL) program. The open item tables are purged by Monthly Table Clearing (AFINMCCT) program.

Grant and Project Ledgers

Transaction information relevant to grants and projects is also maintained in separate ledgers. The ledgers and their purposes are listed in the table which follows.

Ledger

Description

Current Month Project (PRJLED) and the current month Grant Ledger (GRTLED)

Contain all transactions from the current month related to projects or grants. These ledgers are created as part of monthly closing. Project/Grant codes are inferred from Job Numbers, Organization codes, Activity codes, or Reporting Category codes used on accounting and job transactions. Project/Grant codes can be inferred from job numbers only in installations where the Job Cost subsystem is used.

Inception-to-Date Project (ITDPRJ) and the Inception-to-Date Grant Ledger (ITDGRT)

Contain summary level data, by project or grant, from the inception of the project/grant to the current month. These two ledgers span fiscal years. They are updated during accounting period closings.

History Ledgers

The history ledgers are usually stored on offline storage media (tapes or cartridges). They are the detail ledger files for closed accounting periods, closed open items, and closed years. The following history files constitute the historical audit trail required by accepted accounting procedures.

Ledger

Description

Closed Year Ledger (CLSYTD)

Contains the Summary General Ledger for the closed year.

Prior Year-To-Date History File (CLSYBD)

Contains the summary budget ledger for the closed year.

Cleared Items Ledger (CLRLED)

Contains all closed items purged from the open item ledgers by the Monthly Clearing program.

Closed Detail Budget Ledger (CLSBUD)

Contains detail records from Budget Ledger for a closed accounting period.

Closed Detail General Ledger (CLSLED)

Contains detail records from the General Ledger for a closed accounting period.

Closed Detail Collection Memo (CLSMEM)

Contains detail records from the Collection Ledger for a closed accounting period.

Closed Grants (CLSGRT)

Contains the inception-to-date records for closed grants.

Closed Projects (CLSPRJ)

Contains the inception-to-date records for closed projects.

Online Ledgers

MARS provides the following online ledgers.

Ledger

Description

Online General Ledger (OLGL, OLG2)

This ledger is accessed through MTI using the Online General Ledger (OLGL, OLG2) tables. The package is delivered with a one-time program to load the contents of the year-to-date General Ledger and the Detail General Ledger into the Online General Ledger file. From that point, the Online General Ledger is updated daily.

Real Time General Ledger Inquiry (LDGR, LDG2)

In addition to the batch-oriented Online General Ledger and the Flexible Ledger capabilities, MARS provides an optional real-time, general ledger. Whenever ledger entries are posted by online document processor, records are posted to the Real-Time General Ledger.

Expense Budget Detail (Extended) (EEXD)

Shows each budget and each pre-encumbrance, encumbrance, expense, or budget transaction against a particular budget.

Document Listing (SUSF) Window

The Document Listing (SUSF) window is a "holding file" for transactions. The Document Listing (SUSF) provides the following features:

Archive Program

The Document Listing (SUSF) acts as a temporary storage facility, allowing users to view the batches and documents stored in the suspense file prior to running the Archive (AFINARCH) program. Once the Archive program is run, all batches and documents labelled as accepted ("ACCPT") or deleted ("DELET") are moved from the Document Listing (SUSF) to an offline archive tape and are no longer accessible online.

The Archive program is run by the computer operations personnel, on a regularly scheduled basis.

A parameter provided in the Archive program specifies the number of days that accepted batches and documents are allowed to remain on the Document Listing (SUSF). The program is delivered with this parameter set to 00005 and this designates that accepted batches and documents remain on the Document Listing (SUSF) for five days. On the 6th day, they will be deleted (if the Archive program is run). Archive also generates a list of all data that was archived.

Reconciliation between Tables and Ledgers

Summary balances for revenue, expenditure, and balance sheet accounts are maintained in the following MARS tables:

These summary balances are supported by detail in the ledger files. An audit trail of account activity is determined from the following ledgers:

MARS is designed to achieve complete integrity between ledgers and tables, so that when the detail in the ledgers is summarized, the resulting account balances equal the account balances stored in the master tables.

System crashes can occur on any computer hardware. Occasionally, operational errors in the restore and recovery procedures following a system crash cause balance discrepancies. Discrepancies may occur, for example, if the backups used were not synchronized.

The problem may be further complicated because the tables and the ledgers are updated at different times. Problems are likely to occur in the first months of live operation, when operators are unfamiliar with MARS backup, recovery, and restore procedures.

Systems Assurance Processing

In response to the occurrences mentioned above, MARS contains Systems Assurance Process programs designed to help maintain data integrity on a daily, monthly, and annual basis. The Systems Assurance Process verifies that:

In addition, problems occurring due to system crashes or operational errors will be detected and reported by the System Assurance Process. Systems Assurance (SA1 only to balance debits and credits in ledgers) can also be run against monthly and year-end functions, allowing each site flexibility to establish its own systems assurance procedures.

The following jobs are related to the Systems Assurance Process. A brief description for each is provided below.:

Systems Assurance Jobs

Job ID

Job Name/Purpose

AFINSA1

Detailed General (Budget) Ledger Internal Consistency Report. Detects and reports imbalances between debits and credits on the Daily General Ledger and the Daily Budget Ledger.

AFINSA3

Out of Sync Listing. Verifies and reports that all records posted to the Daily General Ledger and Daily Budget Ledger also updated the appropriate balance tables. Specifically, amounts on the balance sheet, revenue budget, expense budget, and appropriation tables are verified against the current day's ledger postings.

AFINSA5

SA5 Organizational Structure Inconsistencies. Detects and reports inconsistencies in the organization structure found in Organization (ORG2).

AFINSA7

SA7 System Assurance - Alternate Views. Produces a report showing all of the alternate views, their record counts and whether the view tables are out of sync with their associated base tables.

AFINSA9

Balanced Budget Edit and Exception Report. Produces a report showing all funds and their balance status. If a fund is out of balance, all transactions for the day are listed.

AFINSAJ

Updating Begin Day Amounts. This program is executed after SA1 and SA3 are reconciliated. SAJ insures that the following tables have begin day amounts equal to their current amounts: balance sheet, revenue budget, expense budget, and appropriation.

More information is provided about selected programs in the sections that follow.

Ledger Imbalances

Detailed General (Budget) Ledger Internal Consistency Report (AFINSA1) runs the SA1 program to examine the Daily General Ledger and the Daily Budget Ledger and to report any out of balance condition. If all daily transactions have posted correctly to the ledger, ledger debits and credit will be equal.

The SA1 program looks for balancing entries within accounting period, fund, and document ID. If a site is using summary ledgers rather than detailed ledgers (and therefore is running AFINBSPT rather than the AFINSPLT to update ledgers), the SA1 program will balance within fund. Also note that if a site is posting summarized entries out of automated disbursements, AD documents will be summarized by fund, rather than by document ID.

Ledger vs. Table Imbalances

Out-of-Sync Listing (AFINSA3) runs the SA3 program to compare account balances, as stored in your Financial database, against the account balances as stored in the Daily General Ledger and the Daily Budget Ledger. Specifically, the following balances are verified:

The SA3 program produces a report showing only the out-of-sync items. Every entry on each of the four tables is checked regardless of whether transactions were posted to a particular table entry that day.

Updating Begin Day Amounts

Updating Begin Day Amounts (AFINSAJ) executes the SAJ program to update begin day amounts with current amounts. This job is run after ledger vs. table imbalances are successfully reconciled. Specifically, the following amounts are used in updating:

After SAJ runs, all columns described above should have begin day amounts equaling current amounts.

System Setup

This section outlines the areas that an installation's financial management should become involved with to ensure that MARS effectively meets the accounting, budgeting, and reporting needs of the user. These responsibilities include the following suggestions:

BSSPLIT summarizes only offset records containing the following accounts:

These records are summarized to the following level:

Overall System Operation

To ensure that MARS is operating effectively, the following procedures should be implemented:

Annual Functions

The following activities are suggested:

Need for Backups

Proper file backups on a daily basis are absolutely essential for uninterrupted and accurate operations. Backup recommendations are included in the System Administration Guide , but each installation must establish detailed procedures that conform to its operating environment. These procedures should be established and approved during the installation phase, and be ready for implementation on the first day of live system operation.