Functional Description
This NER will check to see a new position can be added without exceeding the position's budget for salary, FTE, hours, or headcount. The output
parameters are error flags for each budgeted amount. A zero is returned if a budgeted amount is not exceeded; a one (1) is returned if a budgeted amount is
exceeded and HR Constants dictates a soft error; return a two (2) if a budgeted amount is exceeded and HR Constants dictates a hard error.
Setup Notes
All input parameters are required.
Technical Specifications
None.
Parameters
Data Item Data Structure DescriptionI/ORequiredTable Notes
HMCU HomeBusinessUnit IYes F060118
POS PositionId IYes F060118
AN8 EmployeeNumber IYes F060118
SAL Salary IYes F060118
FTE FullTimeEquivalent IYes F060118
IH HoursPerStandardYear IYes F060118
PTDT PayStopDate IYes F060118
EFTO EffectiveOnDate IYes
ERRC SalaryError O
ERRC FTEError O
ERRC HoursError O
ERRC HeadcountError O
Related Tables
Table PrefixTable Description
F08040JTHR Constants
F08101HPPosition Control Master
F08111HQPosition Budget Detail
Processing
Initialize process flag to 0.
Read the HR Constants record.
If any of the Position Budget Edit flags (PBF1, PBF2, PBF3, PBF4) from HR Constants are not equal to blank or null then
If process flag = 1 then
Call Fiscal Year Begin and End date server (N0800030) to get current fiscal year and fiscal year begin & end dates.
Convert fiscal year from N0800030 to a numeric value.
Read the Position Master (F08101) record for the current fiscal year.
If the EffectiveOnDate is less then position start date or greater then position stop date or record does not exist then
If process flag = 1 then
Initialize accumulator variables for salary, hours, FTE, and headcount.
Call Position Control Projected Amounts server (N0800033) to calculate projected amounts for position, home business unit, and fiscal
year. Return the projected amounts into the total accumulator fields so the extra step of adding the amounts to the accumulators is alleviated.
Read Position Budget Detail (F08111) record for position, home business unit, employee number, and employee action (blank).
If file i/o is successful then
A position detail record with active status was included in the projected totals
for the position, home business unit, and fiscal year. This record will be
modified by the Position Control Monitor (N0800045) and it's status will
change to 'A' for adjustment. Call the Projected Amounts server (N0800033)
for the active record and subtract the returned amounts out of the projected
totals. Call the Projected Amounts server (N0800033) again using the same
information except for end date (equal to one day before new effective day)
and status = 'A'. This is mimicing what will happen when the Position Control
Monitor is run. Add the amounts for the adjustment record to the total
projected amounts.
End if
Call the Projected Amounts server (N0800033) using the employee information
from the parameters. This will only return projected amounts based on the single
employee and the current annual salary, hours worked per year, and FTE.
Add the projected amounts to the total projected amounts.
Determine if the employee was included in the total headcount amount returned
by the initial call to the Projected Amounts server (N0800033). Loop through
Position Detail records (F08111) to see if they would have met the criteria used in
the Projected Amounts server (N0800033) to include the employee in the
headcount total. If no Position Detail records meet the criteria, then increment total
projected headcount by 1 (one).
If Position Budget Edit flag (PBF1) from HR Constants (F08040) is not blank or null then
If Position Budget Edit flag (PBF2) from HR Constants (F08040) is not blank or null then
If Position Budget Edit flag (PBF3) from HR Constants (F08040) is not blank or null then
If Position Budget Edit flag (PBF4) from HR Constants (F08040) is not blank or null then
DN0800050 - Position Budget Edit Server - Data Structure
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szHomeBusinessUnit | HMCU | char | REQ | INPUT |
The number of the business unit in which the employee generally resides. | ||||
szPositionID | POS | char | REQ | INPUT |
A code that you use for budgetary (position) control purposes. The position ID consists of:
o Position (position code and its description)
| ||||
mnEmployeeNumber | AN8 | MATH_NUMERIC | REQ | INPUT |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
mnSalary | SAL | MATH_NUMERIC | REQ | INPUT |
The amount that an employee is paid in one year, assuming that the employee is paid every pay period of the year.
For WorldSoftware:
For
| ||||
mnFullTimeEquivalents | FTE | MATH_NUMERIC | REQ | INPUT |
The full-time equivalent (FTE) amount. This figure is the portion of a full-time worker that an employee represents within the business unit.
| ||||
mnHoursPerStandardYear | IH | MATH_NUMERIC | REQ | INPUT |
The number of work hours in the year. When you do not set your payroll company constants to use the Pay Grade Step table as the
| ||||
jdPayStopDate | PTDT | JDEDATE | OPT | INPUT |
The date when an employee should no longer be included in a payroll cycle or the date when an employee stops participating in the
| ||||
jdEffectiveOnDate | EFTO | JDEDATE | OPT | INPUT |
A future date when all changes will take effect or the date when the changes went into effect. If you do not enter a date in this field, the system
| ||||
cSalaryError | ERRC | char | OPT | OUTPUT |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
cFTEError | ERRC | char | OPT | OUTPUT |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
cHoursError | ERRC | char | OPT | OUTPUT |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
cHeadcountError | ERRC | char | OPT | OUTPUT |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
szFiscalYear9 | FYOW | char | OPT | INPUT |
A four-digit number that identifies the fiscal year. You can enter a number in this field or leave the field blank to indicate the current fiscal
|
None |
None |