SlideShare a Scribd company logo
1 of 51
Simplifying Advanced
Equation Engine
Development for
Student Financials
Session #33449
March 10, 2014
• Erik Siradas
• Assistant Director, Student Accounts and
University Receivables
• 7 Years PeopleSoft Experience, 13 Years in
Higher Education
• 1 Year Anniversary in UNC Student Accounts
TODAY!!!
• SF PAG Newbie
Your Presenter
University Of North Carolina
at Chapel Hill
• Established in 1789
• Large Research University
• 78 bachelor’s, 112 master’s, 68
doctorate and seven professional
degree programs
• Student enrollment: 29,278 (fall 2012)
• Faculty: 3,608 (fall 2012)
• Staff: 8,292 (fall 2012)
• www.unc.edu
University Of North Carolina
at Chapel Hill & Oracle
In Production:
 PS Campus Solutions 9.0, PS Interactive Hub 9.1, PeopleTools 8.52:
Academic Advisement Admissions & Recruiting
Campus Community Campus Self-Service
Financial Aid Student Financials
Student Records
 PS Interactive Hub 9.1, PeopleTools 8.52
 PS Enterprise Financials 9.0
eProcurement
Implementing:
 Financials 9.1
 HCM 9.1
 PeopleTools 8.53
Questions via Twitter
• You can tweet your
questions before or during
the presentation using this
session’s special hashtag.
• I’ll try to answer the
questions we’ve received
at the end of the
presentation.
#heug33449
• Review advanced configuration in Equation
Engine using real world business scenario
• Put logic of equations into plain English
• Review syntax and discuss meaning behind
logic
• Discuss approaches to equation development
• How to test your equation through online
tuition calculation
Agenda/Contents
#heug33449
Where do you work?
Student
Accounts
Office
IT Department
• Use of Equation Engine promotes the alignment of
IT and the business of the Student Accounting
Office
• Taking advantage of its more complex features
allows for a more streamlined approach to
development of tuition calculation rules
• Knowing configuration and data structure is equally
important
• Best approach to learning is to start simple and build
upon knowledge of tool. Keep it simple!
Overview
#heug33449
Streamline your equation development
Callable Equations
#heug33449
Equations as Functions
• Think of “functions” in PL/SQL
• Bits of code that can be reused to do same
task
• Enforces consistency on how data is
retrieved
• Streamlines development of equations
#heug33449
Global vs. Local Variables
• Local Variables
• Local variables may only be used within the equation in which
it is defined
• What ever you define as a variable in the active equation stays
in that equation
• You will get an “Uninitialized Variable” error if you try to use a
local variable outside the equation that you initialized it
• Global Variables
• Can be used across calling equations and procedures
• They may be initialized by the user in the equation, or may
passed from directly from tuition calculation
• There are predefined global variables utilized by these
processes that may be used in equation development
#heug33449
The “Called” Equation
#heug33449
Calling the Equation
• Initialize Global Variables (A_SELECT = N)
• Call section to invoke callable equations
#heug33449
Late Registration Fee
Set the Stage
#heug33449
Late Registration Fee
• Apply $20 Fee through Tuition Calculation for any student
that adds a class after the term start date.
• Term Fee attached to all applicable tuition groups
• Use Equation to:
• Retrieve term start date (TERM_TBL.TERM_BEGIN_DT)
• Retrieve enrollment add date (STDNT_ENRL.ENRL_ADD_DT)
• If enrollment add date > term start date, return (Y)es and apply the
charge
#heug33449
Cycle Through a Set of Data Within One Equation
Looping in Equations
#heug33449
Looping Purpose and Use
• Use to process through multiple rows of data within
a single call to an equation
• Permits a block of statements to be executed
repetitively
• May be used to treat equation engine as a
standalone program
• Consider the creation of a view to increase
performance and accuracy of equation
#heug33449
Structure of Looping in Equation
• Find First
• Loop (Begin)
• Statements to process data
• If-Else
• Callable Equations
• Callable SQL
• Find Next
• Terminating If-Else statement
• If True, Exit Loop
• End Loop
#heug33449
Find First in Looping
• The FIND FIRST keyword positions the equation
in the first row of the specified table for the given
key values and key relational operators
• If looping through a student transaction table,
initialize non-provided global variable to 0
• In Find First statement, use “Keyed Global (or
Local) Greater” condition to retrieve initial record
#heug33449
Call Equation / Initiate Variables
#heug33449
Find First
#heug33449
Begin the Loop
#heug33449
Test Data and FIND NEXT
• Moves to the next row within that previously specified
set of key values and key relational operators
• Positioned at the end of the loop statement, and before
the test for termination of the loop
• Use the local variable initialized in the FIND NEXT
condition to test for record found
• If record is found, then the loop is continued with next
record found in the set of key values
• If record is not found, then EXIT LOOP
#heug33449
FIND NEXT and EXIT LOOP
Message and Return
#heug33449
Review the Equation
#heug33449
#heug33449
Target Your Data in a Quick and Easy Way
Equation SQL Routines
#heug33449
Purpose and Use
• Can be used for updates, inserts, deletes, and
select retrievals (<10000 rows)
• May replace the use of “Find First” if users are more
comfortable using SQL to select data for processing
within equations
• Similar use as callable equations, in that a user may
call SQL to retrieve data
• Allows for extremely targeted data retrieval
#heug33449
Creating Equation SQL Routines
• Create the SQL statement
• You may want to use PS Query to build the
foundation statement (View SQL Tab)
• Test in SQL Plus or PL/SQL before pasting into
Equation Callable SQL configuration page
#heug33449
Creating Equation SQL Routines
#heug33449
Security Configuration
• Set Up SACR > Security > Equation Tree Security >
Callable SQL
• Add SQL Routine name and make sure it has the
appropriate authorization level
• “Read” is default, but change to appropriate level if
SQL does insert/updates/deletes.
#heug33449
Late Registration Fee Scenario
Calling an SQL Routine
#heug33449
Calling an SQL Routine
• Move global
variables to local
variable for
Callable SQL
• Callable SQL will
only recognize
local variables.
• Initialize Stem
Variable for return
value from SQL
#heug33449
Calling an SQL Routine
• Pass parameters to the SQL in the order that the
bind variables are presented in the SQL Statement
#heug33449
Test for Successful Return
• SQL_RC will have value of 1 if the SQL failed
• SQL_ROWS will have > 0 row(s) indicating that it
returned something.
#heug33449
Test for Late Registration
Review the Equation
#heug33449
Review the Equation
#heug33449
See What Data is Being Passed in the Equation
DEBUG!
Testing and
Troubleshooting
#heug33449
Add Messages to Troubleshoot
#heug33449
Online Tuition Calculation
• Select a student to test and navigate to Tuition
Calculation Page. Execute Tuition Calculation
Troubleshoot Error
• Error Message, NOOOOOO!!!!!!!
#heug33449
Troubleshoot Error
• Check your Global Variable names
• NCSFGETTRMST – Called Equation
• NCSFLTRGSQL – Calling Equation
Does Not
Match!!
#heug33449
Troubleshoot Error
• Change the Global Variable name to match the
variable name in the Called Equation
• Compile the Equation
#heug33449
Troubleshoot Error
• Rerun Tuition Calculation for test student
• Review Results
Questions?
#heug33449
• Erik Siradas
• E-mail: erik_siradas@unc.edu
• Linkedin: www.linkedin.com/in/eriksiradas/
• Twitter: @ErikSiradas
Contact Info
Presentations from previous meetings are also available
This presentation and all
Alliance 2014 presentations are
available for download from the
Conference site at
www.alliance-conference.com

More Related Content

Similar to Alliance2014 pp sf_equationengine_eriksiradas

Testing in the New World of Off-the-Shelf Software
Testing in the New World of Off-the-Shelf SoftwareTesting in the New World of Off-the-Shelf Software
Testing in the New World of Off-the-Shelf SoftwareJosiah Renaudin
 
Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Adam Mukharil Bachtiar
 
Using Competency Frameworks and Learning Plans
Using Competency Frameworks and Learning PlansUsing Competency Frameworks and Learning Plans
Using Competency Frameworks and Learning PlansKenneth Scott Huntley
 
Querying_with_T-SQL_-_01.pptx
Querying_with_T-SQL_-_01.pptxQuerying_with_T-SQL_-_01.pptx
Querying_with_T-SQL_-_01.pptxQuyVo27
 
Schoolnet ii ppt updated sept 19
Schoolnet ii ppt updated sept 19Schoolnet ii ppt updated sept 19
Schoolnet ii ppt updated sept 19ccelliott2001
 
Soap UI - Lesson3
Soap UI - Lesson3Soap UI - Lesson3
Soap UI - Lesson3Qualitest
 
PL/pgSQL - An Introduction on Using Imperative Programming in PostgreSQL
PL/pgSQL - An Introduction on Using Imperative Programming in PostgreSQLPL/pgSQL - An Introduction on Using Imperative Programming in PostgreSQL
PL/pgSQL - An Introduction on Using Imperative Programming in PostgreSQLReactive.IO
 
Types of operations in machine instruction
Types of operations in machine instructionTypes of operations in machine instruction
Types of operations in machine instructionsheiblu
 
Marty, You're Just Not Thinking Fourth Dimensionally
Marty, You're Just Not Thinking Fourth DimensionallyMarty, You're Just Not Thinking Fourth Dimensionally
Marty, You're Just Not Thinking Fourth DimensionallyTeamstudio
 
oracle plsql training | oracle online training | oracle plsql demo | oracle p...
oracle plsql training | oracle online training | oracle plsql demo | oracle p...oracle plsql training | oracle online training | oracle plsql demo | oracle p...
oracle plsql training | oracle online training | oracle plsql demo | oracle p...Nancy Thomas
 
Oracle 12c New Features for Developers
Oracle 12c New Features for DevelopersOracle 12c New Features for Developers
Oracle 12c New Features for DevelopersCompleteITProfessional
 
Ten query tuning techniques every SQL Server programmer should know
Ten query tuning techniques every SQL Server programmer should knowTen query tuning techniques every SQL Server programmer should know
Ten query tuning techniques every SQL Server programmer should knowKevin Kline
 
Primavera P6 Tips and Tricks
Primavera P6 Tips and TricksPrimavera P6 Tips and Tricks
Primavera P6 Tips and Tricksp6academy
 
Tips and Techniques for Improving the Performance of Validation Procedures in...
Tips and Techniques for Improving the Performance of Validation Procedures in...Tips and Techniques for Improving the Performance of Validation Procedures in...
Tips and Techniques for Improving the Performance of Validation Procedures in...Perficient, Inc.
 
Quickly Testing Legacy Code - ACCU York April 2019
Quickly Testing Legacy Code - ACCU York April 2019Quickly Testing Legacy Code - ACCU York April 2019
Quickly Testing Legacy Code - ACCU York April 2019Clare Macrae
 
How to improve your unit tests?
How to improve your unit tests?How to improve your unit tests?
How to improve your unit tests?Péter Módos
 

Similar to Alliance2014 pp sf_equationengine_eriksiradas (20)

Testing in the New World of Off-the-Shelf Software
Testing in the New World of Off-the-Shelf SoftwareTesting in the New World of Off-the-Shelf Software
Testing in the New World of Off-the-Shelf Software
 
Stored procedures
Stored proceduresStored procedures
Stored procedures
 
Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)
 
Using Competency Frameworks and Learning Plans
Using Competency Frameworks and Learning PlansUsing Competency Frameworks and Learning Plans
Using Competency Frameworks and Learning Plans
 
Querying_with_T-SQL_-_01.pptx
Querying_with_T-SQL_-_01.pptxQuerying_with_T-SQL_-_01.pptx
Querying_with_T-SQL_-_01.pptx
 
Pl sql
Pl sqlPl sql
Pl sql
 
Schoolnet ii ppt updated sept 19
Schoolnet ii ppt updated sept 19Schoolnet ii ppt updated sept 19
Schoolnet ii ppt updated sept 19
 
Soap UI - Lesson3
Soap UI - Lesson3Soap UI - Lesson3
Soap UI - Lesson3
 
PL/pgSQL - An Introduction on Using Imperative Programming in PostgreSQL
PL/pgSQL - An Introduction on Using Imperative Programming in PostgreSQLPL/pgSQL - An Introduction on Using Imperative Programming in PostgreSQL
PL/pgSQL - An Introduction on Using Imperative Programming in PostgreSQL
 
Types of operations in machine instruction
Types of operations in machine instructionTypes of operations in machine instruction
Types of operations in machine instruction
 
Marty, You're Just Not Thinking Fourth Dimensionally
Marty, You're Just Not Thinking Fourth DimensionallyMarty, You're Just Not Thinking Fourth Dimensionally
Marty, You're Just Not Thinking Fourth Dimensionally
 
Store programs
Store programsStore programs
Store programs
 
oracle plsql training | oracle online training | oracle plsql demo | oracle p...
oracle plsql training | oracle online training | oracle plsql demo | oracle p...oracle plsql training | oracle online training | oracle plsql demo | oracle p...
oracle plsql training | oracle online training | oracle plsql demo | oracle p...
 
Oracle 12c New Features for Developers
Oracle 12c New Features for DevelopersOracle 12c New Features for Developers
Oracle 12c New Features for Developers
 
Ten query tuning techniques every SQL Server programmer should know
Ten query tuning techniques every SQL Server programmer should knowTen query tuning techniques every SQL Server programmer should know
Ten query tuning techniques every SQL Server programmer should know
 
Primavera P6 Tips and Tricks
Primavera P6 Tips and TricksPrimavera P6 Tips and Tricks
Primavera P6 Tips and Tricks
 
Tips and Techniques for Improving the Performance of Validation Procedures in...
Tips and Techniques for Improving the Performance of Validation Procedures in...Tips and Techniques for Improving the Performance of Validation Procedures in...
Tips and Techniques for Improving the Performance of Validation Procedures in...
 
Quickly Testing Legacy Code - ACCU York April 2019
Quickly Testing Legacy Code - ACCU York April 2019Quickly Testing Legacy Code - ACCU York April 2019
Quickly Testing Legacy Code - ACCU York April 2019
 
[Quang Nguyen] Performance Test in Best Practices
[Quang Nguyen] Performance Test in Best Practices[Quang Nguyen] Performance Test in Best Practices
[Quang Nguyen] Performance Test in Best Practices
 
How to improve your unit tests?
How to improve your unit tests?How to improve your unit tests?
How to improve your unit tests?
 

Recently uploaded

Vip Female Escorts Noida 9711199171 Greater Noida Escorts Service
Vip Female Escorts Noida 9711199171 Greater Noida Escorts ServiceVip Female Escorts Noida 9711199171 Greater Noida Escorts Service
Vip Female Escorts Noida 9711199171 Greater Noida Escorts Serviceankitnayak356677
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdfRenandantas16
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Serviceritikaroy0888
 
Sales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for SuccessSales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for SuccessAggregage
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMANIlamathiKannappan
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Dave Litwiller
 
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...lizamodels9
 
Eni 2024 1Q Results - 24.04.24 business.
Eni 2024 1Q Results - 24.04.24 business.Eni 2024 1Q Results - 24.04.24 business.
Eni 2024 1Q Results - 24.04.24 business.Eni
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis UsageNeil Kimberley
 
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service DewasVip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewasmakika9823
 
VIP Call Girls Pune Kirti 8617697112 Independent Escort Service Pune
VIP Call Girls Pune Kirti 8617697112 Independent Escort Service PuneVIP Call Girls Pune Kirti 8617697112 Independent Escort Service Pune
VIP Call Girls Pune Kirti 8617697112 Independent Escort Service PuneCall girls in Ahmedabad High profile
 
/:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc...
/:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc.../:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc...
/:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc...lizamodels9
 
rishikeshgirls.in- Rishikesh call girl.pdf
rishikeshgirls.in- Rishikesh call girl.pdfrishikeshgirls.in- Rishikesh call girl.pdf
rishikeshgirls.in- Rishikesh call girl.pdfmuskan1121w
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableDipal Arora
 
Catalogue ONG NUOC PPR DE NHAT .pdf
Catalogue ONG NUOC PPR DE NHAT      .pdfCatalogue ONG NUOC PPR DE NHAT      .pdf
Catalogue ONG NUOC PPR DE NHAT .pdfOrient Homes
 
RE Capital's Visionary Leadership under Newman Leech
RE Capital's Visionary Leadership under Newman LeechRE Capital's Visionary Leadership under Newman Leech
RE Capital's Visionary Leadership under Newman LeechNewman George Leech
 

Recently uploaded (20)

Vip Female Escorts Noida 9711199171 Greater Noida Escorts Service
Vip Female Escorts Noida 9711199171 Greater Noida Escorts ServiceVip Female Escorts Noida 9711199171 Greater Noida Escorts Service
Vip Female Escorts Noida 9711199171 Greater Noida Escorts Service
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
Sales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for SuccessSales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for Success
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMAN
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
 
Eni 2024 1Q Results - 24.04.24 business.
Eni 2024 1Q Results - 24.04.24 business.Eni 2024 1Q Results - 24.04.24 business.
Eni 2024 1Q Results - 24.04.24 business.
 
Best Practices for Implementing an External Recruiting Partnership
Best Practices for Implementing an External Recruiting PartnershipBest Practices for Implementing an External Recruiting Partnership
Best Practices for Implementing an External Recruiting Partnership
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage
 
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service DewasVip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
 
VIP Call Girls Pune Kirti 8617697112 Independent Escort Service Pune
VIP Call Girls Pune Kirti 8617697112 Independent Escort Service PuneVIP Call Girls Pune Kirti 8617697112 Independent Escort Service Pune
VIP Call Girls Pune Kirti 8617697112 Independent Escort Service Pune
 
/:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc...
/:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc.../:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc...
/:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc...
 
rishikeshgirls.in- Rishikesh call girl.pdf
rishikeshgirls.in- Rishikesh call girl.pdfrishikeshgirls.in- Rishikesh call girl.pdf
rishikeshgirls.in- Rishikesh call girl.pdf
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
 
Catalogue ONG NUOC PPR DE NHAT .pdf
Catalogue ONG NUOC PPR DE NHAT      .pdfCatalogue ONG NUOC PPR DE NHAT      .pdf
Catalogue ONG NUOC PPR DE NHAT .pdf
 
RE Capital's Visionary Leadership under Newman Leech
RE Capital's Visionary Leadership under Newman LeechRE Capital's Visionary Leadership under Newman Leech
RE Capital's Visionary Leadership under Newman Leech
 

Alliance2014 pp sf_equationengine_eriksiradas

  • 1. Simplifying Advanced Equation Engine Development for Student Financials Session #33449 March 10, 2014
  • 2. • Erik Siradas • Assistant Director, Student Accounts and University Receivables • 7 Years PeopleSoft Experience, 13 Years in Higher Education • 1 Year Anniversary in UNC Student Accounts TODAY!!! • SF PAG Newbie Your Presenter
  • 3. University Of North Carolina at Chapel Hill • Established in 1789 • Large Research University • 78 bachelor’s, 112 master’s, 68 doctorate and seven professional degree programs • Student enrollment: 29,278 (fall 2012) • Faculty: 3,608 (fall 2012) • Staff: 8,292 (fall 2012) • www.unc.edu
  • 4. University Of North Carolina at Chapel Hill & Oracle In Production:  PS Campus Solutions 9.0, PS Interactive Hub 9.1, PeopleTools 8.52: Academic Advisement Admissions & Recruiting Campus Community Campus Self-Service Financial Aid Student Financials Student Records  PS Interactive Hub 9.1, PeopleTools 8.52  PS Enterprise Financials 9.0 eProcurement Implementing:  Financials 9.1  HCM 9.1  PeopleTools 8.53
  • 5. Questions via Twitter • You can tweet your questions before or during the presentation using this session’s special hashtag. • I’ll try to answer the questions we’ve received at the end of the presentation. #heug33449
  • 6. • Review advanced configuration in Equation Engine using real world business scenario • Put logic of equations into plain English • Review syntax and discuss meaning behind logic • Discuss approaches to equation development • How to test your equation through online tuition calculation Agenda/Contents #heug33449
  • 7. Where do you work? Student Accounts Office IT Department
  • 8. • Use of Equation Engine promotes the alignment of IT and the business of the Student Accounting Office • Taking advantage of its more complex features allows for a more streamlined approach to development of tuition calculation rules • Knowing configuration and data structure is equally important • Best approach to learning is to start simple and build upon knowledge of tool. Keep it simple! Overview #heug33449
  • 9. Streamline your equation development Callable Equations #heug33449
  • 10. Equations as Functions • Think of “functions” in PL/SQL • Bits of code that can be reused to do same task • Enforces consistency on how data is retrieved • Streamlines development of equations #heug33449
  • 11. Global vs. Local Variables • Local Variables • Local variables may only be used within the equation in which it is defined • What ever you define as a variable in the active equation stays in that equation • You will get an “Uninitialized Variable” error if you try to use a local variable outside the equation that you initialized it • Global Variables • Can be used across calling equations and procedures • They may be initialized by the user in the equation, or may passed from directly from tuition calculation • There are predefined global variables utilized by these processes that may be used in equation development #heug33449
  • 13. Calling the Equation • Initialize Global Variables (A_SELECT = N) • Call section to invoke callable equations #heug33449
  • 14. Late Registration Fee Set the Stage #heug33449
  • 15. Late Registration Fee • Apply $20 Fee through Tuition Calculation for any student that adds a class after the term start date. • Term Fee attached to all applicable tuition groups • Use Equation to: • Retrieve term start date (TERM_TBL.TERM_BEGIN_DT) • Retrieve enrollment add date (STDNT_ENRL.ENRL_ADD_DT) • If enrollment add date > term start date, return (Y)es and apply the charge #heug33449
  • 16. Cycle Through a Set of Data Within One Equation Looping in Equations #heug33449
  • 17. Looping Purpose and Use • Use to process through multiple rows of data within a single call to an equation • Permits a block of statements to be executed repetitively • May be used to treat equation engine as a standalone program • Consider the creation of a view to increase performance and accuracy of equation #heug33449
  • 18. Structure of Looping in Equation • Find First • Loop (Begin) • Statements to process data • If-Else • Callable Equations • Callable SQL • Find Next • Terminating If-Else statement • If True, Exit Loop • End Loop #heug33449
  • 19. Find First in Looping • The FIND FIRST keyword positions the equation in the first row of the specified table for the given key values and key relational operators • If looping through a student transaction table, initialize non-provided global variable to 0 • In Find First statement, use “Keyed Global (or Local) Greater” condition to retrieve initial record #heug33449
  • 20. Call Equation / Initiate Variables #heug33449
  • 23. Test Data and FIND NEXT • Moves to the next row within that previously specified set of key values and key relational operators • Positioned at the end of the loop statement, and before the test for termination of the loop • Use the local variable initialized in the FIND NEXT condition to test for record found • If record is found, then the loop is continued with next record found in the set of key values • If record is not found, then EXIT LOOP #heug33449
  • 24. FIND NEXT and EXIT LOOP
  • 27.
  • 29. Target Your Data in a Quick and Easy Way Equation SQL Routines #heug33449
  • 30. Purpose and Use • Can be used for updates, inserts, deletes, and select retrievals (<10000 rows) • May replace the use of “Find First” if users are more comfortable using SQL to select data for processing within equations • Similar use as callable equations, in that a user may call SQL to retrieve data • Allows for extremely targeted data retrieval #heug33449
  • 31. Creating Equation SQL Routines • Create the SQL statement • You may want to use PS Query to build the foundation statement (View SQL Tab) • Test in SQL Plus or PL/SQL before pasting into Equation Callable SQL configuration page #heug33449
  • 32. Creating Equation SQL Routines #heug33449
  • 33. Security Configuration • Set Up SACR > Security > Equation Tree Security > Callable SQL • Add SQL Routine name and make sure it has the appropriate authorization level • “Read” is default, but change to appropriate level if SQL does insert/updates/deletes. #heug33449
  • 34. Late Registration Fee Scenario Calling an SQL Routine #heug33449
  • 35. Calling an SQL Routine • Move global variables to local variable for Callable SQL • Callable SQL will only recognize local variables. • Initialize Stem Variable for return value from SQL #heug33449
  • 36. Calling an SQL Routine • Pass parameters to the SQL in the order that the bind variables are presented in the SQL Statement #heug33449
  • 37. Test for Successful Return • SQL_RC will have value of 1 if the SQL failed • SQL_ROWS will have > 0 row(s) indicating that it returned something. #heug33449
  • 38. Test for Late Registration
  • 42. See What Data is Being Passed in the Equation DEBUG! Testing and Troubleshooting #heug33449
  • 43. Add Messages to Troubleshoot #heug33449
  • 44. Online Tuition Calculation • Select a student to test and navigate to Tuition Calculation Page. Execute Tuition Calculation
  • 45. Troubleshoot Error • Error Message, NOOOOOO!!!!!!! #heug33449
  • 46. Troubleshoot Error • Check your Global Variable names • NCSFGETTRMST – Called Equation • NCSFLTRGSQL – Calling Equation Does Not Match!! #heug33449
  • 47. Troubleshoot Error • Change the Global Variable name to match the variable name in the Called Equation • Compile the Equation #heug33449
  • 48. Troubleshoot Error • Rerun Tuition Calculation for test student • Review Results
  • 50. • Erik Siradas • E-mail: erik_siradas@unc.edu • Linkedin: www.linkedin.com/in/eriksiradas/ • Twitter: @ErikSiradas Contact Info
  • 51. Presentations from previous meetings are also available This presentation and all Alliance 2014 presentations are available for download from the Conference site at www.alliance-conference.com