How To Plan a UserCalc#

1. Write a detailed description of what the user calculations needs to do.

For example: A UserCalc is required to calculate vacation pay for Groups A, B and D biweekly-paid employees. Vacation is calculated as 4% of the employee's eligible (vactionable) earnings for that regular pay.

2. Break the description into logical sections. The following questions can help you to do this:

Section 1
Who must be processed?
Employees with a GROUP - CODE of A, B and D in the lexicon list called Group_List.
Section 2
What information is necessary for the calculation?
The 4% vacation pay is defined as a Variable or User constant called VACN- RATE. Vacationable earnings are defined as an element called VACN-EARNS containing all qualified Earnings pay components.
Section 3
What is the calculation?
Multiply VACN-EARNS by VACN- RATE to be paid out in pay component 256 Vac Pay

3. Create all necessary ‘Components’ needed for the UserCalc

Pay ComponentIPPC 256Vac Pay
Pay ElementIPPEVACN-EARNS
User ConstantIMVRVACN- RATE Numeric 0.04
Lexicon ListIMLNGroup List
VariablesIMUCNot needed for this UserCalc
Global VariablesIMUCNot needed for this UserCalc

4. Code the UserCalc on the Maintain UserCalc Form (IMUC)

LineCMDOTOperand 1OPEROTOperand2OTOperand3If GotoElse GoTo
00010IFDBDGR.Group_CodeIN $LGroup List 0002099999
00020 LETPC0256MLT$CVACN-RATEECVACN-EARNS00030
00030 LETPC0256RDNPC0256N.0199999
99999 EXIT 99999

5. Compile and Publish the UserCalc


6. Link the UserCalcs to the Calling Program or Application

ProgramFormDetails
UPCALCIPPPDetermine the Pay Point type and sequence in which the UserCalc should be executed, indicate the task of 'UserCalc', and enter the UserCalc in the 'User Calc Code' field.
UFCALCIPPPDetermine the Pay Point type and sequence in which the UserCalc should be executed, indicate the task of 'UserCalc', and enter the UserCalc in the 'User Calc Code' field.
FLSAIDGRIf a UserCalc is needed to aid the FLSA calculation, indicate the UserCalc to be executed in the 'Work Rules' tab, within the 'Accounting' section, in the 'FLSA User Calc' field.

ApplicationFormDetails
AttendanceIALPDetermine the component at which the UserCalc should be executed and indicate the UserCalc
BenefitsIBPNDetermine the component at which the UserCalc should be executed and indicate the UserCalc


Notes #

Click to create a new notes page