Symptom
- Maintenance order stuck at 'Order Approval in Process' once the workflow was cancelled.
- Any change to maintenance order is not possible.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Submit maintenance order for approval.
- Cancel the maintenance order workflow via app Flexible Workflow Administration.
- Maintenance order is stuck at 'Order Approval in Process' and cannot be edited.
Resolution
Use API to set order status as 'Approved' or 'Rejected':
- Set order status to Rejected: POST /sap/opu/odata/SAP/API_MAINTENANCEORDER;v=2/RejectMaintenanceOrder?MaintenanceOrder=<OrderNumber>''
- Set order status to Approved: POST /sap/opu/odata/SAP/API_MAINTENANCEORDER;v=2/ApproveMaintenanceOrder?MaintenanceOrder=<OrderNumber>''
Prerequisites for maintenance order API:
- Ensure communication arrangements created for communication scenarios: SAP_COM_0397 & SAP_COM_0396.
- Ensure above two communication arrangements are using same communication user.
See Also
Refer to the Help documentation for the API:
Keywords
stuck maintenance order, workflow resubmission, flexible workflow administration, maintenance order approval, api_maintenanceorder , KBA , PM-FIO-2CL , Fiori User Interface (UI) for PM (Public Cloud) , How To
Product
SAP S/4HANA Cloud Public Edition all versions