A number of conditions must be fulfilled to ensure that only bill documents that are no longer required are archived from the system.
The status of the bill header is
Completed
or
Completed with Errors
.
The detention period has expired
You the retention period in Customizing .
You can use the INV_REMADV_ARCHIVE Business Add-In (BAdI) to define additional checks for whether bill documents can be archived. For further information on this, see the documentation on the BAdI INV_REMADV_ARCHIVE and the method ANALYSE_DOCUMENTS.