Functional Description
This NER returns the percentage of the fiscal year a position was active. All error conditions are returned in cErrorCode; no hard errors are generated
SetUp Notes
Technical Specifications
Parameters
Data Item Data Structure Description I/O Required TableNotes
HMCU szHomeBusinessUnit IEither HMCU or CO is required
CO szCompany IEither HMCU or CO is required
FY mnFiscalYear I
BDOWLDjdFromDate I
EDOWLDjdThruDate I
MN09A mnPercentIn O
ERRC cErrorCode O*see below
cErrorCode values:
0 = no errors; program processed successfully
1 = both Home Business Unit and Company are blank at least one is required
2 = fiscal year date pattern unavailable error sent back from N0800030
Related Tables
Table Table Description
Processing
ErrorCode = 0
if FromDate and ThruDate both = zero
PercentIn = 1
end if
if FromDate > ThruDate and ThruDate <> zero
PecentIn = 0
end if
if PercentIn = blank
if error returned back from N0800030
ErrorCode = 2
end if
PercentIn = 1
else
if FromDate < FYFromDate
FromDate = FYFromDate
end if
if ThruDate > FYThruDate or ThruDate = blank
ThruDate = FYThruDate
end if
convert FromDate and ThruDate to julian dates
convert fiscal year begin dates to julian dates
if fiscal year is a leap year
set leap year flag to true
end
DaysActive = JulianThruDate JulianFromDate
if leap year flag is true
PercentIn = DaysActive / 366
else
PercentIn = DaysActive / 365
end if
end if
end if
end if
^
DN0800032 - Fiscal Year Percentage In
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szHomeBusinessUnit | HMCU | char | NONE | NONE |
The number of the business unit in which the employee generally resides. | ||||
szCompany | CO | char | NONE | NONE |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
szFiscalYear | FYOW | char | NONE | NONE |
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
| ||||
jdFromDate | BDOWLD | JDEDATE | NONE | NONE |
The beginning date of the range in a search. If you do not specify a beginning date, the system uses the current date. | ||||
jdThruDate | EDOWLD | JDEDATE | NONE | NONE |
The ending date for the period that you want to review. If you leave this field blank, the system uses the ending date of the current period
| ||||
mnPercentIn9 | MN09A | MATH_NUMERIC | NONE | NONE |
Generic Math Numeric - size 9 | ||||
cErrorCode | ERRC | char | NONE | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
jdFiscalYearBegin | BDOWLD | JDEDATE | NONE | NONE |
The beginning date of the range in a search. If you do not specify a beginning date, the system uses the current date. | ||||
jdFiscalYearEnd | EDOWLD | JDEDATE | NONE | NONE |
The ending date for the period that you want to review. If you leave this field blank, the system uses the ending date of the current period
|
None |
None |