F1207CalculateEstimatedOccurence

F1207 Calculate Estimated Occurrences

Minor Business Rule

Object Name: B1300060

Parent DLL: CMFG

Location: Client/Server

Language: C

Functional Description

Purpose

The purpose of F1207 Calculate Estimated Occurrences is to calculate and return the number of 
Estimated Occurrences of a service type for an equipment number.  Additionally, the program will return the 

number of Actual Occurrences from the beginning of the calendar year.


Setup Notes and Prerequisites


Special Logic

The program bases the calculation on the following processing option for the Equipment PM Schedule:

Enter a '1' to calculate the estimated occurrence based on one year of history.  Enter a '2' to 

calculate the estimated occurrence based on two years of history.  Enter a '3' to calculate the estimated 

occurrence based on history from inception to date.  Leave blank (Default) to not calculate the 

occurrence.


An occurrence is a completed service type with  Status 99 for a given Equipment Number .



Technical Specification


• If EV01 Calculate Occurrences is = 1 Fetch F1207 based on Asset Number (NUMB), Service Type (SRVT) 
and Completed Date (CPLD) calculate the number of service type occurrences from system date less 365 

days.  Return the number of estimated occurrences and actual occurrences from the beginning of the 

calendar year.

• If EV01 Calculate Occurrences is = 2 Fetch F1207 based on Asset Number (NUMB), Service Type (SRVT) 
and Completed Date (CPLD) calculate the number of service type occurrences from system date less 730 

days, dividing the result by 2.  Return the number of estimated occurrences and actual occurrences from 

the beginning of the calendar year.

• If EV01 Calculate Occurrences is = 3 Fetch F1207 based on Asset Number (NUMB), Service Type (SRVT) 
and Completed Date (CPLD) calculate the number of service type occurrences from system date to first 

completed occurrence, dividing the result by the difference between system date and first completed 

occurrence.  Return the number of estimated occurrences and actual occurrences from the beginning of the 

calendar year.




^

Data Structure

D1300060 - F1207 Calculate Estimated Occurrences

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAssetItemNumberNUMBMATH_NUMERICNONENONE

An 8-digit number that uniquely identifies an asset.

mnOccurencesOCCUMATH_NUMERICNONENONE

The estimated number of occurrences per year for the service type. The PM Projections program uses information from this field, in 
combination with the last completed date, to project future schedule requirements. You can use processing options to automatically calculate the 
estimated occurrences, based on one of the following:     o One year of PM history     o Two years of PM history     o Inception-to-date PM history 

cCalculateOccurencesEV01charNONENONE

1=One year of history.
2=Two Years of history.

3=Inception to date.

^

mnActualOccurrencesMATH01MATH_NUMERICNONENONE

- - - Good Performance Low Value. 

cSuppressErrorMsgERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

szServiceTypeSRVTcharNONENONE

A user defined code (12/ST) that describes the preventive maintenance service to be performed. Examples of codes include CLUTCH for 
adjust clutch, OIL for change oil, and 10H for 10 hour service.

Related Functions

None

Related Tables

F1207 Maintenance Schedule File