Archiving Change Documents (BC-SRV-ASF-CHD)

Background

Application programs write change documents for statutory or technical reasons. They must sometimes be retained for a long time. Documents which no longer require direct access can be archived, to reduce the database load. They are then saved in these archives for the statutory or technically-required period.

Technical Implementation

The archiving tools for change documents were developed with the Archive Development Kit (ADK), which supports object-oriented programming methods. This refers to the archiving object CHANGEDOCU that contains the required database tables and the archiving class CHANGEDOCU with the function modules to process them. If you want to access the archiving object CHANGEDOCU, you have to use a report. All of the function modules in the CHANGEDOCU archiving class belong to the SCD5 function group. This function group also includes the function modules which the archiving programs use to call the ADK functions.

Database tables

The CHANGEDOCU archiving object for archiving change documents contains the following database tables:

Table

Description

CDKEYTAB

Virtual table with the object key (only in archive, not in database)

CDHDR

Change document header in the database

CDPOS

Change document items in the database

CDPOS_UID

Change document item key per table, if it is > 70 characters. CDPOS-TBAKEY contains the UID for this entry.

CDPOS_STR

The change document item for STRING fields in CDPOS-TBAKEY then contains the UID for this entry.

Authorizations

If you want to archive, you need authorization for:

  • Archiving in general

For more information, see User Authorization Checks

Integration

You can display archived change documents with the Archive Explorer (transaction SARE).

To display each table in archiving object CHANGEDOCU using the Archive Information System, you need an information structure based on the standard field catalog SAP_CHANGEDOCU1 delivered by SAP. The information structure must be set up and active.

For more information about information structures, see also Using the Archive Information System.