Symptom
- When creating a maintenance order using the API_MAINTENANCEORDER, the Required Start time provided in the payload are not applied.
- 'Automatic Scheduling' has been disabled in SSCUI 104234 - Set Scheduling Parameters.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- In SSCUI 104234 - Set Scheduling Parameters, disable 'Automatic Scheduling' for the relevant maintenance order type and plant.
- Use API_MAINTENANCEORDER (version 2) to create a maintenance order and include MaintOrdBasicStartDateTime and MaintOrdBasicEndDateTime with specific date and time.
- After creation, open the order and observe that the dates match the payload but the time component is not.
Cause
There is a confirmed defect in API_MAINTENANCEORDER where the time component of MaintOrdBasicStartDateTime and MaintOrdBasicEndDateTime is not persisted, a permanent fix is under evaluation.
Resolution
As a workaround, add field 'BasicSchedulingType' in API payload, the value can be found in SSCUI 104234 - Set Scheduling Parameters.
See Also
SAP Help Portal - Create Maintenance Order (Version 2) – API documentation.
Keywords
api_maintenanceorder v2, maintordbasicstartdatetime, maintordbasicenddatetime, basic start time, basic end time, time component lost, ignored time, maintenance order creation, odata datetimeoffset, basicschedulingtype, scheduling type, capacity requirements and time, start date time, end date time, SSCUI 104234 - Set Scheduling Parameters. , KBA , PM-WOC-MO-2CL , Maintenance Orders (Public Cloud) , Known Error
SAP Knowledge Base Article - Public