Function documentationArchiving of Billing Documents Locate this document in the navigation structure

 

You can archive and delete the following from the database:

  • Billing documents

  • Billing due list items

  • Document flow data

  • Price data

  • Partner set data

  • Texts

Billing documents are archived with the archiving object BEA_CRMB (Billing Engine: Archiving Object CRMB). SAP delivers the archive information structure Billing Engine: (Generated) (SAP_BEA_CRMB) and the field catalog Billing Engine: (Generated) (SAP_BEA_CRMB), for access to the archived data.

Prerequisites

You have defined the residence times for billing documents in Customizing for Customer Relationship Management, by choosing   Billing   Maintain Residence Times for Billing Documents  . The residence time defines the number of days that must be exceeded before a billing document can be archived.

Features

Preprocessing Program

The preprocessing program selects the billing documents to be archived and marks them as Archivable. You can restrict the number of documents to be archived using different selection criteria such as billing type, billing date, or payer. You can use the indicator Enhanced Checks to run an additional archivability check.

A document is only archived if it fulfills all of the following criteria:

  • It has already been transferred to accounting or is completed due to cancellation.

  • It is not yet marked as Archived.

  • It has exceeded the residence time.

Billing documents that are marked as Archivable can no longer be changed.

Write Program

The write program selects all billing documents as Archivable (as well as the corresponding billing due list items, document flow data, price data, partner set data, and text) and writes them to the archive file.

Delete Program

The delete program selects archived data of an archiving session and all other immediately dependent data and deletes it from the database. For more information, see Settings for the Delete Program.

Postprocessing Program

If a transaction (item) or a delivery (item) is rejected before a billing document has been created for it, the corresponding billing due list items are not archived. The postprocessing program deletes these billing due list items from the database, together with all directly related data.

Note Note

After billing documents have been archived, you can archive tax documents. Refer to SAP Note 628275 for more information.

End of the note.

More Information

You can find general information on data archiving in the SAP Library under   SAP Customer Relationship Management   Components and Functions   Basic Functions   Data Archiving  .