Functional Description
Purpose
This function is to read all rows from the Maintenance Schedule table (F1207) by the user input
index/key combination, and return the row information.
Setup Notes and Prerequisites
The following is a list of valid values for the index/key combination. Partial keys may be used.
1 = NUMB, SRVT, CPLD
2 = WONA
3 = Not available (Invalid Index)
4 = APID, MSTS, SRVT, CPLD
5 = NUMB, MSTS, SRVT, CPLD
Special Logic
This function will open the F1207 table and store the hRequest in the hRequest parameter. A special
call to FreeUserAndHrequest (Description: Memory, Free User And Hrequest) in C4102A1 must be made by
the user to close the table and free the pointer storage location for the hRequest. Pass in only the
hRequest to this function.
Technical Specification
1.Test for a valid key.
2.If the input hRequest is equal to zero,
b.Perform a select based upon the input index/key combination.
c.Fetch the matching record and return the field values to the data structure.
d.Save off the hRequest to the data structure.
4.Perform a fetch to retrieve the next row using the hRequest, and return all table information
to the data structure.
5.Error processing:
b.Return an error code of '1' if the end of file is reached; otherwise, return a zero.
c.All other errors will return an error message (3143).
D1200070 - F1207 Get Rows
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnAssetItemNumber | NUMB | MATH_NUMERIC | OPT | BOTH |
An 8-digit number that uniquely identifies an asset. | ||||
szServiceType | SRVT | char | OPT | BOTH |
A user defined code (12/ST) that describes the preventive maintenance service to be performed. Examples of codes include CLUTCH for
| ||||
jdCompletedDate | CPLD | JDEDATE | OPT | BOTH |
This is the actual date that the maintenance was completed. | ||||
mnAssignedWorkOrderNumber | WONA | MATH_NUMERIC | OPT | BOTH |
The Work Order Number related to a particular Equipment Maintenance line item. The system assigns this number from next numbers. | ||||
szUnitNumber | APID | char | OPT | BOTH |
A 12-character alphanumeric code used as an alternate identification number for an asset. This number is not required, nor does the
| ||||
szMaintenanceStatus | MSTS | char | OPT | BOTH |
A user defined code (12/MS) that indicates the maintenance status of a piece of equipment, such as 50 for maintenance due or 60 for
| ||||
szSerialNumber | ASID | char | OPT | OUTPUT |
A 25-character alphanumeric number that you can use as an alternate asset identification number. You might use this number to track
| ||||
cMaintenancePriority | MPRI | char | OPT | OUTPUT |
This field is used to indicate the relative priority that this maintenance has in relation to all other maintenance. | ||||
szUserDefinedCode | KY | char | OPT | OUTPUT |
A list of valid codes for a specific user defined code list. | ||||
mnAssignedToAddressNumber | ANP | MATH_NUMERIC | OPT | OUTPUT |
The address book number of the person assigned to do the work. | ||||
szRemark | RMK | char | OPT | OUTPUT |
A generic field that you use for a remark, description, name, or address. | ||||
mnServiceDays | SRVD | MATH_NUMERIC | OPT | OUTPUT |
The number of days to elapse before you schedule maintenance. | ||||
mnServiceMiles | SRVM | MATH_NUMERIC | OPT | OUTPUT |
The number of miles to be expended before you schedule maintenance. To determine if maintenance is due, the Update PM Schedule
| ||||
mnServiceFuel | SRVH | MATH_NUMERIC | OPT | OUTPUT |
The amount of fuel to be consumed before you schedule maintenance. To determine if maintenance is due, the Update PM Schedule
| ||||
jdScheduleDate | TDT | JDEDATE | OPT | OUTPUT |
The date that you want to receive a reminder message about an asset. | ||||
mnCompletedMiles | CPLM | MATH_NUMERIC | OPT | OUTPUT |
Actual miles at completion of maintenance. | ||||
mnConsumedFuel | CPLH | MATH_NUMERIC | OPT | OUTPUT |
Actual quantity of fuel consumed at completion of maintenance. | ||||
mnLastCompletedMiles | LSTM | MATH_NUMERIC | OPT | OUTPUT |
Number of miles at last maintenance. | ||||
mnLastCompletedFuelConsumed | LSTH | MATH_NUMERIC | OPT | OUTPUT |
Fuel consumed at last maintenance. | ||||
mnOrderNumber | DOCO | MATH_NUMERIC | OPT | OUTPUT |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
mnPercentDue | MPC | MATH_NUMERIC | OPT | OUTPUT |
A percentage measure that indicates how close a piece of equipment is to requiring maintenance. This percentage is based on the greater
| ||||
mnServiceHours | SRVF | MATH_NUMERIC | OPT | OUTPUT |
The hours to be expended before you schedule maintenance. To determine if maintenance is due, the Update PM Schedule Status
| ||||
mnCompletedHours | CPLF | MATH_NUMERIC | OPT | OUTPUT |
Actual hours at completion of maintenance. | ||||
mnLastCompletedHours | LSTF | MATH_NUMERIC | OPT | OUTPUT |
Number of hours at last maintenance. | ||||
cMultipleWOCode | MLTW | char | OPT | OUTPUT |
This code determines whether maintenance service types can be rescheduled and can come due again before the maintenance task for
| ||||
mnOriginalMiles | ORGM | MATH_NUMERIC | OPT | OUTPUT |
The balance for the statistical account which tracks the original miles meter reading. | ||||
mnOriginalFuel | ORGF | MATH_NUMERIC | OPT | OUTPUT |
The balance for the statistical account which tracks the original fuel meter reading. | ||||
mnOccurences | OCCU | MATH_NUMERIC | OPT | OUTPUT |
The estimated number of occurrences per year for the service type. The PM Projections program uses information from this field, in
| ||||
cFrequencyIndicator | FRIN | char | OPT | OUTPUT |
When used in conjunction with Schedule Date, this field indicates the frequency at which the system schedules maintenance. When
| ||||
mnTimeLastUpdated | UPMT | MATH_NUMERIC | OPT | OUTPUT |
The time that specifies when the program executed the last update to this record. | ||||
szBusinessUnit | MCU | char | OPT | OUTPUT |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
mnParentNumber | AAID | MATH_NUMERIC | OPT | OUTPUT |
A parent number groups related components together. You can associate each item of property and piece of equipment with a parent item.
| ||||
mnCriticality | CRTL | MATH_NUMERIC | OPT | OUTPUT |
A code that indicates the criticality of the piece of equipment or PM schedule. This code is used in calculating the criticality of the work
| ||||
jdPlannedStartDate | PNST | JDEDATE | OPT | OUTPUT |
The date when the item or line of work is to start. | ||||
szPMCategoryCode1 | PMC1 | char | OPT | OUTPUT |
A User Defined Code (system 13, code P1) used to classify PM schedules. | ||||
szPMCategoryCode2 | PMC2 | char | OPT | OUTPUT |
A User Defined Code (system 13, code P2) used to classify PM schedules. | ||||
mnDowntimeRequired | DNHR | MATH_NUMERIC | OPT | OUTPUT |
This is the estimated duration of downtime for the piece of equipment in order to do the maintenance. | ||||
cPredictiveFlag | PDFL | char | OPT | OUTPUT |
A code that indicates the functional status of a piece of equipment, as assessed by a condition-based maintenance system. For
| ||||
nIndex | INT01 | integer | OPT | INPUT |
Number of Days in Future to Query for Responses Due. | ||||
nKeys | INT02 | integer | OPT | INPUT |
Number of Days in the Past to Query for Quote Requests Received. | ||||
idhRequest | GENLNG | ID | OPT | BOTH |
General purpose ID variable. | ||||
cSuppressErrorMessages | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | OPT | OUTPUT |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
cErrorCode | ERRC | char | OPT | OUTPUT |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
mnOriginalHours | ORGH | MATH_NUMERIC | OPT | OUTPUT |
The balance for the statistical account which tracks the original hours meter reading. | ||||
jdLastCompletedDate | LCPD | JDEDATE | OPT | OUTPUT |
Date of last maintenance. | ||||
mnUniqueKeyIDInternal | UKID | MATH_NUMERIC | OPT | OUTPUT |
This field is a unique number used to identify a record in a file. | ||||
mnToleranceLimitUpper | TOLU | MATH_NUMERIC | OPT | OUTPUT |
Upper Tolerance Limit. | ||||
mnToleranceLimitLower | TOLL | MATH_NUMERIC | OPT | OUTPUT |
Lower Tolerance Limit. | ||||
jdDateHold | HLDD | JDEDATE | OPT | OUTPUT |
This date is used to hold a PM schedule so that it will not be processed. This is especially useful for seasonal PM schedules. | ||||
mnHoursSpecific | SPHR | MATH_NUMERIC | OPT | OUTPUT |
The specific hours used to determine how often a PM will come due. | ||||
mnWeeksSpecific | SPWK | MATH_NUMERIC | OPT | OUTPUT |
The specific weeks used to determine how often a PM will come due. | ||||
mnMonthsSpecific | SPMN | MATH_NUMERIC | OPT | OUTPUT |
The specific months used to determine how often a PM will come due. | ||||
mnWeekNumber | WK | MATH_NUMERIC | OPT | OUTPUT |
The calander week. | ||||
cSpecificDayOfTheWeek | SPDW | char | OPT | OUTPUT |
A code that indicates the day of the week in certified payroll processing and reporting. Valid values are:
0 Sunday
1 Monday
2
|
None |
F1207 Maintenance Schedule File |