GetCompBudgetSpentRemainAmts

Get Comp Budget/Spent/Remaining Amts For Increase Types

Minor Business Rule

Object Name: N0800172

Parent DLL: CHRM

Location: Client/Server

Language: NER

Functional Description

Purpose

The NER calculates the budget/spent/remaining of the increase types requested for a particular 
supervisor, report view, and model name.



Setup Notes and Prerequisites

Required inputs are the supervisor number, report view, use prorate system option, use prorate amount 

in spent calculation system option, reflect in budget if eligibility is overridden system option, 

model name, review type, and model owner.  A max of 10 increase type codes can be passed in.


The output fields are max of 10 sets of increase budget/spent/remaining amounts and a set of total 

budget/spent/remaining of all increase types.


Special Logic

Report view: '1' = Direct reports; '2' = All reports (Direct and Indirect Reports).  If the direct 

report, the employee/supervisor relationship level considered is only 1.


The budget amount is the accumulation of the budget amounts for the eligible increase type (ie the 

field. Actual eligibility (ACTEL) = '1').

If the system option, 'reflect in budget if eligibility is overridden', is '1', the budget amount is 

adjusted accordingly, if the eligibility is overridden.  Eligibility is overriden, when the actual 

eligibility (ACTEL) is not equal to the modified eligibility (MODEL).  If the modified eligibility is '1' 

(ie make eligible from ineligible), the budget amount is added to the accumulated budget amount.  If 

the modified eligiblity is '0' (ie make ineligible from eligible), the budget amount is deducted from 

the accumulated budget amount.   


The spent amount is the accumulation of either the increase amounts or the prorate amounts for the 

increase type.  If system options, 'Use prorate' and 'Use prorate amount in spent calculation' are both 

'1', the prorate amounts are accumulated as the increase spent amount.  Otherwise, the increase 

amounts are accumulated as the increase spent amount.


The remaining amount is the difference between the accumulated budget and the spend amount for the 

increase type.


The business view used in the NER is V08831WFJA, which joins tables, F08830WF, F08831WF, and F05840.  

Records in the business view, with model type = 'T', are not considered in the calculations, as there 

records belonging to employees who are terminated and are to be removed from the compensation review.



Technical Specification

For each non blank and non null increase type passed in  //up to a max of 10 increase types//, 
perform this logic:

• Get the budget/spent/remaining for the increase type, using the special logic above
• Accumulate the increase budget/spent/remaining to a total budget/spent/remaining amounts
• Pass the increase budget/spent/remaining for the increase type in the appropriate output fields.   
 

                                                                                                      

      

• Pass the total budget/spent/remaining amounts in the appropriate output fields. 


Data Structure

D0800172 - Get Comp Budget/Spent/Remaining Amts For Increase Types

Parameter NameData ItemData TypeReq/OptI/O/Both
mnSupervisorANPAMATH_NUMERICREQINPUT

The address book number of the supervisor.

cReportViewRVIEWcharREQINPUT

Flag to indicate Report View. UDC table (08/RV) is attached to this item.

cUseProrateEV01charREQINPUT

An option that specifies the type of processing for an event.

cUseProrateAmtInSpentEV01charREQINPUT

An option that specifies the type of processing for an event.

cReflectInBudgetEligOvrdEV01charREQINPUT

An option that specifies the type of processing for an event.

szIncreaseType1TRScharOPTINPUT

A code that indicates the reason for one of the following:   o  Changing an active employee's record   o  Terminating an employee   o  
Recommending a change in salary or rate This is a user defined code (06/T). If you are reactivating an employee, the code must be numeric. The 
code for new hires is the default reason code.

mnIncreaseType1BudgetMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType1SpentMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType1RemainMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

szIncreaseType2TRScharOPTINPUT

A code that indicates the reason for one of the following:   o  Changing an active employee's record   o  Terminating an employee   o  
Recommending a change in salary or rate This is a user defined code (06/T). If you are reactivating an employee, the code must be numeric. The 
code for new hires is the default reason code.

mnIncreaseType2SpentMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType2BudgetMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType2RemainMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

szIncreaseType3TRScharOPTINPUT

A code that indicates the reason for one of the following:   o  Changing an active employee's record   o  Terminating an employee   o  
Recommending a change in salary or rate This is a user defined code (06/T). If you are reactivating an employee, the code must be numeric. The 
code for new hires is the default reason code.

mnIncreaseType3SpentMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType3RemainMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType3BudgetMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

szIncreaseType4TRScharOPTINPUT

A code that indicates the reason for one of the following:   o  Changing an active employee's record   o  Terminating an employee   o  
Recommending a change in salary or rate This is a user defined code (06/T). If you are reactivating an employee, the code must be numeric. The 
code for new hires is the default reason code.

mnIncreaseType4BudgetMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType4SpentMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType4RemainMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

szIncreaseType5TRScharOPTINPUT

A code that indicates the reason for one of the following:   o  Changing an active employee's record   o  Terminating an employee   o  
Recommending a change in salary or rate This is a user defined code (06/T). If you are reactivating an employee, the code must be numeric. The 
code for new hires is the default reason code.

mnIncreaseType5SpentMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType5BudgetMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType5RemainMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

szIncreaseType6TRScharOPTINPUT

A code that indicates the reason for one of the following:   o  Changing an active employee's record   o  Terminating an employee   o  
Recommending a change in salary or rate This is a user defined code (06/T). If you are reactivating an employee, the code must be numeric. The 
code for new hires is the default reason code.

mnIncreaseType6RemainMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType6SpentMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType6BudgetMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

szIncreaseType7TRScharOPTINPUT

A code that indicates the reason for one of the following:   o  Changing an active employee's record   o  Terminating an employee   o  
Recommending a change in salary or rate This is a user defined code (06/T). If you are reactivating an employee, the code must be numeric. The 
code for new hires is the default reason code.

mnIncreaseType7RemainMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType7BudgetMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType7SpentMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

szIncreaseType8TRScharOPTINPUT

A code that indicates the reason for one of the following:   o  Changing an active employee's record   o  Terminating an employee   o  
Recommending a change in salary or rate This is a user defined code (06/T). If you are reactivating an employee, the code must be numeric. The 
code for new hires is the default reason code.

mnIncreaseType8SpentMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType8BudgetMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType8RemainMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

szIncreaseType9TRScharOPTINPUT

A code that indicates the reason for one of the following:   o  Changing an active employee's record   o  Terminating an employee   o  
Recommending a change in salary or rate This is a user defined code (06/T). If you are reactivating an employee, the code must be numeric. The 
code for new hires is the default reason code.

mnIncreaseType9BudgetMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType9SpentMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType9RemainMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

szIncreaseType10TRScharOPTINPUT

A code that indicates the reason for one of the following:   o  Changing an active employee's record   o  Terminating an employee   o  
Recommending a change in salary or rate This is a user defined code (06/T). If you are reactivating an employee, the code must be numeric. The 
code for new hires is the default reason code.

mnIncreaseType10BudgetMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType10SpentMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnIncreaseType10RemainMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnTotalRemainMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnTotalSpentMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

mnTotalBudgetMATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

szModelName9MNAMEcharREQINPUT

The model name. Valid values are:    MASTER is a model name to be used for the Final Submitted Compensation.    PUBLIC model is 
controlled by a UDC Table.  Must use entry from the UDC Table.    PRIVATE model could have any name the owner chooses.

cReviewTypeRWTYPcharREQINPUT

A code that indicates the last compensation review type.

mnModelOwnerMOWNRMATH_NUMERICREQINPUT

The address book number of the person creating the model.

Related Functions

None

Related Tables

None