SAP Message BEA507 - No residence times maintained for document

Diagnosis
No residence times are maintained for billing documents.

System Response
No billing documents were selected for archiving.

Procedure
Maintain the residence times in Customizing:Maintain Residence Times for Billing Documents
.