Archiving shipment cost documents 
Description
Starting with release 4.5A, shipment cost documents can be archived. The following data is archived:
- Shipment costs: header data (table VFKK)
- Shipment costs: item data (VFKP)
- Shipment costs: account assignment of the shipment cost items (VFKN
- Shipment costs: sub-item data (VFSI)
- Shipment costs document partners (VFPA)
- Condition records for the shipment cost document (KONV, VFKONV, VFKGRP)
- Assignment of conditions to shipping units (VFZP)
Master data and transaction data that are stored in the shipment cost
document are archived in their own archiving objects (SD_VTTK for
shipment, for example), rather than in this object. The document chain should logically be "rolled out" from the back.
Example: a shipment can only be archived if -- among other things --
the shipment cost document that follows the shipment no longer exists
in the database (meaning that it has already been archived and deleted).
The archive program checks multiple criteria for each shipment cost
document. A shipment cost document can be archived when the following conditions are met:
- The date of creation for the shipment cost document must fall at least
n days ago. The residence time since creation must also be n days.
- The last change date for the shipment cost document must fall at least
m days ago. The residence time since the last change must also be m
days. If the shipment cost document has not been changed, the creation date is used as the date of the last change.
- The purchase order for this shipment cost document should be completed
and archived. You can tell if this is the case by checking to see
whether the document subsequent to the shipment cost document (service entry sheet or sheets) has already been archived.
You can activate this check in the archiving control for shipment costs.
- Invoice status must be set to "C" (billing completed)
- Account assignment status must be "_" (blank = not relevant for account assignment) or "C" (assignment completed).
- Forwarding status must be set to "_" (blank = not relevant for forwarding) or "C" (forwarding completed).
- The shipment that the shipment cost document refers to must be billed completely.
The last four criteria listed are always checked and are constants
within the program, but the preceding three criteria can be set in Customizing.
Change system parameters in customizing
To make the settings in Customizing, choose Logistics Execution -> Archiving ->
Control of Archiving of Shipment Costs in the Implementation Guide.