Application-Specific Features (PM-SMA-SC/PM-WOC-MO) 
Use
You can archive data from maintenance orders and service orders that are no longer needed using the archiving program. The data is written to the archive files and then deleted from the system if the operation was successful.
You can archive maintenance orders and service orders using the
archiving object PM_ORDER.Features
Initial Run
The initial run program prepares the data in the database for archiving. Maintenance and service orders with deletion flags are assigned the system status Deletion indicator in the initial run program. However, processing can only take place if one of the deletion criteria described under
Checks (PM-WOC-MO, PM-SMA-SC) is fulfilled.Archiving and Deleting
The archiving program writes the database tables of the maintenance and service orders listed under the
object definition to the archive.Normally, the system creates archive files and then deletes them automatically as the SAP standard setting Start automatically is set. The deletion program deletes all database records for the orders which have been successfully archived. However, you can perform these steps individually.
To avoid problems caused by data inconsistency, you should run the deletion program as near as possible to the archiving program.
For more information, see
Deleting Archived Data from the Database.
Historical Orders
Since Release 3.0F, you can trigger the simultaneous creation of a historical order from an order in the archiving run.
If you set the indicator Generate historical orders on the initial screen for the archiving run, the deletion program deletes the maintenance or service order from the SAP online database and at the same time creates a historical order in aggregated form from the database. The order number remains the same.

Refurbishment orders are the exceptions to this rule. Even if you have set the indicator, the system does not generate a historical order for the refurbishment order.
For more information in deleting historical orders, see
Deleting Historical Orders.Selection Criteria
You can select orders for archiving according to the following criteria:
Orders are only archived if they satisfy the following criteria:
Displaying