RetrieveCreditCollectionFiscal

Retrieve Credit Collection Fiscal Period

Minor Business Rule

Object Name: B03B0072

Parent DLL: CFIN

Location: Client/Server

Language: C

B03B0072
Retrieve Credit Collection Fiscal Period


Functional Description


Purpose

This purpose of this business function is to return the Fiscal Year, Date For G/L, Period Number, 

Ending Date, and Period Days based on the company number.


Setup Notes and Prerequisites


Special Logic


Technical Specifications

Parameters

ItemDescriptionI/OReq?Notes

COszCompanyIYes

FYmnFiscalYear1O

DGJjdDateForGLAndVoucherJuliaIYes

PNmnPeriodNoGeneralLedgeO

ENDjdDateEndingO

DAYPmnPeriodDaysO

CTRYmnCenturyO

CURYcCurrentYearFlagO


Related Tables

F03B08Credit/Collection Date Pattern


Related Business Functions


Processing

Call I_B03B0072_ProcessFiscalYear for company number passed

If ER_ERROR returned

Call I_B03B0072_ProcessFiscalYear for company '00000'

Return


Subroutine  I_B03B0072_ProcessFiscalYear

Set Selection Parameters

If not equal JDEDB_PASSED

return ER_ERROR

JDB_SelectKeyed

If equal JDEDB_PASSED

JDB_FETCH

If JDEDB_PASSED 

Copy the Fetched fields to the output fields

else

return ER_ERROR

else

return ER_ERROR

return ER_SUCCESS



^

Data Structure

D03B0072 - Retrieve Credit Collection Fiscal Period

Parameter NameData ItemData TypeReq/OptI/O/Both
jdDateForGLAndVoucherJuliaDGJJDEDATENONENONE

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 
assign to the company record. The system compares the date that you enter on the transaction to the fiscal date pattern assigned to the 
company to retrieve the appropriate fiscal period number, as well as to perform date validations.

szCompanyCOcharNONENONE

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

mnFiscalYear1FYMATH_NUMERICNONENONE

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 
year (as defined on the Company Setup form). Specify the year at the end of the first period rather than the year at the end of the fiscal period. 
For example, a fiscal year begins October 1, 1998 and ends September 30, 1999. The end of the first period is October 31, 1998. Specify the 
year 98 rather than 99.

mnPeriodNoGeneralLedgePNMATH_NUMERICNONENONE

A number indicating the current accounting period.  This number, used in conjunction with the Company Constants table (F0010) and the 
General Constants table (F0009), allows the user to define up to 14 accounting periods. See General Ledger Date.  The current period number 
is used to determine posted before and posted after cut off warning messages.  It is also used as the default accounting period in the 
preparation of financial reports.

jdDateEndingENDJDEDATENONENONE

The date when an asset was removed or returned from a particular location.

mnPeriodDaysDAYPMATH_NUMERICNONENONE

The number of days within an accounting period.

mnCenturyCTRYMATH_NUMERICNONENONE

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 
(1998, 1999), 20 indicates any year beginning with 20 (2000, 2001), and so on.

cCurrentYearFlagCURYcharNONENONE

An option that you use to specify a fiscal year as the current year.

Related Functions

None

Related Tables

F03B08 Credit/Collection Date Pattern