Upload
docong
View
223
Download
3
Embed Size (px)
Citation preview
Oracle Open World 2010
Go Beyond the Basics with PeopleSoft Query and nVision
Presented by:Millie Babicz
SpearMC Consultingwww.SpearMC.com1-866-SPEARMC
2
SpearMC Solutions Overview
PeopleSoft Query
– 9.1 Query Highlights
– Beyond the Basics
PeopleSoft nVision
– 9.1 nVision Highlights
– Beyond the Basics
Agenda
SpearMC Solutions Overview
4
About SpearMC
Who is SpearMC?
SpearMC is a full-service
consulting and technology
services firm with specific focus
on Oracle/PeopleSoft
Applications
Our Local and well-connected
network of top-tier Business
Analysts, Technical Leads,
Developers and Project Managers
keep travel related costs to a
minimum
It is our goal to provide top-tier
professional services at
competitive rates
5
About SpearMC
SpearMC is recognized
by the San Francisco
Business Times and
PriceWaterhouseCoopers
as one of the region’s
fastest growing private
companies in 2009
Slide 5
6
Financial Services
PeopleSoft Financials v8.9 Upgrade
PeopleSoft Project Costing v8.9 Implementation
TechnologyUbisoft: PeopleSoft Financials v9.0 Upgrade
NetApp: Oracle Data Warehouse & Reporting
Consumer ProductsFinancials v8.8 Global Implementation
PeopleSoft Financials Long-Term Support
Retail & Logistics24 Hr Fitness: PeopleSoft Reporting Strategy
Bekins: PeopleSoft Billing v8.9 Implementation
Higher Ed & Government Art Institute: PeopleSoft Financials Training
City of Seattle: Chart of Accounts Redesign
About SpearMC
SpearMC delivers Oracle/PeopleSoft services across numerous industry
domains and markets
7
Our Expertise…
Personal
Service
Professional
Results
Project Management
Operations
Improvement
Business
Intelligence
Education
IT Strategy/
Architecture
Application
Development
ERP Integration
Recruiting/Support
PeopleTools - Query
9
Ad-Hoc & Simple Tabular Reporting
Capability
Quickly puts operational information
in the hands of decision makers
Schedulable
Query
Continues to have benefits…
Power of SQL
Database Platform Independence
Introduced Web Service for Query in
PeopleTools 8.48
Output to Excel, HTML
Query 9.1 Highlights
11
PeopleSoft Query
Enhancements
New connected query
Ability to develop in-tree criteria prompts
Ability to email application engine results
Drilling URL in PSQUERY
12
Connected Query
Connected Query provides the ability to create a single XML file based
on a set of queries with parent-child relationships
A new folder for Connected Query has
been added under Reporting Tools
A Connected Query is a
hierarchical object built with
existing PeopleSoft Queries
A parent query can nest “n”
levels of child queries and
any child query can have “m”
sibling queries within a
hierarchy
The output for connected
query is always an XML file
Connected Query can be
used as a data source for
XML Publisher reports
13
Ability to Add an In-Tree Criteria Prompt
You are able to add in-tree
criteria prompts to your
queries, and define tree
option in
Expression 2 type
You can schedule queries that have In-Tree prompts using the Schedule
Query component or using the Schedule links in the Query Manager and
Query Viewer
14
When you access the Run page of a query that has a Drilling URL defined,
its query results are shown as links
Querying Results with Drilling URLs
Clicking these result links either:
Runs the destination query with
prompt key values if the source
query has prompt criteria defined
and prompt keys are mapped to
source query result columns
Launches the component with the
search key values if the source
query has search keys defined and
search keys are mapped to source
query result columns
Redirects the external URL
15
Drilling URL Example
Query URL
Create a prompt for Business Unit and
Project and map the values from your one query to incorporate into your new query
16
Email Query Results
Scheduled Query
You are able to add email as
an output type for scheduled
query (any Application Engine
program) results
With this option, you can
schedule queries to run and
have the results emailed
directly to recipients (not just
a link to the Report Manager)
Ability to Email Application Engine Results
17
With PeopleTools 8.5, users now have the ability to subscribe to
application data and get told when something they care about changed.
Why is RSS So Important?
Users just want to be told when something that's important to them changed
Query – Beyond the Basics
19
Union
– Use to join separate queries.
Left Outer Joins
– Retrieves all the data in the first
record and only matching data from
the second record.
– SQL: D.VOUCHER_ID(+)
Subquery
– Subset of data used by a main query
for data comparisons
Expressions
– SQL Expressions Used in Query Two
Ways:
• As comparison values in selection
criteria
• As columns in the query output
Advanced Features
20
Expressions will vary based on database
platform being utilized
You can create thousands of different
expressions using a combination of the
following:
– Database Hints (must begin with /*+)
– SQL Functions (ABD, TRIM, CURRENT_DATE)
– Operators (+, -, *, /, <, >, AND, OR, etc.)
– Values (4, A, False, True, INV_AMT, DISC_AMT)
Query Expressions
Expressions are calculations that PeopleSoft Query can perform as part of a
query when PS Query doesn’t provide a way by default to calculate a value.
21
LTRIM(E.INV_ITEM_ID,'0') – trims leading zeros off item id
TO_NUMBER(LTRIM(A.PO_ID,'0')) – once the leading zeros have been
trimmed off the PO_ID, the value is change to a number.
TO_NUMBER(LTRIM(F.VENDOR_ID,'0')) – once the leading zeros have
been trimmed off the VENDOR_ID, the value is changed to a number.
SUBSTR(A.ACCOUNTING_DT,1,4) – takes accounting date, (2007-01-01)
goes to position 1 and picks up positions 1 thru 4, which ends up being the 4
digit year 2007.
DECODE(A.ERNCD,'120',A.OTH_EARNS,0) – if the earning code is equal to
120 then return OTH_EARNS, otherwise return a value 0.
A.QTY_ONHAND-B.QTY – simple equation that subtracts the 2 quantity
fields to make sure they always return a zero.
Query Expressions Examples
22
Using Expressions
Write an expression that looks between
two dates:
First, if the Hire Date is between the two
prompt dates, it will return "New Hire"
Second, if the Termination Date is
between the two dates, it will return
"New Term"
Third, if those two conditions are not
met, it will simply need to return
"Existing"
CASE statements
Create a prompt based on HIRE_DT
23
User can either provide the prompt value to return results for a specific
value or leave it blank to return rows for all values.
Using Prompts
Optional Prompts
24
Type the following in Edit Expression:
Replace :1 with the actual prompt value. You must first create this
prompt.
Now you need to pass 01/01/1900 as an input parameter if you want to
run the query for current date. Passing any other values will make the
query run for that date.
This way you can achieve both (run the query for a user selected date or
run a query for current date which can be used to schedule).
How to Default Current Date in a Query prompt automatically
Type Default Date Expression
Criteria current date decode(:1,TO_DATE('1900-01-01','YYYY-MM-DD'),
trunc(sysdate),:1)
current date - 1 decode(:1,TO_DATE('1900-01-01','YYYY-MM-DD'),
trunc(sysdate)-1,:1)
current date + 1 decode(:1,TO_DATE('1900-01-01','YYYY-MM-DD'),
trunc(sysdate)+1,:1)
Note:
Different database platforms use different functions (e.g. MSSQL uses “getdate” instead of “sysdate”)
PeopleTools - nVision
26
Allows end users to retrieve information from the PeopleSoft database using
ledgers, trees, and queries and to place it into an Excel spreadsheet
Has been the reporting product of choice for financial reporting, but also used
frequently with other modules, including HR
nVision Bursting
– Delivered Security template and scopes in nVision
– Custom programmatic generation of rules
• Scopes and report requests
• Layouts and report requests
nVision
nVision is a good tool for reporting data from PeopleSoft in an
end user 'usable' format
27
Components
nVision
nVision Scopes
Report RequestsnVision LayoutsCFs & Trees
Ledger Structure
Ledger Data
End-User Reports
Report Books
Slide 18
28
nVision Components Slide 19
Component Definition
Chartfields Accounts, Project ID, Cost Centers (DeptID)
Trees Graphical representation of chartfields
Trees are used to present chartfield hierarchy via nodes, roll-ups and detail values
Ledger Structure &
Data
Store GL summary balances by accounting period at the chartfield level
Structure dictates how the ledger will store USD and Local currencies
Layouts Excel-based templates that contain the “rules” or “instructions” that tell PeopleSoft how to
retrieve and present ledger data
All report formatting is done within the layouts
Scopes Used to narrow or filter the amount of data that a report request retrieves
Scopes allow for a limited set of layouts to be used repeatedly without having to go into the
layout and hard-code criteria
Report Requests Contain the report generation criteria such as Report Name, Report Layout, Scope, Reporting
Date, Business Unit, Variables and Distribution
Report Books Allow for several report requests to be grouped together and run at the same time.
Report Books are run via the PeopleSoft Process Scheduler either on an ad-hoc or scheduled
basis
End-User Reports Excel worksheets that are distributed to Financial end-users
nVision 9.1 Highlights
30
nVision
Accepting tree effective-date at the time
of criteria definition
Supporting not-in criteria
Ability to define the types of report
requests
Restoring query prompts to web version
of nVision
Drilling down PS/nVision reports using
web services (nVisionDrill VSTO add-in)
Enhancements
31
Accepting Tree Effective-Date
The PeopleSoft nVision Filter Criteria
dialog in nVision client is enhanced
to include an As of Date field along
with the tree name
If this checkbox is selected, the As of
Date for Trees specified in layout
definition is overridden at the time of
Report Request
These changes will affect only matrix layouts, as only in matrix layouts
we have an option of selecting trees — Tabular layouts are not affected
32
nVision
Beside adding, modifying, and deleting
the nodes from the criteria, the
PS/nVision Layout designer now
includes a new feature called not-in,
which allows Layout designers to
include fields for building negative
criteria; for example, selecting nodes for
not-in clause part of the Query
Supporting Not-in Criteria
33
nVision
The Define Report Request
page of PS/nVision will include
a new sub page called Query
Prompts
Prompts, where you are able to
add all the required
parameters for queries in that
given report
These parameters are stored
as records in a new table
called Query Parameters; and
these records are identified by
the Query name, report ID, and
Business Unit as a primary key
Restoring Query Prompts to Web Version of nVision
34
nVision
nVision Designer recognizes the
concept of public and private report
requests
Currently, only the web-based version
honors the public or private report
requests security
This enhancement enables the users
of the Windows client of PS/nVision
to:
– Have the flexibility of making report
request either public or private
– Define whether to share the report
with other users
Ability to Define the Types of Report Requests
Select nVision, Share Report Request from the nVision menu…..
Select Users / Roles to share your report
nVision – Beyond the Basics
36
nVision Layout Comparison
Key differences between tabular layouts, matrix layouts, and Query.
Feature / Function Matrix Layout Tabular Layout Query
Data Sources Multiple queries and ledgers, labels
Single query Single query
Data Numbers in matrix, text in labels and variables
Text and numbers Text and numbers
Data delivery Matrix intersections of field criteria and queries (amounts) of label and field criteria (text)
Selected query result columns, one data row per spreadsheet row
All query result columns, one data row per spreadsheet row
Layouts One per workbook, but can have multiple tabular layouts in same workbook.
Multiple worksheets per workbook
None: produces one sheet in template workbook
Selection criteria Scope, Business Unit, Effective Dates, Query Ledger, TimeSpan, Field, Label, String
Scope, Query Query
PS nVision variables Yes No (but can put in matrix layout)
No
Scope Multiple instances from the layout workbook
Multiple instances from the layout workbook
None
nPlosion Rows and columns None None
Drilldown from instance Yes No No
TimeSpans Yes, with data keyed by year, period
No No
37
nVision Codes
nVision places code in Column A and Row 1. For more experienced users,
that code can be added or modified without using the layout definition box.
Code Meaning
%, The start of an nVision command
S TimeSpan
L Ledger
F Chartfield
T Select Tree Nodes
M Selected Summary Chartfield Nodes
V Select Detail Values
_ All Detail Values
R Reverse Sign
N Tree Node
X nPlode
C Copy Formula for nPlosion
Q Query
C Column (Aggregate field from Query)
38
Extend nVision Reporting to Non-Ledger Tables
Multiple Queries in 1 Layout
Filter Query Data By Using Scopes
Include Excel Features in Layout
– Formatting and Formulas
– Pivot Tables
– Macros
Schedule by Using Report Books
Use Selected Fields From Queries
Tabular Layout Benefits
The nVision GUI was designed to prompt against Financial Ledger based tables, but can be used to
pull data from any PeopleSoft table via a predefined query.
You must know your field names and type them in instead of
picking them from a prompt list.
39
The query must include at least
one aggregate (i.e. sum or count)
column.
You must include the aggregate
as part of the query.
The aggregate column much
have a heading for identification
(i.e. Sum Total Amount).
Generally speaking, queries used
in matrix reporting should not
contain much criteria, as the
matrix layout will limit the
information returned in the
results. This allows you to reuse
a shell query for many different
layouts.
Queries Used In Matrix Layout
40
Queries Used in Matrix Layout
The FISCAL_YEAR and ACCOUNTING_PERIOD
requirement can
be a problem for non-ledger PeopleSoft tables.
However, this requirement can
be fulfilled by joining an accounting date field to the calendar table and/or
by creating a table view.
Combination of query data and timespans
populate the report….
41
How to limit report instances when using multiple Scope fields?
PS/nVision normally produces a report instance for each combination of the
selected nodes or detail values for all specified
fields.
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.
Note: 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.
42
Create in out-of-view area
Put in all the nVision Variables you might want and label them
Name the cell for each Variable using Formulas > Create from Selection
Using Variables
43
In out of view area, set up 4 QTD columns
Use OFFSET formula in visible part of report to pick up correct Quarter
Example: =OFFSET(U10,0,QTR)
Working with Functions
44
PS/nVision-Defined Names
Sample of names that can be inserted into cells on report layouts
Name Description
NvsElapsedTime Indicates the elapsed time to produce this instance. To see this elapsed time in the instance, enter the formula =NvsElapsedTime in a cell and format the cell with a time format.
NvsEndTime Indicates the time this instance was saved. To see this time in the instance, enter the formula =NvsEndTime in a cell and format the cell with a date or date/time format.
NvsHiddenSheet Used on hidden layout sheets only to enable data retrieval on the sheet. By default, nVision will not process hidden layout sheets.
NvsInstanceHook Indicates the name or reference of the macro to be run on completion of the instance.
NvsTreeASD Stores the tree as of date from the report request.
NvsQueryName Stores the name of the query that provides the data for this tabular layout or instance.
45
Different ledgers cannot be combined in one field.
Different TimeSpans cannot be combined in one field.
nPloded rows or columns cannot be combined with non-nPloded rows or
columns.
If any field criteria are specified in an individual cell, all field criteria should be
specified in the cell, no field criteria will be inherited from the row, column, or
worksheet.
Take advantage of report variables and relative timespans to minimize layout
maintenance.
The XLS output is generated in the format of the Excel version on the Report
Server. As a rule, you need to make sure your end-users have compatible
versions of Excel to open the XLS output generated from the Report Server.
nVision Design Tips
46
Advanced PeopleSoft Security Audit (ID#: S315576 )
– Date: 20-SEP-10
– Time: 11:00 - 12:00
– Venue: Marriott Marquis
– Room: Golden Gate A
Dos and Don’ts of ERP Training and Use of Oracle User Productivity Kit
(ID#: S315580)
– Date: 21-SEP-10
– Time: 17:00 - 18:00
– Venue: Marriott Marquis
– Room: Golden Gate C3
Go Beyond the Basics with PeopleSoft Query and nVision (ID#:
S315581)
– Date: 23-SEP-10
– Time: 12:00 - 13:00
– Venue: Marriott Marquis
– Room: Golden Gate C2
SpearMC Sessions
47
Marcus Bode, Principal
David Pigman, Technical Specialist
Millie Babicz, Functional Specialist
Contact Information
www.SpearMC.com