Programme SAP RVHURL009 - Archiving for account statements: Create archive file

Description
You use this report to archive account statements, or account statementheaders (table RLACSTHD), and account statement records (
table RLACSTIT) along with the corresponding change document data(tables CDHDR and CDPOS) and message status records (
table NAST). The report writes the data to an archive file.
You have two options for archiving the data: archive all statements, orarchive only statements that are completely matched. You can restrictthe range of data archived by entering a statement period. The systemuses residence times to calculate the earliest possible time forarchiving, or a key date. Archiving can be restricted to inbound oroutbound statements.
Process flow of archiving: The account statement headers are preselected(key date or statement date) in packets of 100. The system then readsthe statement transactions. The accounts to which these statementsbelong, and the statements themselves, are locked for parallelprocessing and unlocked again before the next data packet is read.
The statements, change document data and message status records arearchived. All transactions for one statement are archived together.
In each archiving record (consisting of one statement header and one ormore statement transactions plus change document data and message statusrecords), the system records information on, for example, the returnablepackaging accounts, partner relationship data and matching groups. Thisenables you to carry out evaluations in the SAP Archive InformationSystem, for example, by material number of returnable packa
ging; information that is not contained directly in the statementsthemselves.
This process is repeated for the next data packet, and so on.

Prerequisites
You have defined residence times in Customizing for Returnable PackagingLogistics. These define a retention period (number of days) for accountstatements in the system. If you have not defined these times, archivingterminates with a corresponding message.

Output
Account statements that were selected for archiving are outputted to anarchive file. The report RVHURL007 (archiving of account postings:delete application data) uses this file to delete the data from thetables. A processing log gives details on the amount and volumes of thearchived account statements. A more detailed log is also available,listing successfully archived postings and reasons for statements thatcould not be archived.

Note
Hints were created specifically for the archivingobject VHURL_PO (packaging logistics account postings), where you canfind more information.
Change document data is outputted to the archive file using functionmodules from the archiving class CHANGEDOCU. The processing log onlyprovides whole totals of archived change document data.