SAP Knowledge Base Article - Public

3735459 - Required start/end time ignored when creating maintenance order via API_MAINTENANCEORDER - SAP S/4HANA Cloud Public Edition

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

  1. In SSCUI 104234 - Set Scheduling Parameters, disable 'Automatic Scheduling' for the relevant maintenance order type and plant.
  2. Use API_MAINTENANCEORDER (version 2) to create a maintenance order and include MaintOrdBasicStartDateTime and MaintOrdBasicEndDateTime with specific date and time.
  3. 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

Product

SAP S/4HANA Cloud Public Edition all versions