Q35AddEquipmentPMSchedule
Cantara Business Function to Add an Equipment PM Schedule (F1207).
Validation rules from P1207 are applied, and the new PM Schedule record will only be created if the data provided is valid.
ASII is the Primary Asset ID, as configured in the Environment's Asset Constants.
SRVT and ASII are mandatory entry fields, and there cannot be an existing record for this combination, or as a Maintenance Route for that Service Type SRVT code on another Asset, at status less than 98.
If the Asset's "Allow Meter Schedules" is not checked, or if the PDFG Schedule Type is "1", then entered Meter Service Interval and Last Completed values are cleared, as these are not permitted.
Calls
This function calls the following Q35 functions:
Data Structure
Name | Type | Inclusion | Direction | Parameter Data |
---|---|---|---|---|
EV01_cSuppressErrors | CHARACTER | OPTIONAL | IN | |
DTAI_szErrorMessage | ERRORALIAS | OPTIONAL | OUT | |
VERS_szP1207Version | STRING | OPTIONAL | INPUT | |
UKID_szUniqueKeyId | INTEGER | OPTIONAL | OUT | |
ASII_szAssetNumberInput | STRING | REQUIRED | BOTH | |
SRVT_szServiceType | UDC | REQUIRED | BOTH | |
PDFG_cScheduleType | UDC | OPTIONAL | BOTH | |
SRVF_mnServiceHours | FLOAT | OPTIONAL | BOTH | |
SRVM_mnServiceMilesHours | FLOAT | OPTIONAL | BOTH | |
SRVH_mnServiceFuel | FLOAT | OPTIONAL | BOTH | |
SRVM4_mnServiceMeter4 | FLOAT | OPTIONAL | BOTH | |
SRVM5_mnServiceMeter5 | FLOAT | OPTIONAL | BOTH | |
SRVM6_mnServiceMeter6 | FLOAT | OPTIONAL | BOTH | |
SRVD_mnServiceDays | INTEGER | OPTIONAL | BOTH | |
TDT_jdDateScheduledTickler | DATE | OPTIONAL | BOTH | |
FRIN_cFrequencyIndicator | UDC | OPTIONAL | BOTH | |
MLTW_cMultipleWO | UDC | OPTIONAL | BOTH | |
LSTF_mnLastHours | FLOAT | OPTIONAL | BOTH | |
LSTM_mnLastMilesHours | FLOAT | OPTIONAL | BOTH | |
LSTH_mnLastFuelConsumed | FLOAT | OPTIONAL | BOTH | |
LSTM4_mnLastCompletedMeter4 | FLOAT | OPTIONAL | BOTH | |
LSTM5_mnLastCompletedMeter5 | FLOAT | OPTIONAL | BOTH | |
LSTM6_mnLastCompletedMeter6 | FLOAT | OPTIONAL | BOTH | |
LCPD_jdLastCompletedDate | DATE | OPTIONAL | BOTH | |
DOCO_mnModelWorkOrder | INTEGER | OPTIONAL | BOTH | |
KY_szProcedure | STRING | OPTIONAL | BOTH | |
OCCU_mnOccurences | FLOAT | OPTIONAL | BOTH | |
PDFL_cAlertLevel | UDC | OPTIONAL | BOTH | |
MPRI_cMaintenancePriority | UDC | OPTIONAL | BOTH | |
DNHR_mnDowntimeRequired | FLOAT | OPTIONAL | BOTH | |
MCU_szCostCenter | BUSINESSUNIT | OPTIONAL | BOTH | |
RMK_szNameRemark | STRING | OPTIONAL | BOTH | |
PMC1_szPMCategoryCode1 | UDC | OPTIONAL | BOTH | |
PMC2_szPMCategoryCode2 | UDC | OPTIONAL | BOTH | |
ASII_szParentNumberInput | STRING | OPTIONAL | BOTH |