Checks (PM-SMA-SC/PM-WOC-MO)A maintenance- or service order can only be archived after a deletion flag and deletion indicator have been set for it:
You can set the deletion flag in two ways:
The system checks the status of maintenance- and service orders to determine whether a deletion flag or a deletion indicator can be set for an order.
The system does not set a deletion flag or a deletion indicator for an error message.
The system sets a deletion flag or a deletion indicator for a warning message.
Residence Times
An order can only be archived after the residence times have elapsed. There are two different residence times:
Residence time 1 is the time between the activation of the deletion flag and the activation of the deletion indicator.
If the duration of residence time 1 is zero, the deletion flag and the deletion indicator can be set at the same time.
Residence time 2 is the time between the activation of the deletion indicator and the time at which the order can be archived and deleted from the database.
After the second residence time has elapsed, the orders are archived and simultaneously deleted from the database.
For more information about the setting of residence times, see Application Customizing (PM-WOC-MO, PM-SMA-SC) .
Check Criteria for Setting the Deletion Flag
Before a deletion flag is set in the initial run, the following requirements must be met:
Any manually added purchase requisitions or purchase orders for the order must be deleted first.
The balance of the actual costs for the order must be zero. This means that the deletion flag can only be activated if the order has already been settled, or if no actual costs were incurred for the order.
A business completion must be performed for the order, so that it has the status
CLSD.
Note
Note that this prerequisite only applies for setting the deletion flat using the initial run.
It is also possible to set the deletion flag in the dialog, if a business completion has not been performed for the order.
Commitments relating to the order must be deleted.
Unprocessed and incorrect goods movements must be processed.
Note
When the deletion flag is activated, all remaining capacity requirements are deleted. A deletion indicator is also set in any open material reservations.
An order that has been flagged for deletion cannot be changed. However, you can cancel the deletion flag.
Check Criteria for Archiving
If an order is included in an order hierarchy or order network, a deletion indicator must be set for all orders in the hierarchy or network. Only then can the system archive the order.