Functional Description
Purpose
The purpose of this function is to determine the Period Number , Fiscal Year, and Century using the
Fiscal Date tables (F0008 and F0008B).
Technical Specifications
Processing
1.Initialize the Error Code (ds-ERRC) to '0'.
2.If Fetch Company Constants (ds-EV01) is '1', or the Date Pattern (ds-DTPN) is blank, or the
Fiscal Year Begin Date (ds-DFYJ) is null,
Century (ds-CTRY).
b.Fetch the Company Constant row (F0010) based upon the input Company (ds-CO). If a row is not
found, fetch the record based on the default Company (Company = '00000'). Only the Date Pattern
(CCDTPN) and Fiscal Year Begin Date (CCDFYJ) are needed for processing.
c.Assign the Fetch Company Constants (ds-EV01) as '0' to indicate that the constants for the
specified company have already been retrieved.
Fiscal Date Pattern (CDDTPN = ds-DTPN), Fiscal Year Begin Date (CDDFYJ = ds-DGJ), and Fiscal Quarter
(CDFQ = blank).
4.Perform a fetch on the Fiscal Patterns Date table (F0008B) for the given keys.
5.If a record is not found or if the G/L Date (ds-DGL) falls outside the fiscal year date range,
perform a fetch on the table for the given Date Pattern, where the Fiscal Year Begin Date falls within
the fiscal year date range. If a record is not found, assign the Continue Processing flag as False,
and the Error Code (ds-ERRC) as '1'.
6.If the Continue Processing flag is set to True,
54 element date array.
b.Loop through the Period End Date array to determine in which Period Number the G/L Date falls.
c.Perform a fetch on the Date Fiscal Patterns table (F0008) for the Date Pattern and Fiscal Year
Begin Date. Use the End of Period Date for period one to determine the Fiscal Year (ds-FY) and
Century (ds-CTRY) to return.
DX0903B - Get Fiscal Year Period Number
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
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
| ||||
jdGLDate | DGJ | JDEDATE | NONE | NONE |
A date that identifies the financial period to which the transaction will be posted. You define financial periods for a date pattern code that you
| ||||
mnGLPeriodNumber | PN | MATH_NUMERIC | NONE | NONE |
A number indicating the current accounting period. This number, used in conjunction with the Company Constants table (F0010) and the
| ||||
mnFiscalYear | FY | MATH_NUMERIC | NONE | NONE |
A number that identifies the fiscal year. Generally, you can either enter a number in this field or leave it blank to indicate the current fiscal
| ||||
mnCentury | CTRY | MATH_NUMERIC | NONE | NONE |
The calendar century associated with the year. Enter is the first two digits of
the year. For example, 19 indicates any year beginning with 19
| ||||
cErrorCode | ERRC | char | NONE | NONE |
Returns 0 for success, 1 for error.
| ||||
cFetchCompanyConstants | EV01 | char | NONE | NONE |
1 = Fetch Company Constants from F0010.
| ||||
cF0010FiscalDatePattern | DTPN | char | NONE | NONE |
Required if no fetch on the Company Constants.
| ||||
jdF0010FiscalYearBeginDate | DFYJ | JDEDATE | NONE | NONE |
Required if no fetch on the company constants.
|
None |
F0008 Date Fiscal Patterns | ||||
F0008B Date Fiscal Patterns - 52 Period Accounting | ||||
F0010 Company Constants |