This chapter provides an overview of report scopes and discusses how to:
Define scopes.
Work with existing scopes.
Use scope-related variables.
A report scope enables you to create multiple instances of a report using a single report layout and report request. Using a scope, each report instance contains data specific to an individual field value, such as a business unit or department, or to a group of values, such as a tree node that summarizes all sales departments. In this way, each report instance can share the same layout, while containing data unique to these field values. You might run three instances of an expense report that share the same layout but contain the expenses of one division each.
When defining a report request, you can use the scope feature to create multiple instances of a report from a single request.
You can specify more than one field in the scope to create instances that represent combinations of values of multiple fields. For example, you can use a multifield scope to create an instance for each product line (a grouping of products) within each region (a grouping of departments).
Whenever you use scope to produce multiple instances of a report, use PS/nVision variables in the layout headings to identify the content of each report.
See Also
When you define a new scope, you must determine how many instances to produce and how each instance is summarized.
If your scope is based on two or more fields (such as business unit and product), PS/nVision normally produces a report instance for each combination of the selected nodes or detail values for all specified fields. However, you might have data for only a subset of these combinations—for example, if each business unit sells only a subset of the total list of products. You could limit the number of report instances produced by defining multiple scopes, specifying only the valid combinations, and using different report requests to apply these scopes to appropriate layouts. But if you are working with many combinations, a better solution is to create a field combination table containing only the field value combinations you want for your scope. If you specify a field combination table, PS/nVision generates an instance of the report for only those field values that are listed as valid combinations on the table.
You create a field combination table in Application Designer just as you would create any other custom table. After creating the table with the combinations of fields to use, you point to that table from the Field Combination Table field in the PeopleSoft nVision Scope Definition dialog box.
You can also create a dynamic record that is populated by a query and includes only the combinations of field values that actually have data for that reporting period. This eliminates printing blank pages (report instances) when you have fields that have no data for a particular reporting period.
Note. When you create a combination table, you need only include the scope fields whose values you want to limit, but you can also include SETID and EFFDT. You can populate the table using a SQL tool as well, but a better option might be to create a simple page to update the table.
If you specify field values using tree nodes, PS/nVision uses the combination table to determine whether the underlying details are valid before producing an instance for a tree node. For example, if an instance is requested for each product and division (a rollup of departments on an organization tree), PS/nVision determines whether any departments in each division are valid in combination with a particular product. In this case, the combination table should contain a DEPTID and PRODUCT field, with each row containing the valid department/product combinations.
Using Business Unit Keyed Trees
You can define report scopes using business unit keyed trees by adding a valid business unit to the scope definition. You must still enter a setId as the key field for the scope, and the business unit you enter is used for selecting business unit keyed trees. At the field level, you must select the BU Keyed Tree option to limit the tree selection list to those trees keyed by the business unit entered.
At runtime, the requesting business unit is used as a replacement for the business unit that you entered when defining the scope. Therefore, if you define a tree with the same name for multiple business units, you can use the same scope for each version.
This section discusses how to:
Create new scopes.
Select scope fields.
Select tree levels and tree nodes.
Access the PeopleSoft nVision Scope Definition dialog box by selecting nVision, Scope Definition from the nVision menu.
This is an example of the PeopleSoft nVision Scope Definition dialog box:
To define a new scope in PS/nVision:
Select nVision, Scope Definition from the nVision menu.
Click theNew button.
Enter a scope name and a description.
You may use up to 10 characters for the scope name and up to 30 characters for the scope description.
Enter the setID for this scope.
If you are defining your scope using business unit keyed trees, enter the business unit.
If you are using multiple scope fields, enter the appropriate tables in the Field Combination Table field.
Add fields to the scope definition by clicking the Add button.
The PeopleSoft nVision Scope Field dialog box appears.
This is an example of the PeopleSoft nVision Scope Field dialog box:
For each field that you add to a scope, you specify the source of the field values and the values to use. This process is similar to defining field criteria in a matrix layout.
Each of the options in the PeopleSoft nVision Scope Field dialog box selects a different set of these values for building your scope:
Tree Node (Summary) Instances: Selected Tree Nodes, Children at a Level, All Nodes at Selected Levels.
Used with Summary Ledgers only: Selected Summary ChartField Nodes.
Detail Value (Detail) Instances: Detail of Selected Parents, Selected Detail Values, All Detail Values.
Field |
Enter a field to add to your scope. |
Select this option to create an instance for each tree node that you select. When you type the field name, you are prompted to enter a tree name and level. |
|
Select this option to create an instance for each tree node at a specified tree level that is a child of the parent node. The parent nodes need not be the immediate parent of nodes at the specified level. When you type the field name, you are prompted to specify a tree name and level. |
|
Select this option to create an instance for every node at each selected level. When you type the field name, you are prompted to specify a tree name and level. |
|
Select this option to create an instance for every specified node in a tree used to create a summary ledger. (This option applies only to users of PeopleSoft General Ledger.) You should use summary trees rather than the summary ChartField nodes. When detail values are summarized into tree nodes, you must use a different ChartField in the summary ledger data record to accommodate the maximum length of a node name (20 characters). When you type a field name, you are prompted to specify a tree name and level. |
|
Select this option to create an instance for each detail value associated with the specified tree nodes. |
|
Select this option to create an instance for each detail value that you specify. This option activates the Value Table field, where you can specify the table that contains the values that you want to select. |
|
Select this option to create an instance for all detail values. This option activates the Value Table field, where you can specify the table that contains the values that you want to use. |
|
Enter a date to determine the trees you can select from. |
|
Select this option to limit tree selection to trees keyed by the business unit entered on the PeopleSoft nVision Scope Definition dialog box. |
|
Select the required tree for your scope. The list is filtered based on the setID or business unit, and field entered. |
See Also
If you selected the All Nodes at Selected Levels, Selected Tree Nodes, Children at a Level, or Detail of Selected Parents options in the PeopleSoft nVision Scope Field dialog box, the PeopleSoft nVision Tree Nodes dialog box appears prompting you to specify the tree levels that contain the nodes you want to use.
This is an example of the PeopleSoft nVision Tree Nodes dialog box:
To select tree levels and nodes in PS/nVision:
Select nVision, Scope Definition from the nVision menu.
Click theNew button.
Enter a scope name and a description.
You may use up to 10 characters for the scope name and up to 30 characters for the scope description.
Enter the setID and other values for this scope.
Add fields to the scope definition by clicking the Add button.
The PeopleSoft nVision Scope Field dialog box appears.
Select All Nodes at Selected Levels,Selected Tree Nodes,Children at a Level, or Detail of Selected Parents option.
The PeopleSoft nVision Tree Nodes dialog box appears.
In the PeopleSoft nVision Tree Nodes dialog box, select a level.
Place the cursor in the Tree Node field and click to see a list of nodes either by name or by position.
Select the nodes to use for your report.
Click the OK button.
The PeopleSoft nVision Scope Definition dialog box shows your fields and tree nodes.
Click the Save button to save the scope.
Note. Make sure to click the Save button when you are finished with your scope. Clicking the OK button closes the PeopleSoft nVision Scope Definition dialog box without saving your scope.
This section discusses how to:
Open existing scopes.
Delete existing scopes.
Add fields and values to existing scopes.
Remove fields and values from existing scopes.
This is an example of the PeopleSoft nVision Open Scope Definition dialog box:
To open an existing scope in PS/nVision:
Select nVision, Scope Definition from the nVision menu.
Click theNew button, and enter a scope name and a description.
Enter the setID and other values for this scope.
Add fields to the scope definition by clicking the Add button.
Select either All Nodes at Selected Levels, Selected Tree Nodes, Children at a Level, or Detail of Selected Parents option.
In the PeopleSoft nVision Tree Nodes dialog box, select a level.
Place the cursor in the Tree Node field and click to see a list of nodes either by name or by position.
Select the nodes to use for your report.
Click the OK button.
From within the PeopleSoft nVision Scope Definition dialog box, click the Open button.
The PeopleSoft nVision Open Scope Definition dialog box appears.
Click the Get List button to see a list of available scope definitions.
In the TableSet ID list box, there is a list of setIDs; in the Scope Name – Description list box, there is a list of scope definitions for each setID.
You can limit the list by entering qualifiers into either the TablesSet ID or Scope Name fields before clicking the Get List button.
Select a scope definition from the list.
Click the OK button.
To delete an existing scope in PS/nVision:
Open the scope that you want to delete.
Click the Delete button.
To add additional field values to a scope in PS/nVision:
Select nVision, Scope Definition from the nVision menu.
Click theNew button, and enter a scope name and a description.
Enter the setID and other values for this scope.
Add fields to the scope definition by clicking the Add button.
Select either All Nodes at Selected Levels, Selected Tree Nodes, Children at a Level, or Detail of Selected Parents option.
In the PeopleSoft nVision Tree Nodes dialog box, select a level.
Place the cursor in the Tree Node field and click to see a list of nodes either by name or by position.
Select the nodes to use for your report.
Click the OK button.
In the PeopleSoft nVision Scope Definition dialog box, click the Add button in the Fields selection area.
The PeopleSoft nVision Scope Field dialog box appears.
Enter the new scope fields and related values, and click the Save button.
Click the OK button to return to the NVSUSER homepage.
See Also
To remove a field from a scope definition in PS/nVision:
Select nVision, Scope Definition from the nVision menu.
Click theNew button, and enter a scope name and a description.
Enter the setID and other values for this scope.
Add fields to the scope definition by clicking the Add button.
Select either All Nodes at Selected Levels, Selected Tree Nodes, Children at a Level, or Detail of Selected Parents option.
In the PeopleSoft nVision Tree Nodes dialog box, select a level.
Place the cursor in the Tree Node field and click to see a list of nodes either by name or by position.
Select the nodes to use for your report.
Click the OK button.
In the PeopleSoft nVision Scope Definition dialog box, select the field to remove.
Click the Delete button in the Fields group box.
To remove a field value from a scope definition in PS/nVision:
In the PeopleSoft nVision Scope Definition dialog box, select the field whose value you want to remove.
In the right-hand list box, select the value to remove.
Click the Delete button in the right-hand group box.
Using scope-related variables is discussed in the “Creating Matrix Layouts” chapter.