1. THE SUMMARY LEDGER
This document explains how to create summary ledgers and summary trees for nVision reporting.
A summary ledger sums up the details of a general ledger. One row of data on the summary ledger is the sum of many rows of data on the detail ledger. For example, if an nVision report requires an account total for several departments, the summary ledger could be constructed so that this data is summed up into one row.
The purpose of a summary ledger is to reduce the processing time for nVision reports. When you run a report, it will search for one row on the summary ledger rather than many rows on the detail ledger. If one row on the summary ledger equals 10 rows on the detail ledger the searching time would be reduced by 90 per cent.
A summary tree allows users to retrieve the details from the general ledger. Without a summary tree, the user only sees the summarized data when he uses the drill down feature of nVision. The summary tree connects the summarized data with its related details and the user sees the details during drill down.
2. CREATING AND PROCESSING SUMMARY LEDGERS
This section explains the steps involved in creating and processing the summary ledgers.
a. Verifying the Structure of Detail Trees
A detail tree is the basis for populating a summary ledger record. A detail tree also is the basis for a related summary tree. A summary tree provides the link between the data of the summary ledger and the detail ledger.
You will need to verify that the detail trees used in summary ledger definitions have nodes at every level above the detail level. The detail values will need to reside at the lowest level of the tree. This may require the insertion of dummy nodes because the data may not fit precisely into the logical groupings defined by the tree levels.
Values contained in the PeopleSoft tree tables make up PeopleSoft trees. These tables are: PSTREEDEFN, PSTREELEVEL, PSTREEBRANCH, PSTREENODE, PSTREELEAF, PSTREESTRCT, PS_TREE_LEVEL_TBL, and PS_TREE_NODE_TBL. The values in these tables must be kept in synch in order for the trees to work properly. Under normal operations, the system should keep these tables in synch without any problem. However, it is always a good idea to run the DDDAUDIT and SYSAUDIT procedures provided with the system on a periodic basis. These procedures identify many different inconsistencies between tables in the system. Any inconsistencies identified by these procedures should be corrected as soon as possible. (See your system documentation for detailed information on how to run and correct errors found by these procedures.)
b. Defining and Creating Summary Ledger Records
The next step after validating the detail trees is to define the tables that will contain data for your summary ledgers. New tables are created in the PeopleSoft system using Application Designer (Go – PeopleTools – Application Designer – File – New). An example of a summary ledger table containing the DEPTID_SUM summary chartfield is shown below. This example creates a new record (S_DEPTROLLUP_PC) by copying and modifying an existing PeopleSoft record (S_LEDGER_ACTDIV).
Notice the DEPTID_SUM field has 20 characters. Tree nodes can be up to 20 characters in length. Therefore, the fields holding summary values need to be 20 characters in length.
After defining the summary ledger table in Application Designer, you will save it and then build the SQL. Insert it in the QUERY tree for GL (Go – PeopleTools – Tree Manager – GL Section – Insert a Sibling) and save the tree.
c. Defining a Ledger Template
The next step in the creation of summary ledgers is to define a ledger template. The ledger template tells the system the name of the table in which to store the data for summary ledgers using this particular template. New templates are defined using the Ledger Template panel (Go – Process Financial Information – Maintain Ledgers – Use – Ledger Template – Record Definitions – Add). All that needs to be specified on this panel is the description, setting the Type equal to Summary and specifying the name of the summary ledger table to use. AT SAMPLE, WE USE THE S_DEPTROLL LEDGER TEMPLATE TO CONNECT THE SUMMARY LEDGER DEFINITION TO THE RECORD S_DEPTROLLUP_PC.
d. Creating Summary Ledger Definitions
The next step in the process is to create the summary ledger definitions. It is very important to evaluate your reporting needs prior to defining your summary ledgers. You will want to summarize the chartfield data to the highest level possible, while still meeting level of detail required for the majority of your reports. For example, if the data at level 5 of the DEPTBYLOC tree is what most reports reference, then that is the level you will want to summarize to. Keep in mind that you can create multiple summary ledgers to meet a variety of reporting needs. However, summary ledgers take time and resources to process so you will want to evaluate each one individually. Also remember that your summary trees will allow you to rollup this summarized data in different ways and allow you to drill down to the detail level in the detail ledger.
Summary ledgers are defined through the Summary Ledger Definition panels (Go – Process Financial Information – Maintain Ledgers – Use – Summary Ledger – Add).
The Summary Ledger panel defines the ledger template used by the summary ledger, the name to the detail ledger to extract data from, the description and effective date of the summary ledger. This panel also defines the fields on the detail ledger map to the summary ledger fields. It also defines how you are specifying the level of summarization for that chartfield.
BE SURE TO SPECIFY THE RADIO BUTTON (LEVEL OF DETAIL) AND THE DETAIL LEVEL CHARTFIELD FOR EVERY SUMMARY LEDGER CHARTFIELD. Use the outer scroll bar to move to the next field on the summary ledger.
Remember that Summary ledgers are effective dated. Make sure that the effective date is > or = the effective dates of the chartfield values being summarized.
e. Making a New Summary Ledger Available to the Business Unit
You will not be able to run the summary ledger process until you tie the new summary ledger to the business units that will be using it. Go to the Ledgers for a Unit panel (GO – Define Business Rules – Establish Business Units – Use A-M – Ledgers for a Unit – Definition). You will need to add the new summary ledger to the all Business Units that will use the summary ledger by inserting a new row containing the new summary ledger information.
BE SURE THAT THE SETID FOR THE SUMMARY LEDGER IS THE SAME AS THE SETID FOR THE BUSINESS UNIT’S DETAIL LEDGER. THIS SETID IS SPECIFIED IN THE TABLESET CONTROL FOR THE RECORD GROUP FS-04, DETAIL AND SUMMARY LEDGERS (GO – PeopleTools – Utilities – Use – TableSet ID – Update/Display).
IF THE SETID’S ARE DIFFERENT, YOU NEED TO POINT THE TREE TO THE SAME SETID AS THE SETID OF THE DETAIL LEDGER. GO TO THE TABLESETID PANEL (GO – PeopleTools – Utilities – Use – TableSet ID – Update/Display) AND ENTER THE SETID OF THE DETAIL LEDGER IN THE DIALOG BOX. GO TO THE TAB MARKED TABLE SET TREE CONTROLS, ENTER THE SETID OF THE TREE IN THE BOX ON THE RIGHT SIDE OF THE PANEL, AND THEN USE THE DROP DOWN BOX ON THE LEFT SIDE TO FIND THE NAME OF THE TREE. SAVE. THIS WILL ALLOW THE TREE TO BE USED WITH THE SETID OF THE DETAIL LEDGER. NOW YOU NEED TO GO BACK AND CREATE A NEW SUMMARY LEDGER USING THE DETAIL LEDGER’S SETID IN THE DIALOG BOX.
Also specify the calendar that the summary ledger is to use.
f. Creating a Summary Calendar
If you plan to summarize the accounting periods in the summary ledger, you have to create a new summary calendar if one doesn’t already exist to suit your needs. This is done through the Summary Calendars panel (GO – Define Business Rules – Define General Options – Use R-Z – Summary Calendar).
Summary calendars are based on detail calendar definitions. You specify the fiscal year as well as the from and through periods from the detail calendar that you want your summary calendar to summarize. Summary calendars can be used to summarize monthly accounting periods into quarterly or annual amounts in your summary ledgers if so desired.
g. Running the Summary Ledger Process
To populate the summary ledgers with data, you must run the summary ledger process for each of the summary ledgers (Go – Process Financial Information – Maintain Ledgers – Process – Summary Ledger). Multiple summary ledgers can be specified within one Run Control. To add additional summary ledgers to a specific run control simply hit the F7 key while within the scroll bar on the panel. F8 will delete a summary ledger from the run control.
Click on the Year End Adjustment radio button to process period 998 and the Balance Forward radio button to process period 0. These will be processed after the prior year has been closed. Otherwise, you will only need to summarize the current period or any of the periods required to be processed for reporting purposes.
This process runs online by clicking on the traffic light icon on the menu bar. You may want to schedule the summary ledger processes to run in your nightly batch process immediately following the edit and post processes. The summary ledger process is a Cobol program. You should be able to set it up in your scheduling system in the same manner that you have done other Cobol processes.
WHEN YOU FIRST USE THIS COBOL PROCESS YOU MAY GET THE FOLLOWING ERROR MESSAGE ON THE MESSAGE LOG; “DYNAMIC SQL ERROR WHILE CREATING A SUMMARY LEDGER. REVIEW THE PSPDYSQL.LOG FILE TO DETERMINE THE STATEMENT IN ERROR (5840,2).”
THIS MEANS THAT THE SQL PROGRAM CANNOT TRANSFER THE DATA FROM THE DETAIL LEDGER TO THE SUMMARY LEDGER.
THE RESOLUTION FOR THIS ERROR WAS TO FOLLOW A STRICT PROCEDURE WHEN SETTING UP THE SUMMARY LEDGER RECORD (SEE SECTION 2B). WE HAD TO FOLLOW THIS SEQUENCE: OPEN THE PEOPLESOFT DELIVERED RECORD (S_LEDGER_ACTDEP), SAVE AS A NEW RECORD, DELETE THE UNWANTED CHARTFIELDS, INSERT THE REPLACEMENT CHARTFIELDS, ADD KEYS AND SEARCH KEYS, BUILD AND SAVE.
3. SETTING UP A SUMMARY VIEW AND A SUMMARY TREE
A summary view and a summary tree link the summary ledger with the detail ledger. They allow the user to see the details when he uses the drill down feature of nVision. Without a summary view and a summary tree, the user only sees the summarized data. The summary view and the summary tree connect the summarized data with its related details and the user sees the details during drill down.
a. Creating a Summary View
The summary view is used by the summary tree structure to establish a link between the summary tree and the detail tree. The detail tree must be defined with strictly enforced levels in order to be able to build the view and the summary tree.
NAVIGATE TO THE SQL VIEW (File – Object Properties – Type) AND RECORD THE FOLLOWING SQL STATEMENT, MODIFYING IT TO SHOW THE CORRECT SETID, TREE NAME AND TREE LEVEL NUMBER:
SELECT A.SETID, A.TREE_NODE, A.EFFDT, B.DESCR
FROM PSTREENODE A, PS_TREE_NODE_TBL B
WHERE A.SETID = ‘XXXXXX’
AND A.TREE_NAME=’XXXXXXXXX’
AND A.SETID = B.SETID
AND A.TREE_NODE = B.TREE_NODE
AND A.TREE_LEVEL_NUM = 5
AND B.EFFDT = (SELECT MAX(EFFDT)
FROM PS_TREE_NODE_TBL WHERE SETID = B.SETID
AND TREE_NODE = B.TREE_NODE
AND EFFDT or = the detail tree from which it is based. Also, be sure to refer to a summary tree structure id like the one created in the previous step.
Once defined, add the levels, nodes and detail to the summary tree just as you would to a detail tree. Remember that the detail values for the summary tree are the summary values from the summary ledger (e.g., DEPTID_SUM). You can have multiple summary trees based on the same detail tree. This allows you to rollup the data in the summary ledger is different ways to suit your reporting requirements.
The SUM_DEPTBYLOC summary tree has been partially created in the SAMPLE COMPANY database (not all of the detail values have been added at this time). It can be used as a model for creating other summary trees if required.
D. Modifying nVision Reports to Reference the Summary Trees and Summary Ledgers
After completing the previous steps, you will need to modify the criteria in the summary nVision reports to refer to the new summary ledgers and new summary tree nodes using Layout Definition nVision menu option. If you are very familiar with the criteria coding in row 1 and column A of nVision layouts, you can use the Excel ‘find and replace’ functions to help expedite the conversion on previously created reports.
The nVision nPlosion feature can be used to expand down to the lowest level of detail in the summary ledger. By referencing the summary tree nodes in your report criteria, you can drilldown to either more detailed information in the summary ledger (if available) or to the detail ledger information once the report is run. You can also have a mixture of detail ledger and summary ledger criteria in the same report if necessary. You will want to minimize the use of detail ledger criteria as much as possible to improve report performance.
BE SURE TO MODIFY THE NVISION SCOPE DEFINITIONS TO REFLECT THE SUMMARY TREES BEING USED.
e. Performing Database Tuning on Summary Ledger Tables
Some database tuning will be required on an ongoing basis in order to optimize performance of your nVision reports. You will need to work closely with the DBA staff to identify and tune SQL statements that have excessive run times. Your DBA may need to modify existing indexes on the summary ledger tables or add new ones.