fast formula boss

66
BOSS 2002 Fall OAUG BOSS Copyright 2002 More Fast Formula Examples For Advanced Benefits, PTO Accruals and Payroll Calculations Bill Stratton BOSS Corporation [email protected]

Upload: gyeresiz

Post on 16-Nov-2014

433 views

Category:

Documents


10 download

DESCRIPTION

Fast Formula development in Oracle Applications. Examples by BOSS.

TRANSCRIPT

Page 1: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

More Fast Formula Examples For Advanced Benefits, PTO Accruals and

Payroll Calculations

Bill StrattonBOSS Corporation

[email protected]

Page 2: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Agenda

• Introduction

• Crash Course of Fast Formulas

– Formula Types

– Database Items

– Syntax

– Indirect Results

– Payroll Tables

Page 3: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Agenda (continued)

• Real Live Scenarios• Payroll Calculations

– Student Federal Work Study Solution • PTO Accrual

– Accrual Rate for New Hires• Advanced Benefits

– Coverage Date Rule• Fast Formula Debugging Techniques• Q&A

Page 4: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Who is BOSS?

• About BOSS Corporation– BOSS is an acronym that stands for “Better Organization

Service Solutions”

– Founded in 1995 by Stephen Adams and Jim Crum

– Both Stephen and Jim were responsible for Oracle consulting

in the Southeast US for Oracle Corporation before forming

BOSS

– BOSS service lines are sharply focused on Oracle Application

implementations; Financials, HR/Payroll and Manufacturing,

technology consulting, and database administration services

– Headquarters are located in Atlanta, with additional offices in

Dallas, Pittsburgh, Raleigh, and Redwood Shores

Page 5: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

• About BOSS Corporation

• Author of two Oracle Application books

• “Special Edition: Using Oracle Applications”

• “Special Edition: Using Oracle 11i”

– Major sponsor at OAUG conferences; National, European, and many regional and local groups

– Eleven presentations, papers and panel involvement Fall 2001 OAUG in San Diego

– Fourteen presentations, papers and panel involvement at Spring 2002 OAUG in San Diego

– Ten presentations, papers and panel involvement at Fall 2002 OAUG in San Diego

Page 6: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Crash Course in Fast Formula

• Formula Types

– Skip Rules

– Validation

– Payroll Calculations

– Benefit Rules

– PTO Accrual Calculations

Page 7: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 8: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Crash Course in Fast Formula

• Database Items

– Variable Names for Complex Joins

– Flex Field Segments

– Balances (with Dimensions)

– Global Values

– Element Entry Input Values

Page 9: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Crash Course in Fast Formula

• Database Items Examples– ASG_POSITION

– POS_KF_FUNCTION_CODE

– SCL_ASG_US_TIMECARD_REQUIRED

– GROSS_EARNINGS_ASG_GRE_MONTH

– LONG_TERM_DISABILITY_AMOUNT_ENTRY_VALUE

Page 10: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Crash Course in Fast Formula

• Syntax– Alias Section– Default Section– Inputs Section– Calculation Section

–Assignment Statements– IF/THEN/ELSE Statements–No GOTO or Case Statements

– Return Section

Page 11: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 12: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 13: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 14: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 15: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 16: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Crash Course in Fast Formula

• Indirect Results

– Pass Direct Result to Pay Value

– Pass Other Calculations to Other Elements

– Make sure other elements have higher priority

– Use Formula Results screen to pass RETURN values to elements

Page 17: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 18: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Crash Course in Fast Formula

• Payroll Tables

– Defined in the Application

– Use Table Structure to define table

– Use Table Value to load values

– Date-tracked and can be updated by Function personnel

– Great place to store rates by database item (Location, People Group)

Page 19: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Real Live Scenarios

• Student Federal Work Study

– Government supplies funds for student employment

– Part of Financial Aid Package

– Student System Maintains Award and balances

– Payroll needs to capture “category”

Page 20: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Payroll Calculation Scenario

• Step 1, Create EIT

– Use Assignment EIT

– Tracks Task, Rate and Costing

– Tracks FWS Flag

–Eligible

– Ineligible

–Excludable

–Summer

Page 21: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert EIT screen prints here

Page 22: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Payroll Calculation Scenario

• Step 2, Fast Formula Function

– Returns Rate and FWS Flag

– PL/SQL Package

– Registered with Oracle Apps

– Can be called from Fast Formula

Page 23: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert screen print of registered function

Page 24: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Payroll Calculation Scenario

• Step 3, Create Information Element

– Used to capture dollars by FWS Flag

– Will be populated by Indirect Results

Page 25: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert screen prints of an information element

Page 26: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Payroll Calculation Scenario

• Step 4, Update Fast Formula

– Use function to retrieve rate and FWS Flag

– Determine which category to place dollars based on FWS Flag

Page 27: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert screen prints of Fast Formula logic

Page 28: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 29: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 30: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Payroll Calculation Scenario

• Step 5, Setup Formula Results

– Send each category to proper Input Value on Information Element

– After payroll is complete, run interface to send records to Student System

Page 31: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 32: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert screen print of formula results and demonstrate run results

Page 33: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

PTO Accrual

• Recent enhancements added Fast Formula functionality

• Three types

– Calculation

– Carryover

– Ineligibility

Page 34: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

PTO Accrual Templates

• PTO Payroll Balance Calculation

– Same as 10.7

– One year term, starts on Jan 1

– Frequency based on payroll period

– Amounts defined on screens

– Carryover effective December 31

– Can now incorporate balances

Page 35: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

PTO Accrual Templates

• PTO Simple Balance Multiplier

– Accrual term one year - June 1

– Accrual frequency one month

– Accrual amounts in formula

– Carryover effective May 31

Page 36: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

PTO Accrual Templates

• PTO ROLLING ACCRUAL

– One year term, no fixed start date

– Accrual frequency one month

– Accrual amounts in formula

– No carryover (use it or lose it)

Page 37: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

PTO Accrual Scenario

• Will use PTO Payroll Balance Calculation

• Will modify sub formula PTO Payroll Period Accrual

• Will create a table to store rates for first year hires by month

Page 38: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•Insert screen prints of table creation

Page 39: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 40: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 41: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 42: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 43: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

PTO Accrual Scenario

• Copy PTO_PAYROLL_BALANCE_CALCULATION to OAUG_PAYROLL_BALANCE_CALCULATION

• Copy PTO_PAYROLL_PERIOD_ACCRUAL to OAUG_PAYROLL_PERIOD_ACCRUAL

• Modify Formulas

• Define Plan

Page 44: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 45: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 46: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 47: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 48: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Advanced Benefits - Eligibility

• OAB/OSB includes many opportunities to use FF

• Almost every definition screen includes a “Rule”

• Each screen uses a different Fast Formula Type

• Check FF guide for requirements

Page 49: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Advanced Benefits - Eligibility

• In our scenario, Coverage starts on the first of the month following 30 days of service

• Exceptions for January and February

Page 50: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert screen print of coverage definition screen

Page 51: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert screen prints of fast formulas

Page 52: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 53: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 54: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 55: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Page 56: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Fast Formula Debugging Tools

• Use MESG variable to include needed values

• Place MESG variable in RETURN statement

• Modify Formula Results

• Message will be included in Payroll Message Report

• All values in MESG must be character

Page 57: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert screen print of Fast Formula with MESG and Return statement

Page 58: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert screen print of Formula Results

Page 59: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert screen print of messages

Page 60: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Fast Formula Debugging Tools

• MESG does not work for OAB/OSB

• Create FF Function to post message to custom table

• Can call multiple times

Page 61: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Fast Formula Debugging Tools

• Step 1, Create custom table

• Step 2, Create PL/SQL procedure

• Step 3, Register Function

• Step 4, Use Function in FF

Page 62: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Create function FF_POST_MESSAGE (FormulaName IN Varchar2,FormulaMessage IN Varchar2) Return Varchar2 ISBeginInsert into FF_POST_MESSAGE values

FormulaName,FormulaMessage,SYSDATE);Commit;Return('S');

ExceptionWhen Others thenReturn('F');

End;

Page 63: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert screen print of register function

Page 64: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert screen print of Fast Formula with function

Page 65: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

•insert screen print of SQL query of custom table

Page 66: Fast Formula Boss

BOSS 2002 Fall OAUG BOSS Copyright 2002

Fast Formula Primer

Had Enough????

Q&ABill Stratton

BOSS Corporation

[email protected]