F0008GetDatePatternRecord

F0008 Get Date Pattern Record

Minor Business Rule

Object Name: B0000167

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

Functional Description

Purpose

Based on a  date and date pattern passed in, return the century, fiscal year,  period number, and 
period end date.  Also return the begin fiscal year, 14 period end dates, normal number of periods and 

prior period end date.  The date must fall within one of the Date Pattern records set up in F0008.


You can also get the period end date for a particular period number, fiscal year and century by 

leaving the input date blank and passing a date pattern, period number, fiscal year and century.


Setup Notes and Prerequisites


Special Logic

Normal Number of Periods will be determined to be the last period with a date different than the 

preceding period.  This can be different from the Normal Number of Periods as set in the Company Constant 

file (F0010) when in a short year.



Technical Specification





Data Structure

D0000167 - F0008 Get Date Pattern Record

Parameter NameData ItemData TypeReq/OptI/O/Both
cFiscalDatePatternDTPNcharNONENONE

A code that identifies date patterns. You can use one of 15 codes. You must set up special codes (letters A through N) for 4-4-5, 13-period 
accounting, or any other date pattern unique to your environment. An R, the default, identifies a regular calendar pattern.

jdDateForGLDGJJDEDATENONENONE

Special Input Expected
If this field is left blank, then you must pass a value in century, fiscal year, and period number.

^

mnCenturyCTRYMATH_NUMERICNONENONE

Special Input Expected
If this field is left blank, then you must pass a date.


^

mnFiscalYearFYMATH_NUMERICNONENONE

Special Input Expected
If this field is left blank, then you must pass a date.



^

mnPeriodNoPNMATH_NUMERICNONENONE

Special Input Expected
If this field is left blank, then you must pass a date.



^

jdDate01DATE01JDEDATENONENONE

Special Output Returned
This is the period end date for the date or period passed in.



^

szNumberofPeriodsOverrideNNPOcharNONENONE

Special Output Returned
This is the actual number of periods in this fiscal year.  This number can be different than the 

Normal Number of Periods when in a short year.



^

jdDateFiscalYearBeginsDFYJJDEDATENONENONE

The first day of the fiscal year.

jdDateEndofPeriod01D01JJDEDATENONENONE

The month end date in 12-period (monthly) accounting. The period end date in 13-period, or 4-4-5 period, or 52-period accounting.

jdDateEndofPeriod02D02JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdDateEndofPeriod03D03JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdDateEndofPeriod04D04JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdDateEndofPeriod05D05JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdDateEndofPeriod06D06JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdDateEndofPeriod07D07JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdDateEndofPeriod08D08JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdDateEndofPeriod09D09JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdDateEndofPeriod10D10JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdDateEndofPeriod11D11JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdDateEndofPeriod12D12JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdDateEndofPeriod13D13JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdDateEndofPeriod14D14JJDEDATENONENONE

The month end date in 12-period (monthly) accounting.  The period end date in 13-period, or 4-4-5 period accounting.

jdPreviousPeriodEndDateDATE02JDEDATENONENONE

Special Output Returned
This is the prior period end date of the date or period passed in.



^

Related Functions

None

Related Tables

F0008 Date Fiscal Patterns