Archiving With Archive Development Kit (ADK) : Warning
Archiving With Archive Development Kit (ADK) : Warning
PUBLIC
Warning
This document has been generated from the SAP Help Portal and is an incomplete version of the official SAP product
documentation. The information included in custom documentation may not re ect the arrangement of topics in the SAP Help
Portal, and may be missing important aspects and/or correlations to other topics. For this reason, it is not for productive use.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a4… 1/87
7/18/2020
Data in the database can only be archived using archiving objects that describe the data structure and context .
Example
Financial Accounting documents are archived using the archiving object FI_DOCUMNT. It includes the document header,
company code-dependent postings, change documents, SAPscript texts, and other elements.
Integration
For the majority of the archiving objects the SAP Data Archiving concept is based on the Archive Development Kit (ADK).
For some applications it is possible to start archiving directly from the application menu. In these cases the application-speci c
parameters, such as the archiving object or the archiving program appear as default values.
Archiving objects for each application component are prede ned in the system. Their structures are described in the application-
speci c sections.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a4… 2/87
7/18/2020
Features
The archiving procedure is divided into three main steps:
In the write phase the data to be archived is written sequentially into newly created archive les.
The delete program reads the data from the archive les and then deletes it from the database.
The newly created archive les can then be moved to a storage system or copied to a tape. The removal to an external
storage system can be triggered manually or automatically. It is also possible to store the data before the delete phase.
The archiving programs are generally scheduled in the background. However, they can also run in online mode.
Background Information
This section gives you additional background information about Data Archiving:
Archiving Requirements
Important Terms
Resolves memory space and performance problems caused by large volumes of transaction data
Ensures that data growth remains moderate so that the database remains manageable in the long term
Ensures that companies can meet the legal requirements for data storage in a cost-efficient manner
Ensures that data can be reused at a later date, for example, in new product development
See also:
Important Terms
Hardware independence
Since the encoding of numerical elds, such as integers, depends on the hardware, when archiving it is essential to ensure
that information about the hardware currently being used is appended to the archived data so that the data can be
displayed later with different hardware.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a4… 3/87
7/18/2020
Release dependence
Since the data structure may depend on the release of the SAP Business Suite solution that you are using, information
about record structures and eld de nitions must also be archived.
Many data objects only make sense in conjunction with other data objects or are dependent on these other data objects.
Consequently, when archiving data, you must check whether archiving a speci c data object also requires other objects to
be archived beforehand or at the same time.
Some data is only of use in conjunction with information about an enterprise’s organizational structure, such as how it is
divided into different areas for sales. When archiving, therefore, it is essential to ensure that this information is also
archived.
The list shows that archiving application data requires a very detailed knowledge of data semantics, which is completely
accommodated by the application-integrated approach offered by SAP Data Archiving. For this reason, SAP Data Archiving can be
said to be superior to other products that are not integrated in an SAP Business Suite application (database-based archiving).
Important Terms
This section de nes some basic Data Archiving terms:
Optical Archiving
Reorganization
Backup/Restore
See also:
Storage System
Document Storage
Archiving Sequence
Management Data
Metadata
Optical Archiving
When using a storage system, it is important to differentiate between the storage of original documents, such as scanned
incoming invoices, and the storage of archive les that were created using data archiving.
The term "optical archiving" refers to the electronic storage and administration of documents on storage systems outside SAP
Business Suite. Documents stored in this way include:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a4… 4/87
7/18/2020
Outgoing documents, such as invoices created in SAP ERP Financials that are created electronically, then sent in printed
form
In most cases, these documents are physically stored in optical media such as CDs or WORMs, hence the term “optical archiving.”
In this context, however, it is preferable to refer to document storage . Stored documents and lists can be displayed again, but
cannot be imported into or analyzed in an SAP Business Suite solution.
Reorganization
This term has its origins in R/2 and is often incorrectly confused with data archiving. With this kind of reorganization, data was
removed from the database and reloaded to optimize the physical distribution of data on the disk. During this procedure,
unnecessary data was often archived and deleted. Reorganization of this kind has nothing to do with data archiving using the
Archive Development Kit (ADK).
The retention period is the entire time that data spends in the database before it is archived. The retention period cannot be set.
Example
If the residence time is a month, data that has been in the system for two months will be archived. Data that is only three weeks
old remains in the database.
Backup/Restore
Backup is a copy of the database contents that can be used in the case of a system breakdown. The aim is that as much of the
database as possible can be restored to its state before a system failure. Backups are usually made at regular intervals according
to a standard procedure (complete or incremental backup). Reloading the saved data into the le system is called restoring the
data.
Note
SAP R/3 2.1 and 2.2 required you to back up the database before archiving data. This safety measure is no longer required.
Archiving Features
SAP Data Archiving has the following key features:
Data Compression
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a4… 5/87
7/18/2020
Access to Archived Data
This two-step process guarantees data security if problems occur during the archiving process. For example, the procedure
identi es network data transfer errors between the database and the archive le. If an error occurs, you can restart the archiving
process at any time because the data is still either in the database or in an archive le. This means that you can usually archive
parallel to the online application , that is, during normal system operation, without having to back up the database rst.
Note
You can further increase data security if you store the archive les in an external storage system before you delete the data
from the database. This guarantees that the data from the database will only be deleted after it has been securely stored in an
external storage system. You can de ne the storage time in archiving object-speci c Customizing.
Data Compression
During archiving, data is automatically compressed by up to a factor of 5 . However, if the data to be archived is stored in cluster
tables, no additional compression takes place.
Note
Note that cluster tables are stored in a compressed form in the database.
It may also help to know in advance how much space the archive les that you create will need.
Note
Data is compressed before it is written to the archive le. The extent of the compression depends on how much text (character
elds) the object contains. Optimal compression can achieve a factor of ve .
Estimates of the size of an individual data object are provided in the application-speci c sections of this documentation. You can,
however, also make a rough approximation (for example with your customer-speci c archiving objects) of how much space the
data to be archived occupies in the database and how much space the archive les will require.
See also:
Archive Administration
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a4… 6/87
7/18/2020
Statistics
Procedure
Call the ABAP Dictionary by choosing Tools ABAP/4 Workbench Development Dictionary .
The Dictionary: Table screen appears and contains several tab pages with detailed information on the relevant table. The header
contains the following information on the table.
Name
The length of the table elds is given in bytes and can be found in the Length column on the Fields tab page.
Caution
You must multiply the values for tables containing dependent positions by a factor that re ects their actual business
use.
See also:
3. Reload into the database (not possible for all archiving objects)
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a4… 7/87
7/18/2020
See also:
Reloading Data
When old archive les are accessed, the Archive Development Kit (ADK) can make allowances for changes to database structures
( eld types, eld lengths, new elds, and deleted elds) after the data was archived and for changes to hardware-dependent
storage formats. This is only done on a temporary basis during read access. The data in the archive le is not changed. The
following items are changed (if necessary) during automatic conversion:
Column length
Number format (such as the use of the integer format on various hardware platforms)
If database structures in an application have undergone more changes than the ADK can handle (for example, if elds have been
moved from one table to another or if one table has been divided into several separate tables), then a program is usually provided
by the relevant SAP Business Suite solution for the permanent conversion of existing archive les.
Archive les created by Data Archiving can be stored on tertiary storage media, such as WORMs, magnetic-optical disks (MO), and
tapes using the SAP Content Management Infrastructure (which also contains the ArchiveLink/CMS interface). This can be done
manually or automatically.
You can also store archive les in the le system of an HSM system. The HSM system manages the archive les automatically. For
storage, the HSM system can also use tertiary storage media, such as MO-disks.
See also:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a4… 8/87
7/18/2020
Process Flow
Archiving is carried out in three steps:
Note
Optionally, you can store archive les after the delete phase. To do this, you must mark Delete Phase Before Storage in
archiving object-speci c Customizing.
If security is your main concern, then you should not schedule the delete phase until after the archive les have been stored. In
this way you know that the data will only be deleted from the database after the archive les have successfully been moved to
the external storage system. In addition, you can set the system to read the data from the storage system and not from the le
system.
However, if your main concern is the performance of the archiving programs, then you should schedule the delete program rst
and then store the les.
In step one, the write program creates an archive le. The data to be archived is then read from the database and is written to the
archive le in the background. This process continues until one of following three events occurs:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a4… 9/87
7/18/2020
1. All the data is written to an archive le
2. Archiving is not complete, but the archive le reaches the maximum size speci ed in archiving object-speci c Customizing
3. The archiving is not yet nished, but the archive le contains the maximum number of data objects speci ed in
Customizing.
Note
If in cases 2 and 3 there is still data to be archived, the system will create another archiving le.
If event 2 or 3 occurs, then archive management continues with the delete step (assuming that the following indicators are
marked in archiving object-speci c Customizing: Start Automatically and Delete Before Storage ).
Note
Write jobs can be scheduled outside Archive Administration (transaction SARA ) using an external job scheduler. This enables
you greater exibility when coordinating data archiving processes with the other processes in your system environment. For
more information, see Scheduling Write Jobs Outside Archive Administration .
Virus Scan
As with all electronically stored data, data records in the database can also be infected with viruses. It is possible, although highly
unlikely, that these viruses are spread through the archiving of the infected le. You can therefore run a virus scan on the data to
be archived during the write phase of your archiving session. During this check, the system scans all data objects that contain
records with elds in which the type XSTRING (variable string of bytes) or X (byte string) appear. Only these data types of byte
strings are potential carriers of viruses.
The ADK virus scan is integrated in the SAP NetWeaver Virus Scan Interface and can be activated and used as described there.
The virus scan pro le is called /SARC/ARCHIVING_ADK and is set by default to inactive. When the pro le is activated the message
“Virus Scan with Virus Scan Pro le /SARC/ARCHIVING_ADK active” appears in the job log of a write job. This message is always
issued, even if the scan did not identify any potentially infected data objects. Performance is not signi cantly affected by the virus
scan.
If an infected data object has been found, ADK issues the following message: “Virus <Name> in Object <Structuretype>
<Component> found”. The write program is terminated with a system exception and the affected session is treated like any other
terminated session in Archive Administration (for example, errors due to technical reasons). Archive les that are not infected and
that have been completely written and correctly closed at the time of the program termination, remain intact.
To further automate the archiving process, you can transfer the archiving session number to function module
ARCHIVE_GET_FILES_OF_SESSION. This determines, on a platform-independent basis, the names and paths of the archive les
that were written in an archiving session.
You can de ne new jobs in transaction SM36. You maintain events in transaction SM62 .
See also:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 10/87
7/18/2020
Archiving Object-Speci c Customizing
Once the write program has nished creating archive les, these can be stored.
Storage systems
If a storage system is connected to the SAP Business Suite: At the end of a successful write job, a request is sent to this
system to store the new archive les (provided the appropriate settings were made in Archiving Object-Speci c
Customizing ). You can also store archive les manually at a later point if you do not want them to be stored automatically.
Storage is carried out by the SAP Content Management Infrastructure (which contains the ArchiveLink/CMS interface).
HSM systems
If you use an HSM system, it is sufficient to maintain the le name in Customizing (transaction FILE ). You do not then need
to communicate with the storage system using the SAP Content Management Infrastructure, because the HSM system
stores the les on suitable storage media according to access frequency and storage space.
After the archive le has been processed by the delete program, it can be manually transferred to existing storage media
by, for example, copying to tape.
For more information, see File Storage to Storage System und Storing Archive Files .
More information:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 11/87
7/18/2020
Retrieving Archived Files
After closing the rst archive le, Archive Administration creates a new archive le and continues with the write process. If the
settings were made accordingly in archiving-object-speci c Customizing (see Settings for the Delete Program ) , a delete program
is started automatically in parallel for the previously created archive le, to read the data in the archive le and then delete it from
the database. This procedure guarantees that only data that has been correctly saved in the archive le is deleted from the
database.
You can also schedule the delete program manually, for example, so that you can save the archive les before deletion, or because
the next available time window is not sufficiently long to also include deletion. The following scenario may also be a reason to
manually schedule the delete program:
Example
You create an archive le by starting a write program. The data records are written to an archive le, but the system terminates
processing before the delete program starts to run. In this case you must delete the archived data manually in a separate step.
See Deleting Archived Data from the Database .
Note
If you do not carry out deletion until after the data has been stored, you can make a setting in Archiving Object-Speci c
Customizing so that the system will read archive les the from the storage system during deletion. In this way, you can detect
errors in good time which might arise when transferring or saving the archive les in the storage system.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 12/87
7/18/2020
When the last archive le is closed, a delete program starts to run for this le. The graphic shows that several delete programs are
running simultaneously for previously created archive les. Because, unlike the delete program, the write program does not
generally carry out any transactions that change data in the transactions, the write program creates new archive les faster than
they can be processed by the delete program. This decreases the total archiving runtime because the database is used more
efficiently.
Note
Delete jobs can usually also be scheduled outside Archive Administration (transaction SARA ). This occurs directly in an
external job scheduler or using program RSARCHD. For more information, see Scheduling Delete Jobs Outside Archive
Administration .
After all archive les have been completely created for an archiving session, the Archive Development Kit (ADK) triggers the
system event SAP_ARCHIVING_DELETE_FINISHED. By reacting to this system event, you have the option of scheduling archiving
jobs automatically. This includes the rebuilding of indexes or input help, archive le backup before deletion, and so on. The event
parameter is the number of the archive session.
To further automate the archiving process, you can transfer the archiving session number to function module
ARCHIVE_GET_FILES_OF_SESSION. This determines, on a platform-independent basis, the names and paths of the archive les
that were written in an archiving session.
You can de ne new jobs in transaction SM36. You maintain events in transaction SM62 .
Note
You can also have event-controlled delete runs started automatically. You can de ne the event that triggers the delete program
in the group box Settings for the Delete Program in Archiving Object Speci c Customizing.
See also:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 13/87
7/18/2020
Deleting Archived Data from the Database
Archiving Object
De nition
The archiving object is a central component of SAP Data Archiving. The archiving object speci es precisely which data is archived
and how. It describes which database objects must be handled together as a single business object. and interprets the data
irrespective of the technical speci cations at the time of archiving (such as release and hardware).
Use
An archiving object has a name of up to ten characters in length. You need this name to carry out the archiving programs in
archive administration (transaction SARA). However, the function for calling data archiving is often integrated in the application
menu, where the archiving object name is set as the default so that you do not need to enter it yourself.
Structure
The following programs must (or can) be assigned to an archiving object. (Archiving objects are de ned using transaction AOBJ )
The SAP System contains programs (some of which are optional) for the following actions:
Preprocessing (optional)
Some archiving objects require a preprocessing program that prepares the data for archiving. This preprocessing program
marks data to be archived, but it does not delete any data from the database.
Preprocessing programs must always be scheduled manually and are run from Archive Administration.
Write
This program creates archive les and writes data to them. At this point, however, no data is being deleted from the
database.
You can specify in archiving object-speci c Customizing whether the next phase ( delete ) is to take place automatically
after the archive les have been created. Delete jobs can also be event-triggered. To do this, you set up the trigger event in
archiving object-speci c Customizing.
Delete
This function can entail several activities. The activities are always dependent on the existing archive les.
Normally, the data is deleted from the data base. However, in some case, the archived data in the database may only have a
delete indicator.
In archiving object-speci c Customizing, you can specify that archive les, after successful processing, are to be
transferred to an external storage system using the SAP Content Management Infrastructure (which contains the
ArchiveLink/CSM interface).
Postprocessing (optional)
This function is usually carried out after deletion has taken place. It is not available for all archiving objects. If the data has
not yet been deleted from the database by the delete program, it is deleted by the postprocessing program. Depending on
the archiving object used, postprocessing can also ful ll other tasks. For more information, refer to the documentation on
the speci c archiving object.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 14/87
7/18/2020
You can reload archived data from the archive les into the database using this function. It is not available for all archiving
objects. To access this function, choose Goto Reload.
Index (optional)
This function builds (or deletes) an index that allows individual access. It is not included in every archiving object.
For more information on the de nition of archiving objects, refer to Creating Archiving Objects .
The archiving object for FI documents, FI_DOCUMNT, includes the following data, which is stored in various database tables:
Document header
Change documents
SAPscript texts
See also:
Archiving Object
Data Object
De nition
A data object is the application-speci c instance of an archiving object, that is, an archiving object lled with concrete application
data.
Structure
The archiving object only describes the data structure, that is, it determines which data belong logically together, whereas the
data object contains real data from the database, such as all table entries belonging to a Financial Accounting document.
A data object incorporates all application data that is necessary to archive a business object (master data or transaction data)
completely and consistently. Examples of master data objects include material masters and bills of material. Examples of
transaction data objects are Financial Accounting documents, billing documents, and deliveries.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 15/87
7/18/2020
A typical data object is composed of a:
Header containing general information for identifying the data object, and a
Use
The Archive Development Kit (ADK) ensures that data objects are written sequentially to an archive le. All data objects in an
archive le have the same structure, which is described in the archiving object.
See also:
Archiving Object
Archive Administration
Use
The most important actions relating to data archiving take place in the Archive Administration (transaction SARA ).
Note
The de nition of an archiving object determines which actions are possible for the archiving object. Consequently, all the
following archiving functions are not always offered in Archive Administration.
Features
Preprocessing
Enables you to schedule and run preprocessing programs. Preprocessing programs prepare data objects for archiving, for
example, by setting a deletion indicator. See Scheduling Preprocessing .
Write
Enables you to schedule and run a write program to create archive les. The program copies the relevant data objects sequentially
to the archive les that were previously created. See Creating Archive Files .
Delete
Enables you to schedule and run delete programs. Data objects that were successfully imported into the archive le created are
deleted from the database. See Deleting Data from the Database .
Postprocessing
Enables you to schedule and run postprocessing programs. Postprocessing programs carry out operations following an archiving
session, such as updating statistics. See Scheduling Postprocessing .
Read
Enables you to schedule and run a program that reads and analyzes archived data. See Reading Archive Files .
Index
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 16/87
7/18/2020
Enables an index to be built or deleted for existing archive les. The index is required to display individual documents belonging to
several archiving objects. See Building an Index and Deleting an Index .
Storage System
Enables archive les to be transferred to a connected storage system and enables stored archive les to be retrieved from a
storage system. See Storing Archive Files and Retrieving Stored Archive Files .
Management
Offers an overview of archiving sessions for one archiving object. From here, you can display and analyze object-speci c
management information. See Archive Administration: Overview of Archiving Sessions and Calling Archive Session Management .
Further Functions
Depending on the action you have selected, you can use Goto and Environment on the menu to access the following menu
options, or you can access them directly from the application bar:
Network Graphic
Reload
Customizing
Job Overview: Offers an overview of all archiving jobs and the functions available for processing them.
Logs
Management
Stored Files: Enables you to search for stored archive les according to various selection criteria
Database Tables
Infosystem
Statistics
Activities
You can call the Archive Administration:
If you choose an archiving function in the application, the relevant archiving object is automatically speci ed in Archive
Administration. Otherwise, you must specify it manually.
De nition
The Archive Development Kit (ADK) is a tool for developing archiving solutions. It also prepares the runtime environment for
archiving. From a technical viewpoint, it is an intermediate layer between the application program and the archive that provides all
the functions required for archiving data.
Use
The ADK functions are required for archiving and for subsequent access to archived data. The ADK automatically performs the
hardware-dependent adjustments (such as codepage and number format) and structural changes that are required when archive
les are created. When the archive les are accessed later, the ADK temporarily converts data that was archived using earlier
releases of the respective SAP Business Suite application (in the case of SAP R/3, this applies to releases back to and including
2.1).
Integration
The following graphic illustrates the ADK’s role in the archiving concept.
More information:
Authorization Check
De nition
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 18/87
7/18/2020
The authorization to carry out various archiving object programs is checked by the authorization object S_ARCHIVE. The Archive
Development Kit (ADK) performs the check when an archive le is opened for one of the following actions:
Write
Delete
Read
Restore
Use
The following authorizations can be given per archiving object and solution (such as SAP ERP Financials or SAP ERP Human
Capital Management):
Everything is allowed
Write, read, and reload archives; execute delete programs; change mode in archive management (notes)
Maintain notes
There may also be additional access authorization checks for speci c application components.
More information:
Integration
This function is integrated into data archiving. Therefore you can also call it from Archive Administration (Transaction SARA ) via
Database Tables .
Features
Archiving Objects
This pushbutton takes you to the part of the screen where you can determine archiving objects. To display the archiving objects
that apply to a speci c table, enter the table name under Objects for Table and choose Display Table .
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 19/87
7/18/2020
This pushbutton takes you to the part of the screen where you can determine tables. To display the tables that belong to a speci c
archiving object, enter the archiving object under Tables for Object and choose Display Objects .
In the display, some archiving object types are not shown. These are all archiving objects that
Archive using an archiving class for which no table information is maintained (transaction ACLA )
By default, the system displays only tables whose data records are deleted during Data Archiving. By selecting All Tables, you can,
however, display all tables that are linked to the archiving object (with the exception of those mentioned above).
For more information about how to determine tables and archiving objects see Displaying Archiving Objects and Tables
This transaction provides information from SAP tables that are lled by statistics determination runs. This also provides further
information, such as the time and number of the last archiving session and various details on the client used.
There are number of export, lter, and search functions that you can use here.For more information about the SAP List Viewer
(ALV) functions available here, see SAP List Viewer (ALV) Grid Control (BC-SRV-ALV)
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 20/87
7/18/2020
Procedure
Choose Administration → CCMS → DB Administration → Data Archiving (transaction DB15). Alternatively, go to transaction
SARA and choose Database Tables
The Tables and Archiving Objects screen appears with the cursor in the lower section of the screen in the area Tables from
which data is archived.
Tables
To display the tables archived by a particular archiving object, enter the archiving object in theTables in object eld and
chooseEnter
By default, only the tables from which data is deleted after archiving are displayed. To display all tables processed by the
archiving object, choose All Tables
To display all the archiving objects for one of the tables listed, choose a table and thenShow objects
The list of archiving objects appears in the upper part of the screen.
Archiving Objects
To display the archiving objects that archive a speci c table, enter the table in the Objects for table eld and choose Enter .
In addition to transparent tables, you can also enter pool and cluster tables. DB15 determines the transparent tables for the pool
or cluster table.
To display all the tables for one of the archiving objects listed, choose an archiving object and then Show tables .
Use
You can determine information about space and space parameters online or use existing statistics. For more information, see DB
Tables .
Procedure
1. Choose Administration CCMS DB administration Data archiving , or enter transaction DB15 in the command eld.
Note
Intermediate result
Online space provides you with information obtained from the Oracle system table DBA_TABLES. This includes the
number of records, the space used, and the date the last time statistics were created by Oracle. The system also
displays general information about the time and the number of the last archiving session as well as its client–
dependence.
Space statistics displays the corresponding information from the SAP tables DBSTATTORA and DBSTATIORA that
are lled using update statistics with BRCONNECT.
For more details about the space and space parameters of a particular table, continue as below.
3. Select a table.
5. Alternatively, you can select a table from the display and then choose Space details.
Result
You can use the information displayed to determine what to archive. Choose Archive management to go to archive
management directly, where you can plan and execute data archiving.
Prerequisites
You have selected the role of the database administrator for the database system:
SAP_BC_DB_ADMIN_SDB.
Procedure
Choose Database: Archiving Data Archiving: DB Tables (transaction DB15 ).
Enter an archiving object and then display the corresponding tables ( Displaying Archiving Objects and Tables ).
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 22/87
7/18/2020
Space (Online) : The system displays information from the database system about the number of records, the utilized storage
space, and the data of the last statistics creation.
The system also displays general information about the time and the number of the last archiving run and its client dependency.
Space Statistics : The system displays relevant information from the SAP tables DBSTATTADA and DBSTATIADA. These tables are
lled by UPDATE STATISTICS runs scheduled using the DBA Planning Calendar (transaction DB13 ).
Additional Information for a Speci c Table : If you want detailed information about the space and space parameters of a speci c
table, select the table and choose Online Space or Space Statistics. Alternatively, you can select a table from the display and then
choose Space Details.
Result
You can use Archive Management to activate or plan data archiving.
Network Graphic
Use
You can use the network graphic to show any existing dependencies between archiving objects. It shows business process ows
and contexts that can in uence the archiving sequence. In particular, at the start of an archiving object, you can use the network
graphic to obtain a good overview of related documents.
Caution
As with a map, the network graphic is only for orientation purposes. It is not intended to show all the available document types
and dependencies that exist in the system. For this reason, the network graphic cannot be used as a programming model for
business processes.
Features
In an archiving session, you must take into account any dependencies between archiving objects that require a speci c archiving
sequence. In general, you cannot archive data for an archiving object that has preceding objects until these preceding objects have
been archived.
You can use the network graphic to determine whether the archiving object that you want to use has preceding objects. If so, the
preceding objects should be implemented before the current archiving object. The nodes in the network graphic represent the
archiving objects. A node displays the following information:
Application name
Short description
– Yellow: Successfully archived, but not yet deleted , or Archiving still running , or Delete in progress or Delete canceled
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 23/87
7/18/2020
The network graphic is a standard tool for creating and displaying network plans and hierarchies.
Activities
You can use the network graphic to call Archive Management (transaction SARA ) at the same time as the required object name:
1. Double-click the archiving object for which you want to perform to carry out an action (such as write or delete).
You access Archive Administration. The name of the archiving object is copied automatically.
2. You can now select the action that you want to carry out and schedule the relevant background job.
See also:
Archive Administration
Procedure
1. If you want to display the network graphic for all archiving objects, leave the archiving object name eld empty.
2. If you want to display all the predecessors of a particular object, enter the name of the archiving object in the archiving O
bject Name eld.
The network graphic is displayed for the speci ed archiving object or all registered archiving objects.
Note
If you have called the network graphic for all archiving objects, you can increase the display area by enlarging the rectangle in
the bottom right-hand corner of the screen. Use the mouse to change the rectangle.
See also:
Network Graphic
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 24/87
7/18/2020
Prerequisites
A prerequisite of read access and reload access, is that the le can be found in the le system. You can check this in Archive
Administration.
Features
Note
The uses of archived data described here are technically possible, but are not currently implemented in all application
components. For more information, refer to the application-speci c sections of the documentation on Data Archiving in the
SAP Library.
Direct access or single document access requires an index that can be built either during archiving or at a later point. A
complex search of the documents stored in the archive les, in which all orders of an article in a particular batch are
required for a product recall action, is not possible.
The Archive Information System (AS) supports direct access using archive information structures that can be generated
automatically either when the archive les are being written, or at a later point.
It is possible to run an analysis for one or several archiving sessions. The results of the analyzed data objects are displayed
in a list. Furthermore, some archiving objects offer the option of a combined analysis. With this option, you can link current
data in the database and archived data.
Archived data does not usually need to be reloaded because it remains accessible by the applications. There is also a lot of
data that cannot be reloaded or for which reloading is problematic. For this reason, reload programs do not exist for all
archiving objects.
Features
Within a status area, archiving sessions are, by default, organized in groups of 20. The sessions are ordered according to the
following statuses:
Archiving Sessions with Errors : The write process terminated before the rst archive le was created.
Incomplete Archiving Sessions : The write process has not been completed, the deletion program did not run for all
archive les, or a write process was terminated.
Completed Archiving Sessions : Both the write process and the delete phase were completed successfully.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 25/87
7/18/2020
Archiving Sessions to be Reloaded : The content of the archiving session is to be reloaded into the database.
Archiving Sessions Created During Reload : The archiving session contains data that could not be reloaded into the
database during the reload. The archiving session is not accessible again until the reload program has been run
successfully.
Invalid Archiving Session : The archiving session has been marked as invalid.
Archiving Sessions to be Archived : The management data for the archiving session can be archived and deleted using
archiving object BC_ARCHIVE.
Interrupted : The archiving session was interrupted. This was done either manually by the user or because the interruption
parameters were reached (for example, the maximum runtime or a total number of data).
Note
The Goto menu offers access to the following:
Customizing
Job Overview: Offers an overview of all archiving jobs and the functions available for processing them. For more information
on the job overview, refer to Managing Jobs in the Job Overview .
Logs
Stored Files: Enables you to search for stored archive les according to various selection criteria
Retrieved les: Allows you to search for archive les that were retrieved into the le system, for a comprehensive analysis
for example. These archive les are no longer needed and can be deleted after they have been used. See Deleting Retrieved
Archive Files .
Database Tables
Infosystem
Statistics
See also:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 26/87
7/18/2020
from the storage system.
Features
Overview of Retrieved Archive Files
The program RSARCH_LIST_RETRIEVED returns a list of the retrieved archive les. You can restrict the selection to archiving
objects, archiving runs, archive les, and content repositories. The list contains the following information about the retrieved
archive les:
Generation date
To delete copies of stored archive les, select the relevant entries in the list and then choose Delete Retrieved File. The program
deletes the le on the operating system level and automatically adjusts the administration entries in the archive management.
You can then access the archive les again directly in the storage system.
Retrieved les are only deleted if the original archive les in the storage system have the status „ONLINE“ and if the access
check for the stored archive le was successful. The program also checks if the header information of the archive le match
the administration data in the archive management. If they do not match, the le is not deleted.
For les whose status in the storage system is not „ONLINE“, you can display additional information about the cause of the
problem by double-clicking on the Status eld or by selecting theError pushbutton - if there is no additional information, there
is no output.
Activities
You can execute the program RSARCH_LIST_RETRIEVED either from the screen ABAP: Execute Program (transaction SA38) or
from the archive management via Goto Retrieved Files .
Procedure
Choose Management .
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 27/87
7/18/2020
The Archive Management: Archiving Session Overview screen appears.
Transfer Files to ArchiveLink or Retrieve Files from ArchiveLink provided that a storage system is connected.
Spool list: Overview of the current spool requests for the archiving session
Customizing
Job Overview: Overview of all archiving jobs and the functions available for processing them. For more information on the
job overview, refer to Managing Jobs in the Job Overview .
Database Tables
Infosystem
Statistics
You can access more functions using the Goto menu item.
Procedure
1. Choose Management .
3. Place the cursor on the list of archiving sessions with the relevant status and expand the list.
5. Choose Choose .
A dialog box appears that gives Details of the selected archiving session.
See also:
Use
You can display detailed information for each archiving session.
Features
General Information
This area only appears if there are still active read or write jobs for the current session. To go to the job overview, choose Display
Job. Here you can release, cancel, or delete individual jobs.
For the current job, the following job activities can be indicated:
Changeable Settings
You can create a note and a long text for the session or mark it for archiving or as invalid. You should mark a session as invalid if,
for example. you discover after archiving that the data selection was incorrect. Invalid sessions are no longer offered for archive
selection.
You can use the report RSARCH_FLAG_SESSIONS to mark several archiving sessions
For archiving
As invalid
When selecting the archiving sessions, you can also differentiate between sessions whose archive les are in a storage system,
and sessions for which no accessible archive les exist.
You can use this report, for example, to mark all the archiving sessions created prior to a speci ed date for archiving or as invalid.
This can be useful, for example, as an initial run when archiving archive administration data using the archiving object
BC_ARCHIVE.
See also:
Procedure
1. Choose Management .
6. Choose Choose .
A dialog box appears that gives Details of the selected archive le.
See also:
Features
General Information
Archive le name
Size of archiving le in MB
Index status
Archiving Status
Write Complete: The archive les have been written, but the data objects in the database have not been (completely)
deleted.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 30/87
7/18/2020
Delete complete: Previously archived data objects have been deleted from the database.
Reloaded: Data objects in the archive le have been reloaded into the database.
Converted: The contents of the archive les have been written to a new archive le with conversion programs delivered by
SAP.
Saved: The content of the archive le is a backup copy of the data in the database.
Storage Status
Storage in Progress: The request to store the archive le in a storage system is running.
Retrieval in Progress: The request to reload the archive le in the le system has been issued.
Storage Incomplete: The archive le could not be completely stored in a storage system.
Index
Index Built: The index for this archive le was successfully built.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 31/87
7/18/2020
Accessibility Status
Changeable Settings
The dialog box can also contain the following changeable information:
Activities
Displaying Archive File Details
Integration
This function is a part of the Archive Administration (transaction SARA ) and requires the support of the write program.
Prerequisites
To interrupt an archiving session:
The archiving object must be registered in transaction AOBJ as interruptible , otherwise the Archive Development Kit
(ADK) is unable to inform the write program of the interruption request.
The archiving session must be run in production mode (not test mode) and be in process.
The delete phase must be able to start before the write phase has nished (setting in transaction AOBJ ).
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 32/87
7/18/2020
To continue an archiving session:
The session must have been interrupted within the context of the interrupution concept. Archiving sessions that were
interrupted for other reasons or that were terminated by archive management cannot be continued.
The delete phase must have completed for the data that was archivied up to the point of interruption, that is, the archiving
session must have the status completed .
Features
The write phase of an interruptible archiving session can be interrupted either implicitly (on account of the values that are
speci ed in Cross-Archiving Object Customizing )or explicitly (manually by an Application Programming Interface (API) ).
Activities
Explicitly Interrupting an Archiving Session
Prerequisites
The archiving object supports interruption.
In cross-archiving object Customizing, you have speci ed the running time in hours or the storage space in MB, or both.
Process Flow
1. Start the archiving session as usual.
2. For each data object that function module ARCHIVE_SAVE_OBJECT writes, the ADK determines whether it is necessary to
interrupt the archiving session.
The time that has elapsed since the write job was released.
The storage space – by adding the size of already closed archive les to the size of the archive le that is currently being
written.
3. As soon as one of these values is reached, the ADK triggers the interruption by raising the exception
TERMINATED_REQUESTED.
Note
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 33/87
7/18/2020
The write program must be able to process the exception and call function module ARCHIVE_CLOSE_FILE.
4. The ADK sets the incomplete status, as usual, but marks it additionally as interrupted .
Result
The archiving session was interrupted and can be continued later. To continue an interrupted archiving session, see Continuing an
Interrupted Archiving Session .
Prerequisites
The archiving object supports interruption.
You are in the Archive Administration: Initial Screen (transaction SARA ). You have entered the name of the archiving
object in the Object Name eld.
Alternatively, you can interrupt an archiving session from archive management. Choose Goto Interrupt .
Procedure
1. Choose Goto Interrupt.
Note
The selection of the archiving sessions is always cross-client if the archiving objects used are cross-client.
1. After you have selected the relevant archiving session, con rm your interruption request by choosing Execute .
Result
The archiving session is interrupted before the system starts writing the next data object. In archive management, the session is
marked as interrupted .
See also:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 34/87
7/18/2020
Implicitly Interrupting an Archiving Session
Prerequisites
The delete jobs have been run for the archive les in the archiving sessions that was interrupted (the archiving session has
the status completed ).
You are in the Archive Administration: Initial Screen (transaction SARA ). You have entered the name of the archiving
object in the Object Name eld.
Alternatively, you can continue an archiving session from archive management. Choose Goto Continue .
Procedure
1. Choose Goto Continue.
Note
The selection of the archiving sessions is always cross-client if the archiving objects used are cross-client.
1. Once you have maintained the Start Time and Spool Parameters , schedule the continuation job by choosing Execute .
Result
The archiving session is continued at the speci ed time – that is, the data objects that still have to be archived (in accordance with
your selection criteria) are written to archive les.
See also:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 35/87
7/18/2020
Process Flow
1. Database Actions Before Archiving
To determine whether or not you should archive data, consider the following questions:
If there are memory problems, can more memory be assigned to the table (MAXEXTENT, Tablespace)?
If the answer is yes, and if you will need to access the archived data and you have no performance problems, you should
consider enlarging the table.This procedure is described in the SAP NetWeaver AS document SAP Database Guide: Oracle
and Informix (BRSPACE for Oracle and SAPDBA for Informix) and the ABAP Dictionary , section Tablespaces and Extents
(database-independent parameterization, MaxDB).
How likely is it that you will need to access the archived data again? How often?
If you need to access the archived data often and there are no performance problems, assign more memory to the tables in
question (see above).
An appropriate index may exist, but may not be used. This depends on the database optimizer.
You can check which index is actually used to access data by Performing an SQL Trace . For more information on indexes, refer to
the SAP NetWeaver AS document ABAP Dictionary and search for appropriate sections using “index” as your search term.
Does the application perform a full table scan on the tables that contain the data to be archived?
If the answer is yes and the table is fragmented, it may help to reorganize the table before archiving so that new records
and any records that remain in the database are physically contiguous.
Caution
Reorganization takes a long time and may need to be repeated after archiving.
See also:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 36/87
7/18/2020
Oracle:
If, on the other hand, you archived data that is no longer needed in the system and the table is otherwise rarely changed,
you should reorganize.
If so, you should reorganize the tablespaces/database space of both the tables and the indices.
This procedure is described in the SAP NetWeaver AS document SAP Database Guide: Oracle and Informix (BRSPACE for
Oracle and SAPDB for Informix databases) and the ABAP Dictionary , section Tablespaces and Extents (database-
independent parameterization, MaxDB).
See also:
Oracle:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 37/87
7/18/2020
4. Perform a typical database access in the rst window (for example, an application transaction or the transaction SE16 ).
5. To turn the trace off, choose Trace Off and examine the SQL statement with List Trace .
6. Position the cursor on one of the PREPARE, OPEN, or REOPEN statements, and choose Explain SQL .
The system displays detail information. The index used is speci ed in the line beginning with Index .
Archive Selection
Use
For some archiving actions it is necessary to select individual archive les or whole archive sessions and make them available for
the relevant action. You do this in the Archive Selection screen, which is accessible from the initial screen of the relevant action.
Delete
Read
Build index
Reload
Postprocessing
Prerequisites
Depending on the action, there are four different criteria for whether archiving sessions and archive les are displayed in the
archive selection:
Criterion 1
Archive le status
Action Criterion
Archived or
or
Deleted
or
Saved
Build index Archive le has the status Deleted and the le is in the le system
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 38/87
7/18/2020
Postprocessing All archive les have status Deleted
Criterion 2
The archive le must contain at least one data object. If you have performed an archiving session and maintained the variants so
that no data objects were archived, the archive le is automatically deleted and no longer offered for selection.
Criterion 3
If a le is not accessible in the le system, the le is not offered for selection. A le is only offered for read if all the les in a session
are accessible.
While checking the accessibility of a le, the system performs a read access for each le. This check process can take a long time
if there are a lot of les. To optimize this process the access check can be de-/activated according to archive les in le system
and archive les in an optical archive in archiving object-speci c Customizing .
Criterion 4
For client-dependent archiving objects only the sessions for the current client are offered.
Criterion 5
An archiving session can only be reloaded if it has the status Complete or Archiving session is reloaded .
Features
In the Archive Selection screen, which you can access by choosing Archive Selection from the initial screen of the archiving
action, you can either select complete archive sessions or individual archive les.
Activities
Selecting Archive Files
– Delete
– Read
– Build index
– Reload
– Postprocessing
At least one of the archiving selection criteria (see Archive Selection ) is valid for this action.
Procedure
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 39/87
7/18/2020
1. Choose Archive Selection.
3. To select all les belonging to an archiving session, mark the appropriate checkbox.
4. As a con rmation, the small rectangle to the right of the checkbox is lled.
5. To select individual les belonging to an archiving session, expand the desired node, and mark the relevant checkbox.
6. As a con rmation, the small rectangle to the right of the checkbox is only half lled.
You can select all sessions or cancel the selection by choosing Select All or Deselect All .
The reload program can only ever process complete archiving sessions. For this reason, you cannot select individual les
for reloading.
Result
You have selected the archive le(s) for processing If you have also maintained the start date and spool parameters, you can
schedule the required archiving action.
See also:
Statistics
Use
When writing, deleting, reading, or reloading, statistical data on each archiving run (such as the storage space that has been freed
in the database by deletions or the number of deleted data objects) is automatically generated and is persistently stored in the
database The data archiving administrators can analyze these gures so that they can better plan future archiving projects and
request the necessary resources. Statistics also provided pertinent information on the role of data archiving in reducing the data
volume in the database.
Features
The statistics are collected by the Archive Development Kit (ADK). This occurs during the write, deleted, and reload processes. In
other archiving contexts, such preprocessing, postprocessing or conversion programs, no statistics are collected.
You can call the analysis transaction, either directly from the initial screen of Archive Administration (transaction SARA ), or from
the management part of Archive Administration: To do so, choose Statistics . Alternatively, you can use transaction
SAR_DA_STAT_ANALYSIS.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 40/87
7/18/2020
In addition to the analysis transaction, in which the statistics can be directly displayed, the statistics are also sent to the standard
log for the write, delete, read and reload programs, from where they can also be analyzed. As a prerequisite, the relevant
application must call the standard log. The standard log can be run in both test mode and production mode in the write program
only. In all other programs it can be run in production mode only. In other archiving contexts, such preprocessing, postprocessing
or conversion programs, no standard log is issued.
Selection
The statistical information is displayed on the basis of the selection data entered here. Selection data includes the client in which
the archiving session was run, the name of the archiving object , the date on which the archiving session data was run, and the
status of the archiving session. Multiple selection is also possible.
When selecting the archiving sessions for reporting, you can choose between archiving sessions with the following statuses:
Incomplete
Complete
Replaced
To select a status, enter the corresponding code. You can mark one indicator, or a combination of several.
The status used here is the same as the archiving status in the management part of Archive Administration. For more information,
see Details on the Archiving Session .
The display uses the SAP List Viewer functions (formerly the ABAP List Viewer ALV ). For a general description of the
comprehensive functions of the SAP List Viewer and how to use this tool, see SAP List Viewer (ALV) Grid Control (BC-SRV-ALV) .
Note
To make settings that affect how the statistics are displayed, choose Select Layout . Here, you can, for example, set the
column width, the column sequence, or column selection and then save the changed display as a user-speci c layout variant.
For a display that is easier to use, you can also hide columns that do not interest you.
In the full display (that is, if a user-layout has not been de ned), the following information is displayed:
Column Notes
Incomplete
Complete
Replaced
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 41/87
7/18/2020
Disk Space Space on the (hard) disk occupied by the archiving session
Header data Proportion of header data in the archiving session. In addition to the
actual data, an archive le also contains header data that classi es
and describes the business data. An archiving session’s header data
should be as small as possible.
Written Data Objects Number of data objects that were written to an incomplete archiving
session
Deleted Data Objects Number of data objects that were deleted for an complete archiving
session in the database
Reloaded Data Objects Number of data objects that were reloaded for a replaced archiving
session in the database
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 42/87
7/18/2020
Number of delete jobs Number of delete jobs that have run for an archiving session
Write job duration Duration of a write job for an archiving session in hours
Reload job duration Duration of a reload job for an archiving session in hours
Caution
To calculate database storage space, the system uses the length of the relevant object types as de ned in the ABAP Dictionary.
The value that is determined in this way can therefore only be seen as an approximation for the actual storage space in the
database.
For more information on the calculation of database storage space and the storage space categories, see How Is Database
Storage Space Calculated? .
Statistical information is stored persistently in database table ADMI_STATS and can be archived together with the Archive
Administration data using archiving object BC_ARCHIVE. For more information on BC_ARCHIVE, see Archiving Administration
(BC-CCM-ADK) .
Activities
Creating Statistics
See also:
Creating Statistics
Use
You can display statistical information that was automatically generated by the archiving programs (write, delete, read, reload).
Statistical information provides useful data on the individual archiving sessions for the database administrator.
Prerequisites
You are in the Archive Administration: Initial Screen (transaction SARA ). You have entered the name of the archiving object in the
Object Name eld.
Note
Alternatively, you can call the statistics function from the archive management in Archive Administration, or in transaction
SAR_DA_STAT_ANALYSIS. If you use this transaction, you must enter client and archiving object manually.
Procedure
1. Choose: Statistics .
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 43/87
7/18/2020
2. The Display Statistics for Data Archiving screen appears.
3. In the Selection area, enter the date on which the archiving session was carried out.
4. The client and archiving object are already entered by the system. You can, however, change these values.
5. In the Archiving Status area, mark the required status for the archiving sessions for which you want to call statistics.
Result
The statistics are displayed in the integrated ALV window (SAP List Viewer) in line with the entries made in the selection and
status parameters. For more information on the meaning of the column headings, see Statistics .
Logs
Use
This function provides a central access to the logs generated during data archiving. You can call this function from within Archive
Administration by choosing Logs or Goto Logs as well as from Archive Administration.
Features
The following logs are written when an archiving program, such as a preprocessing, write, or delete program, is executed, and can
be displayed in this function:
Job Overview
Job Log
Spool List
Application Log
Job overview, job log, and spool list are generated only by programs that are executed in the background. The application log can
be generated for programs that run in the background and in dialog mode.
Whether or not the log of the processed objects is to be updated in the application log, meaning that an application log is
generated, can be set in the variant maintenance of the corresponding program in the entry eld Log Output. See Variant
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 44/87
7/18/2020
Maintenance for Archiving Jobs.
Note that not all archiving objects offer the updating of an object log (entry eld Detailed Log in variant maintenance).
Log Display
In the log function, the left area of the screen shows the available logs, organized by archiving object, action (for example,
preprocessing, write, delete, and so on) date and time. The newest log is highlighted.
Under Process Control, you can see whether the process was started in the test or the productive mode. If the process control
could not be determined, the eld remains empty.
In the Archiving Session column, you can see the number of the archiving session that was generated by the corresponding
program (for write programs) or processed (for example by delete programs). If the session number could not be determined (for
example, in preprocessing programs), the eld remains empty. In case of reload programs, the Original Session column contains
the number of the reloaded session.
Due to technical reasons, the job overview, the job log, and the spool lists can only be displayed as fullscreen.
The Application Log is displayed directly on the right-hand side of the screen. It is used to inform the user about the results of
processing the business objects he or she has selected. For example, in the write program the user learns which business objects
have been archived and which could not be archived and why.
You use the two tab pages to choose between a summarized and a detailed application log (if available). If detailed information is
available for an object, you can display it by using the magnifying glass icon in the Detail column. Click on the question mark icon
in the Long Text column to view the message long text. If no application log was created, the relevant message text is displayed.
Possible reasons for this are, for example, that the relevant archiving program does not support this function or the user wanted
the log output in the list (spool) and not in the application log.
Note that, due to technical reasons, the Logs function cannot be used to display the logs of the archivability checks. You can
display these logs using the Check/Delete function; see Cross-Archiving-Object Check and Delete.
Activities
You can limit the display of the logs to one speci c archiving object by entering the object in the initial screen of Archive
Administration. If you want to access the logs of all archiving objects, you must leave this eld empty.
To display the log for a speci c log entry, select the entry in the log entries list and with a right mouse click choose the
corresponding log, for example, the job log or the application log.
You can delete selected application logs from the system by choosing Environment → Delete Application Logs.
See also:
Standard Log
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 45/87
7/18/2020
Standard Log
De nition
During the write, delete, read, or reload phases of archiving, the relevant program generates a log, either in the form of a standard
log or an application-speci c log. The latter is described in the archiving-object-speci c documentation.
Structure
Depending on the archiving action that was carried out, the standard log can contain statistical information about the archiving
session or archive le, as well as information about the processed business objects:
Tables
Indexes
This log provides information about the processing outcome of all business objects that were selected by a user. For the write
program, for example, you can see which business objects were archived and which were not archived and why.
First the summarized log is displayed, and if so requested on the selection screen of each archiving program (see Variant
Maintenance for Archiving Jobs ), a detailed log is displayed later. If detailed information is available for an object, you can display
this information by double clicking the desired object. If available, you can also display detail information for a message in the
same manner.
If the system did not generate an application log, a corresponding message appears. Possible reasons for this could be that the
archiving program in question does not support this function, or that you indicated that the log should be output into the
application log and not into the spool list.
You can call the standard log from the screen Archive Administration: Overview of Archiving Sessions . Choose Spool List. If you
indicated in the variant screen that the business-object-speci c information should be output in the application log, you can
display this information in Archive Administration by choosing Logs .
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 46/87
7/18/2020
You can use this function to schedule the cross-archiving-object check and delete program. The program allows you to perform an
archivability check or delete application data from the database for several archiving objects at the same time.
The program provides for a stricter separation of the time of the archivability check and the write phase. Furthermore, it allows you
to simply mark successfully archived data for deletion instead of actually deleting it from the database immediately. The cross-
object delete program then deletes this data at a later stage (see below).
Separating the archiving phases gives you greater control of the archiving process and enables the archiving process to be
optimally integrated in production operation. Time-consuming program runs such as the archivability check or the physical
deletion of data can be separated from the write phase and performed at times when the system workload is low. The concept is
therefore particularly suited to archiving large volumes of data.
Prerequisites
Note
The cross-object check and delete functions can be used for all archiving objects that support these functions. To check if this
is the case for a speci c archiving object of an application, see the documentation for that application, available in the SAP
Library.
Before you schedule one of these two programs you must activate and con gure the archiving objects you want to use in the
Customizing for Cross-Archiving-Object Programs view. See Check and Delete .
Features
Check
Here you schedule the cross-archiving-object check program , which you use to perform an archivability check for several
archiving objects. During the check, the program marks all business objects that ful ll the archivability criteria and can therefore
be removed from the database, with a speci c status.
Note
Different applications use different statuses to mark data for archiving. The statuses used can therefore differ from one
archiving object to another. In SAP Customer Relationship Management, for example, the status is Archivable and has the
technical IDI1100. For more information about whether a speci c archiving object uses this status and its name, see the
relevant documentation in the SAP Library.
A business object such as a CRM sales order can generally be considered archivable if it ful lls the following criteria:
It is closed (has the status Complete ) . This means that it is no longer changed in the application.
Recommendation
The residence timeshould be chosen in such a way that it only covers data that is very rarely accessed.
In addition to these general criteria, there may also be further object-dependent criteria to determine the archivability of business
objects. These are described in the documentation for the respective archiving object.
The business objects marked for archiving can be archived in a second step using an archiving object-speci c write program. An
object-speci c delete program or – if supported by the archiving object – a cross-object delete program (see below) then deletes
the data archived in this way.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 47/87
7/18/2020
Delete
Here you schedule the cross-object delete program. This selects the business objects that have been archived and marked for
deletion and deletes them from the database. If this function is not supported by any archiving object, the Delete pushbutton is
not displayed.
Note
The status used by the delete program for the selection of the data is application speci c and can therefore differ from one
archiving object to another. In SAP Customer Relationship Management, for example, the Deletable status has the technical ID
I1102 and the Archived status has the technical ID I1101. For more information about whether a speci c archiving object uses
this status and its name, see the relevant documentation in the SAP Library.
The Application Log function allows you to display the application log generated during the cross-archiving-object check and
delete processes. Please note that the Logs function that is available on the initial screen of Archive Administration cannot be
used to display the logs of the archivability check for technical reasons.
This program is based on transaction SLG1. However, in comparison to this transaction, it is easier to manage and offers a display
speci cally tailored to data archiving. It is therefore no longer necessary to specify a log object, for example. Instead, you can
simply enter the archiving object for which you want to display the application log.
Otherwise, the way the program is managed and the display is analyzed is the same as it is in transaction SLG1 and is described in
the documentation Display Logs .
Activities
You con gure the cross-archiving-object check and delete programs in Archive Administration by choosing Cross-Archiving-
Object Customizing Check and Delete . See Check and Delete .
You schedule the cross-archiving-object check and delete programs in Archive Administration by choosing Check/Delete . This
requires you to enter a variant in which you can make the following settings:
In the Server Group eld, enter the group of application servers where the processes are to run. If no server group is
available, you can create one using the Computing Center Management System (CCMS).
In the Number of Parallel Processes eld, enter the number of processes that are to be started in parallel.
Under Process Control, you determine whether the process is to run in test mode or productive mode. In test mode, the
check or deletion is only simulated. The database is not changed.
The mode selected (test or productive) in this variant overrides the settings in the Customizing variant. See Check and
Delete and Variant Maintenance for Archiving Jobs .
Both programs support parallel processing, meaning that it is possible to divide the data volume to be processed among
several work processes and application servers. This results in a signi cant increase in performance, but also leads to a
higher system workload due to the larger volume of tasks performed at the same time.
If you do not specify a server group, the parallel processing option cannot be used.
More information:
Delete Log
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 48/87
7/18/2020
Through the preselection it is possible to exclude irrelevant data objects from the actual check. The result is a list of relevant
objects that are transferred to the check program.
The check program then calls the check function module of the application to check the preselected data objects and if applicable,
set their status to Archivable . The list generated by the preselection module is grouped into packages for parallel processing.
To prevent an object from being checked again and again, for every checked object the program enters the date of the last
archivability check in a eld in the corresponding header table. This date and the resubmission date, which can be speci ed in
Customizing, are then used during the next program run to calculate whether the object can be checked again. Objects with the
Archivable status are not checked again.
For mySAP Customer Relationship Management archiving objects, the check function module initiates the sending of BDocs
(Business Documents), after the check status has been set. BDocs contain change information about the archived business
objects that are to be considered by the connected mobile systems.
The advantage of the background check is that it facilitates a more automated and therefore faster archiving of business objects.
This type of check, however, also means a higher use of resources. Generally, SAP development decides whether the archivability
check is executed via a cross-archiving-object check program or through an archiving-object-speci c preprocessing program. In
some cases both are offered.
Activities
The Customizing settings of the cross-archiving-object check program are made in Cross-Archiving-Object Customizing in the
Check and Delete function. The scheduling of the program takes place in Archive Administration via the Check/Delete function.
Customizing
Purpose
Customizing for Archiving enables you to set parameters that affect the archiving process.
Prerequisites
You have customizing authorization.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 49/87
7/18/2020
Organizational data is maintained.
Process Flow
Archiving Customizing can be divided into the following areas:
Cross-Archiving-Object Customizing
Archiving-Object-Speci c Customizing
Basis Customizing
Application-Speci c Customizing
Some applications provide the option of specifying archivability criteria for application data, to be used during data
archiving. Examples would be the residence time for sales documents or the account type life and document type life for
accounting documents. If it is possible to enter archivability criteria, this function appears in the Customizing of the
application in question and in Archiving Customizing of the corresponding archiving object.
Note
For more information on archiving-object-speci c and application-speci c Customizing, see the application-speci c
sections of the archiving documentation available in the SAP Library.
Archiving Procedure
Purpose
This process describes the basic procedures when performing an archiving session.
Process
When archiving data, ensure that you adhere to the detailed Archiving Checklist.
The system transfers the archiving object to the Archive Administration (transaction SARA) and branches automatically to the
corresponding initial screen, for example, Archive Administration: Create Archive File, if documents are to be archived. Here, you
can schedule the relevant job.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 50/87
7/18/2020
Call the Archive Administration transaction from system administration and enter the object name (see Archive Administration).
You can display all available archiving objects using input help.
Alternatively, you can go to the network graphic for an overview of the available archiving objects, their status, any dependencies,
and so on. From the network graphic, you can access the initial screen of Archive Administration by double-clicking an archiving
object. The archiving object that you select appears in the input eld Object Name.
The system manager usually calls data archiving when database tables have become too big. For more information, see System
Manager.
You choose one of the activities available for the archiving object, for example Write or Delete.
After you have chosen an action, the system access the screen in which you can schedule the job for the chosen function.
Choose Goto → Program Documentation to display background technical information about the program. Advice, is often also
offered, and provides general information about the use of the program. If Advice is available for the current program, an "i" icon
appears. You can also call Advice by choosing Goto → Advice.
In the selection screen, schedule your job by maintaining the variant, the start date and the spool parameters, and so on. For more
information, refer to Maintaining the Start Date and Maintaining Spool Parameters.
To prevent the program from terminating due to time-outs, sessions in the production mode should be scheduled to run in the
background. Programs should only be run online for test purposes.
If you use an external storage system, you can, in Archiving Object-Speci c Customizing, specify whether archive les are
transferred automatically to the storage system using the SAP Content Management Infrastructure. See Storing Archive Files and
Retrieving Stored Archive Files.
Archiving Checklist
Purpose
This checklist helps to ensure that you complete the necessary archiving steps and that you perform them in the correct order.
Process Flow
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 51/87
7/18/2020
Before the rst archiving session
Check the Basis Customizing settings. Are the logical le names maintained?
Check cross-archiving object Customizing. Is the Central Repository for storage maintained using the SAP Content Management
Infrastructure?
Are the deletion program variants maintained? (Note that the variants are client-speci c)
Ensure that the user department and system management coordinate their activities.
Check the network graphic to determine whether interdependencies exist (do other data objects have to be archived rst?)
If the deletion program is not to be run automatically, run the delete program manually.
If the archive les are not to be stored automatically by the Content Management Infrastructure, carry out the storage manually.
...
Note
Preprocessing programs prepare the data in the database for archiving, for example by marking records for archiving. Archive
les are not created. Preprocessing is not usually necessary.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 52/87
7/18/2020
Procedure
1. Choose Preprocessing .
2. The Archive Administration: Preprocessing screen appears in which you can schedule a background job for the program.
3. Choose a variant using input help. If there are no existing variants, choose Variants to maintain the desired variant.
4.
You can only use a variant in one job. Otherwise, data could be archived more than once. If you use a variant again, a dialog
box noti es of this. Choose Jobs with Selected Variant to access the overview of all jobs that already have variants
created. In the job overview, you can delete jobs using a speci c variant.
Note
The Archive Directory function enables you to establish how much free space there is in the current object-speci c archive
directory.
Result
You have now entered all the data needed for the background job. Choose Create Job to create the job.
Procedure
Choose Write.
This takes you to a screen, with which you can schedule a background job for the write program.
If archiving has already taken place for the archiving object and there are still unprocessed archive les for the archiving session, a
dialog box warns you of this. The same applies to interrupted archiving sessions.
If you archive the same data more than once you may run into problems. Therefore, some archiving objects require that data only
exists once in the archive, because duplicate data can lead to erroneous results in the totals of archived data, for example.
The job that is to be newly scheduled does not select the same data contained in the archive les that have not yet been processed
by the delete program.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 53/87
7/18/2020
You do not use variants with overlapping selection values.
If the variant that you have selected is already being used for other jobs, you can display these jobs by choosing Jobs with
Selected Variant , and if required, delete them.
Select a variant using input help. If there are no existing variants, choose Variants to maintain the required variant.For more
information see Variant Maintenance for Archiving Jobs
If Start Automatically is set for the delete program in Archiving-Object-Speci c Customizing and a production write program
variant is chosen, the delete program is also executed with its production variant. In other words, database deletions are made
after the archiving session.
Archive Directory enables you to establish how much free memory space there is in the current object-speci c archive directory.
However, this function is not suitable for HSM systems.
Result
You have now entered all the data needed for the background job. To create the job, choose Execute .
After all archive les have been completely written for a session, the system event SAP_ARCHIVING_WRITE_FINISHED is started
by ADK. This triggers subsequent processes, such as le backup using external tools.
Customizing
Job Overview: Offers an overview of all archiving jobs and the functions available for processing them. For more information on the
job overview, refer to Managing Jobs in the Job Overview .
Management
Database Tables
Infosystem
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 54/87
7/18/2020
You can view the logs for the started process from the initial screen of Archive Administration via Logs
Prerequisites
An external storage system is linked to your SAP System.
The content repository, to which you want to transfer the le, has been maintained in archiving object-speci c Customizing
for the archiving object.
You are in the Archive Administration of the archiving object for which you want to store archive les.
Procedure
1. Choose Storage System.
3. Using Archive Selection , choose the archive les you want to store and specify the Start Date .
The selected archive les will be transferred to the storage system at the speci ed time.
Note
The Storage System function is also available in Archive Administration.
See also:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 55/87
7/18/2020
Prerequisites
You are in Archive Administration of the archiving object from which you want to retrieve les.
The archive les for retrieval are accessible from Archive Administration.
Procedure
1. Choose Storage System.
3. Use Archive Selection, to select the archive les you want to retrieve and specify the Start Date for the retrieval.
Result
The selected archive les will be retrieved into the SAP system at the speci ed time for further processing.
See also:
Note
If the delete program is not called automatically after the read action has completed (see Delete Program Settings ),
you must wait until the archiving has completed. Only then can you schedule this step.
You then have the option of editing a whole archiving session with all archive les or of selecting individual archive les
for editing.
You are in the Archive Administration: Initial Screen (transaction SARA ). You have entered the name of the archiving
object in the Object Name eld.
Procedure
1. Choose Delete.
This takes you to a screen, in which you can schedule a background job.
Note
If you only want to run the delete program for test purposes (so that the data is not deleted from the database), choose
the option Test Mode .
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 56/87
7/18/2020
2. Choose Archive Selection.
You access a dialog box with the archiving sessions that are available for the archiving object. Usually, this is only the latest
session that was run.
3. If you want to edit a complete archiving session, select an archiving session and choose Continue . You return to the initial
screen.
If you want to edit one or several speci c archive les, expand the archiving session. Mark the required archive les and
choose Continue .
Result
You have now entered all the data needed for the background job. To create the job, choose Execute .
Note
When all the deletion jobs are completed for the run, the system event SAP_ARCHIVING_DELETE_FINISHED is started by the
ADK. This triggers subsequent processes, such as le backup using external tools.
Customizing
Job Overview: Offers an overview of all archiving jobs and the functions available for processing them.
Management
Database Tables
Infosystem
Note
You can view the logs for the started process from the initial screen of Archive Administration via Logs .
See also:
Archive Selection
Scheduling Postprocessing
Prerequisites
A postprocessing program exists for the archiving object (not all archiving objects have a postprocessing program).
Note
The postprocessing program processes the data after the archiving session in the database, for example, by deleting log data
that is no longer required or by updating statistics. For this, no access to the archive les is required. Postprocessing is not
usually necessary.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 57/87
7/18/2020
You are in the Archive Administration: Initial Screen (transaction SARA ). You have entered the name of the archiving
object in the Object Name eld.
Procedure
1. Select Postprocessing . This takes you to the Archive Administration: Postprocessing screen, in which you can schedule a
background job for the program.
2. Choose a variant using input help. If there are no existing variants, choose Variants to maintain the desired variant.
Note
The Archive Directory function enables you to establish how much free memory space there is in the current object-speci c
archive directory.
Result
You have now entered all the data needed for the background job. To create the job, choose Execute .
See also:
Archive Selection
Reloading Data
Prerequisites
Note
The reloading function is only meant for emergency cases, in which the wrong data was archived due to errors in Customizing
or during document selection. Therefore, data should only be reloaded immediately after the erroneous archiving session. If
you reload the data later you may end up with inconsistencies in your database.
You are in the Archive Administration; Initial Screen (transaction SARA ). You have entered the name of the archiving
object in the Object Name eld.
Archive administration has access to the archive les you want to reload.
Note
When reloading data, the system can only process complete archiving sessions. Archive les can be reloaded
completely or partially. In either case the archive le is marked as reloaded . Objects that were not reloaded are written
to a new archive le.
Procedure
1. Choose Goto Reload.
This takes you to the Archive Administration: Reload Archive screen, where you can schedule a background job.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 58/87
7/18/2020
A dialog box containing the archiving sessions that have already been processed by the delete program appears.
Result
You have now entered all the data needed for the background job. Choose Create Job to create the job.
See also:
Archive Selection
Building Indexes
Prerequisites
You are in the Archive Administration: Initial Screen (transaction SARA ). You have entered the name of the archiving object in the
Object Name eld.
Procedure
1. Choose Index.
5. Maintain the variant, the Archive Selection , the Start Date and the Spool Parameters .
6. Choose Execute .
See also:
Deleting Indexes
Deleting Indexes
Prerequisites
There is an index for deletion – otherwise the Delete Index function is not offered.
You are in the Archive Administration: Initial Screen (transaction SARA ). You have entered the name of the archiving
object in the Object Name eld.
Procedure
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 59/87
7/18/2020
1. Choose Index.
5. Maintain the variants, the Start Date and the Spool Parameters .
6. Choose Execute .
See also:
Building an Index
Prerequisites
The archive les to be read are accessible from Archive Administration.
There is at least one read program for the archiving object used.
You are in the Archive Administration: Initial Screen (transaction SARA ). You have entered the name of the archiving
object in the Object Name eld.
Procedure
Choose Read .
You access the screen Archive Administration: Start Read Program , where you can schedule your job.
In the Batch/Dialog eld, specify whether the analysis program is to run in the background (batch) or online (dialog).
In the Read Program eld, select a read or analysis program and choose Execute .
Depending on the selected archiving object, you access a speci c selection screen. For more information, refer to the
documentation on the speci c archiving object.
You access the dialog box Archive Management: Select Files to Read . For more information on le selection, refer to Archive
Selection .
Select the archive le that you want to read or analyze and con rm the selection by choosing Continue .
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 60/87
7/18/2020
Customizing
Job Overview: Offers an overview of all archiving jobs and the functions available for processing them. For more information
on the job overview, refer to Managing Jobs in the Job Overview .
Management
Database Tables
Infosystem
See also:
These variant settings can be made when you are scheduling jobs, using the Maintain function.
Features
Variant maintenance is always dependent on the corresponding archiving object. Therefore, the variants may vary considerably
depending on the archiving object. These differences, however, occur mainly in the section of the variant maintenance, in which
the data selection takes place. For more information about the variant maintenance for a speci c archiving object, see the
corresponding documentation for the archiving object in the SAP Library.
The rest of the variant maintenance is the same for most archiving objects. The following settings are possible (depending on the
type of program to be scheduled - write, delete, etc.).
Under Processing Options you can determine, whether the program is to run in the test or the production mode.
Test mode
In the test mode, the program is only simulated, meaning that no actual changes take place on the database (for example,
no data is written or deleted from the database).
Production mode
In this mode the data is physically processed, according to your selection criteria and if applicable, additional archiving-
object-speci c criteria. For example, during the delete phase data is actually removed from the database by the delete
program.
Detail log
In this eld you can decide whether a detail log ( Complete option) is to be generated in addition to the summarized log
during the execution of the program. The summarized log contains each message only once. For each message the number
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 61/87
7/18/2020
of affected objects is listed as well as an example of an object.
The detail log contains all processed objects including the corresponding messages. If you choose Without success
messages , no success messages are written to the detail log.
Recommendation
Detail logs should only be generated if you are processing a small number of objects, or for example in the test mode.
Otherwise the program may terminate, due to a memory over ow.
Log Output
Here you can determine, whether the log should be output into the List (spool for background programs), to the
application log , or to both.
The advantage of the application log output is that the log messages are displayed during the program runtime. (With
background programs this occurs every 30 minutes and with dialog programs, every 10 seconds). Logs that were output to
the list can only be viewed after the program has nished.
With the list output you have the option to automatically store the log in a storage system (see Spool Parameter under job
scheduling). Logs that were written to the application log can only be stored manually from within the display view.
Moreover, logs that were output to the list, are automatically removed when the corresponding background job is deleted.
Logs written to the application log must be deleted manually.
All logs can be displayed from within Archive Administration via Goto Logs . For more information see Logs .
Here you can enter a short text which helps you identify and better nd the archiving session in Archive Management .
See also:
Logs
Write
Delete
Read
Building/Deleting Indexes
Scheduling Postprocessing
Reload
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 62/87
7/18/2020
Features
The Start Date and Spool Parameters pushbuttons are followed by a traffic light icon and a note. The table lists the three
possibilities.
Activities
Maintaining Spool Parameters
Note
If the spool parameters are already maintained in the user-speci c print parameters, these values are automatically copied.
Otherwise, you only have to maintain the spool parameters once after entering the Archive Administration transaction. The
settings remain valid until you leave the Archive Administration transaction. The next time you enter the transaction, you will
have to enter the parameters again.
Procedure
Choose Spool Parameters .
The Background Print Parameters screen is displayed. Here, you can maintain the settings for the printing the archiving log.
First, maintain the general parameters for the printer, number of printouts, and number of pages.
Under Attributes , you can maintain a range of further attributes for spool requests. These attributes are not, however, applied to
all spool requests.
Result
The spool parameters for printing the archiving log are maintained. If you have also made your archive selection and entered the
start date, you can now schedule the required archiving action.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 63/87
7/18/2020
See also:
Note
The start data only needs to be maintained once when you execute the rst action. The settings remain valid until you leave the
Archive Administration transaction. The next time you enter the transaction, you will have to enter the parameters again.
Procedure
1. Choose the Start Date function .
2. The Start Time screen is displayed where you can maintain the start date values.
3. Choose one of the buttons for xing the desired start date, and maintain the parameters in the elds available.
5. Choose: Continue .
Result
The start date for the archiving action is maintained. If you have also made your archive selection and spool parameters, you can
now schedule the required archiving action.
See also:
System Manager
The system manager monitors the size and lling level of the database. For an Oracle or Informix database, you must rst examine
the Tablespaces or DBSpaces, respectively, and then the tables. You only need to check the tables for ADABAS/D or Microsoft
SQL Server.
When the system nds a table that must be archived, you must determine the archiving objects that contain data objects from
this table. These archiving objects are removed from the database by archiving.
See also:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 64/87
7/18/2020
Archiving Procedure
Note
In this documentation, the terms archive information structure, information structure and infostructure are used
synonymously.
Features
The archive information system includes the following components:
The ARC enables you to create archive information structures with the help of eld catalogs, and to ll the structures with data
from the archive. The archive information structure, which represents a kind of archive index, provides the basis for archive data
reporting.
Archive Explorer
The Archive Explorer enables fast searches of archived data. It does this by accessing the archive information structures that have
been created and stored in transparent database tables using the Archive Retrieval Con gurator. Furthermore, the Archive
Explorer allows direct accesses of individual data objects in the archive, which can then be displayed in both technical and
application-speci c views.
See also:
Note
Reloading archived data can lead to problems with the Archive Information System, as the available information structures are
not updated automatically. For more information, see Procedure for Reloaded Archives .
Process Flow
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 65/87
7/18/2020
1. Check available information structures
2. First you should check if an information structure already exists that you could use for reporting. You can then change this
information structure to suit your needs. If there is no information structure available that you can use, you can create a
new one.
4. You de ne the information structure to be used for archive reporting. In doing this, you specify which source elds from the
archive are copied to which elds in the information structure. You do this with the help of application-speci c eld
catalogs, which are included in the features of the Archive Information System.
An information structure is only ever valid for one archiving object. Several information structures can be de ned for one
archiving object. For more information, see Creating Information Structures
6. After you have created an information structure, you need to activate it. Alternatively you can use a standard information
structure, provided that it ts your requirements.
At this stage, the system generates a transparent database table and the reporting program. For more information, see
Activating Information Structures
8. During an archiving delete run all (activated) archive information structures belonging to an archiving object are lled
automatically. Also the Archive Development Kit (ADK) transfers all data records found in the archive to the AS interface.
From the de ned infostructure, the AS lters the data from the data records transferred and enters it in a transparent
database table together with an access key. This table serves as the basis for later searches.
As well as the automatic ll using the delete program, an information structure can also be lled later for already available
archives. This can be useful if you want to report data that was already archived or if you have changed the elds of an
information structure. For more information, see Filling Information Structures .
Use the Archive Explorer function to specify the archiving object and the information structure from which you want to report. In
the selection screen, where necessary, specify the display parameters for the archived data. Select a data object from the list of
data objects and, where possible, specify the view in which it is to be displayed. For more information, see Reporting Information
Structures .
Note
As well as standard reporting, there is also a special ad-hoc reporting function available that enables direct reporting from
archives. Here, there is no need to ll the archive information structure with data from the archive.
1. In the Archive Retrieval Con gurator (ARC) initial screen, choose Archive Info Structure Create .
2. This takes you to the dialog box Archive Retrieval Con gurator .
4. This should include the name of the new archive information structure, the name of the archiving object for which the
information structure is intended and a eld catalog, which you can select from a list using input help. In the eld on the
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 66/87
7/18/2020
right you can also enter a short text for the information structure
5. Choose Create .
6. This takes you to the dialog box Archive Retrieval Con gurator .
7. In the right frame, select all the elds that you want to include in the information structure.
9. The selected elds are included in the information structure in the left frame.
10. Save your entries Choose Return to go back to the ARC entry screen
See also:
Activate
To activate an information structure, choose Archive Information Structure Activate . The information structure is activated.
This structure will be lled automatically during the next delete phase for this archiving object.
You can also ll an activated information structure retrospectively for already existing archives, see Fill Information Structures .
Deactivate
To deactivate an information structure, choose Archive Information Structure Deactivate .
You have deactivated the information structure. This ensures that, this information structure will be ignored during the next delete
phase for the archiving object or if the archive information structure is lled retrospectively.
Note
You can make changes to an inactive information structure. However, if you make changes, be aware that you might also have
to regenerate the table. When doing this, you must delete the data in it. Finally, you must re ll the information structure.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 67/87
7/18/2020
You have already created and activated the information structure to be lled.
Note
An information structure can only be lled for archive les that have already been processed by the delete program.
Fill
1. Choose Status .
3. Enter the name of an archiving object for which you want to ll an information structure.
5. This takes you to the selection screen for archive information structures. To nd out which status information is displayed
there, see under Status per Info Structure .
When lling the info structure, you can also select individual archiving sessions. Choose Status per Archive .
6. Select the archive info structures that are to be lled with data from the archive.
7. Choose Fill Structures and enter your chosen processing type in the dialog box that appears. Con rm your entry. The
system will ll the information structure.
Note
Alternatively you can trigger the lling of an info structure from the Archive Retrieval Con gurator entry screen. Enter the
relevant information structure and then select Environment Fill Structur e. This takes you to the Status per Info Structure
screen.
Empty
1. Select the archive information structures or archiving sessions that you want to empty.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 68/87
7/18/2020
You have created and lled the information structure on which the reporting is based.
Procedure
1. Enter the name of the information structure. This must be active.
2. To select an information structure, you can also enter the name of an archiving object and use input help to display all
active information structures belonging to the object.
5. Enter selection criteria to establish which data you want the reporting to read.
7. Choose Execute .
8. The system displays the information structure list. It contains all of the data that the reporting program has read from the
elds contained in the information structure.
9. Double click on the entry you want to access the archive directly. If more than one view is de ned for this object, a dialog
appears with a choice of views.
10.
Depending on the archiving object, the dialog box offers a technical view or a business view or both. Several business views
are also possible.
12. This takes you to the table overview for the selected data object.
13. To display the table contents, click on the magnifying glass symbol for a table (similar to the display function in transaction
SE16 ).
Result
You are now at the lowest level of data, that is the eld level for the archived object. You can take the information directly from the
table.
See also:
Ad-Hoc Reporting
Prerequisite
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 69/87
7/18/2020
Archived data has been reloaded into your system.
You are in the status management function of the Archive Information System.
Procedure
Use the Status per Archive view .
Mark all of the archiving sessions whose les were reloaded (these sessions have the status Reloaded ).
Empty the information structures for the reloaded archive les via Empty Structures . You can usually do this online - scheduling
as a background job is not necessary.
Result
The reloaded les have now disappeared from the display. If new archive les have been created during the reload, proceed as
follows:
Mark the archiving sessions which were created by the reload (these sessions carry the remark " Created by reload from <session
> ").
Fill the information structures for the newly created archive les.
Note
If you approach this sequence in reverse order, in certain circumstances, the ll status of the newly created archive les can
appear as incorrect . If this occurs, empty all of the information structures for which the ll status is incorrect. Finally, repeat
the steps in the standard sequence.
Status
Use
The Status function allows you to check whether an information structure has already been lled. Using this information, you can
then ll or empty speci c information structures. Furthermore, you can check the actual indexing as well as the retention of
archive les.
Integration
You can branch from the entry screen of the Archive Information System as well as from the Archive Retrieval Con gurator
(choose Environment Fill Information Structures ) to the status screen.
Prerequisites
There must be at least one activated information structure for the archiving object.
Features
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 70/87
7/18/2020
Status per Archive
This function provides a list of the available archiving sessions and the information structures assigned to them. You can see from
the list for which archiving sessions the activated structures have been completely lled.
For more information on the data displayed, refer to Status per Archive .
This function provides a list of the statuses of the activated information structures. From this, you can see whether an information
structure has been completely lled with all archived data or data otherwise removed from the database. To see the information
displayed in detail, see Status per Info Structure .
Checking Indexing
This function checks the actual indexing of an archive le, that is, it checks whether data has been passed from the source elds
to the information structure. The affected archive les are marked accordingly.
You can call the Check Indexing function from the Extras menu.
This function checks the residence of an archive le, that is, it checks whether a le is accessible by the Archive Administration.
The affected archive les are marked accordingly. A le can only be used to ll an information structure if is accessible by the ADK.
Otherwise direct access to the data object is only possible via the Archive Explorer.
You can call the File Residence function from the Extras menu.
Activities
You can use Fill Structures to ll information structures with data from the archive.
Note
You can restrict the display to the archiving sessions by executing the "Compress" function. This gives you a better overview
when you want to select individual sessions. This function cannot be applied to individual archiving sessions.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 71/87
7/18/2020
The traffic light displays the following statuses:
GREEN: The system has already lled an information structure for this session.
YELLOW: The system has lled an information structure for this session, however all of the archive les could not be fully
reported
RED: The system has not yet lled an information structure (shown by "-") or has only partially lled an information
structure.
Complete
This archive le has been completely incorporated into the given archive information structure.
Errors
This archive le has not been completely incorporated into the given archive information structure.
This archive le was not selected when the archive information structure was lled.
The Complete status tells you that these archive les have been completely searched by source elds. However, it does not tell
you anything about the indexing of the les, that is, whether data has actually been moved from the source elds to the
information structure. You can check the indexing with the help of the Check Indexing function in the Extras menu.
See also:
Note
Choose Expand to display the complete list of status information. In addition to the build status for the information structure,
the name and status of the archive le are also displayed. This function cannot be applied to individual information structures.
GREEN: The system has fully reported all archiving sessions for this information structure.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 72/87
7/18/2020
YELLOW: The system cannot report, or can only partially report, some of the archiving sessions for this information
structure.
RED: The system has not yet reported any archiving sessions for this information structure (shown as "_").
Complete
This archive le was completely incorporated when the archive info structure was lled.
Errors
This archive le was not completely incorporated when the archive info structure was lled.
This archive le was not selected when the archive info structure was lled.
Note
The Complete status tells you that these archive les have been completely searched by source elds. However, it does not tell
you anything about the indexing of the les, that is, whether data has actually been moved from the source elds to the
information structure. You can check the indexing with the help of the Check Indexing function in the Extras menu.
See also:
Recommendation
Do not create your own database indexes for SAP infostructures, because this may create problems during the transport of the
infostructures, due to naming conventions. Instead, copy the relevant SAP infostructure into your own namespace and then
create an index for the new infostructure.
Integration
The data of the infostructure is saved in the database table, which is generated when the infostructure is activated, that is, directly
in the production system. Because production systems generally have protections against changes to cross-client objects
(settings in system change option), it is not possible to create database indexes for generated Archive Information System tables.
Instead, you can use the function described below, provided by the Archive Information System, to do so.
Features
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 73/87
7/18/2020
To create a database index for an infostructure simply de ne it. The index will then be generated when you activate its
infostructure in the database. The index de nition is stored in table AIND_STR8.
To use the function for the de nition of a database index from the Archive Information System choose
Customizing Goto Database Index .
You will see a table whose rows correspond to the elds of the index you want to de ne. The columns of the table have the
following meaning:
Column Meaning
Index Name Name under which the index is saved in the ABAP dictionary
Incorporate the elds you want into the table. If you need the eld MANDT (Client), then you must incorporate it manually.
Keep in mind the following considerations when you are working with database indexes for archive information structures:
Entries in table AIND_STR8 are transported automatically together with the infostructure. You only need to manually
trigger the transport if the infostructure itself is not to be transported.
If you delete an infostructure, the corresponding entries in table AIND_STR8 are also deleted.
If you remove a eld that is also part of an archive index from an infostructure, you must adapt table AIND_STR8 manually,
otherwise you will encounter problems when you try to activate the infostructure.
The system only recognizes index de nition entries if no database table exists yet for the infostructure. Therefore, you may
have to delete the database table of the infostructure. You can nd this function in the Archive Information System under
Customizing Utilities Delete Table.
Note
Creating or changing a database index for an already existing infostructure generally means long runtimes, because you
must deactivate the infostructure, delete the corresponding tables, activate the infostructure and then re ll it. You can
use program ASCORRINDX to make changes to database indexes without having to delete the corresponding
infostructures and ll them again. For more information about how to use this program see the corresponding program
documentation.
Example
The index de nition for the standard infostructure SAP_FI_DOC_002 contains the following rows:
LIF 10 MANDT
LIF 20 LIFNR
LIF 30 BUKRS
REF 10 MANDT
REF 20 AWKEY
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 74/87
7/18/2020
When you activate the infostructure a database table with two indexes is creates: The index LIF contains the elds MANDT, LIFNR,
and BUKRS (in that order), and the index REF contains the elds MANDT and AWKEY.
Partitioning
Use
The database tables that are generated when you create new archive information structures can grow large over time with the use
of these infostructures. As a result, the load on the database increases and the handling of the infostructures and tables becomes
more difficult. To combat this effect, you can use partitioning to divide up the infostructures in such a way that the system
distributes the data across several tables instead of writing it into one single table. This facilitates the administration of the
database, which is more difficult with large data volumes.
Features
Con guration of Partitioning
You can call partitioning from the Archive Retrieval Con gurator (transaction SARJ), by entering an infostructure and choosing
Goto Partitioning.
To con gure the partitioning function specify in the From Date eld the date as of which the system is supposed to write the
entries for the infostructure into a new table. The date refers to the creation date of the archiving session . In the Table Name
eld you can enter the name of the table that is to be generated. If you do not want to specify a name, the system automatically
generates a table name that corresponds to the infostructure. The tables are not generated until the rst data record is being
written, which would be either during the delete phase or during the subsequent lling of the infostructure.
Example
The following con guration data has been entered for partitioning:
01.01.0001
02.01.2005
04.14.2005
Based on these entries, the system would generate a separate database table for the following time periods: Until 01.31.2005,
02.01.2005 until 04.13.2005 and as of 04.14.2005 .
Caution
The con guration entries for partitioning logically belong to the infostructure. This means it is cross-client and is transported
and shipped together with the infostructure. Changing the con guration settings means a modi cation of the infostructure.
Therefore never change the partitioning of infostructures that are not part of your namespace. This particularly applies to the
SAP infostructures (those shipped by SAP) in customer systems. For more information see Copying Infostructure Data .
The partitioning concept is so exible that you do not have to specify that partitioning is to take place right at the beginning. With
large data volumes rebuilding the infostructure would be very resource intensive. It would make sense, therefore, to leave already
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 75/87
7/18/2020
built data as is. All accesses to the Archive Information System remain intact. This applies to the Archive Explorer and to
programmed accesses with the function module AS_API_READ or other interfaces to the Archive Information System.
In addition to partitioning you also have the option of prede ning a table or several tables for a speci c infostructure. This has the
following advantages:
The name of the prede ned table is determined at the time con guration takes place. You can choose a name from within
your namespace - a name that matches your requirements. If you do not specify a table name the system automatically
generates a name, which you cannot in uence.
The table you specify is generated in the development or Customizing system and is then transported to the production
system. This allows you to still make changes to the table, such as other technical settings or a different short text. In
addition, the table has the same name in all systems, which is not the case for the automatically generated AS tables
(ZARIX tables). This facilitates the administration of the system landscape.
When you specify a table in the con guration, the system checks whether this table already exists. If so, it checks whether the
table matches the infostructure and possibly rejects the entry you made. If the table does not yet exist, the system sends a
message asking whether or not you want to generate the table. If you say yes, the table is generated in such a way that it
corresponds to the infostructure.
Note
We recommend that you always let the system generate these tables. In this way you can be sure that the structure of the table
always matches the infostructure. We also recommend that for the object directory entry you enter the same data as that of
the infostructure. This is particularly important for package assignments.
Displaying Partitioning
You can use the display function to view the current settings of the partitioning of an infostructure. You can call up the display
function from within the status management of the Archive Information System by choosing Goto Partitioning or from within
the display of an infostructure in Customizing by choosing Technical Data .
This area on the display screen shows how partitioning was con gured.
Current Partitioning
This area shows which tables the system used during which time periods so far. For the time periods that were entered in
the con guration and that appear in this area, the system will use the assigned table also in the future. When the rst
record for the corresponding interval is written to the infostructure, the system sets the Change On date for that particular
table. The entry that does not have a change date contains the table that was generated when the infostructure was rst
activated (normal AS table). This table only serves as a reference structure for partitioned infostructures.
Tables that have the G (Table Generated) indicator, have been generated.
If an entry only has the R (Read only) indicator, it means that the Archive Information System does not write any more
entries to this table. It only reads from this table. This happens when you change partitioning, by, for example, grouping
several time periods together. If this is the case, the system sets the tables used up until then for the individual tables to
read only mode.
This area shows all the archive les that have entries in the infostructure. It lists the corresponding tables where the entries
can be found. This relationship is unique. A table always contains the complete set of entries of an archive le. The system
uses this information especially for the deletion of infostructure contents.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 76/87
7/18/2020
See also:
Similar to other standard objects in the SAP system, SAP infostructures cannot be changed without running the risk of a
modi cation. This also includes changes to the partitioning of SAP Infostructures. If, however, a SAP Infostructure contains data
that you want to copy, you must delete all that data and rebuild it, in order for the data to be copied to one of your own
infostructures. This procedure is possible, but, depending on the amount of data to be copied, can take very long.
A good alternative for your purpose is the function for copying infostructure data.
Prerequisites
The following prerequisites must be ful lled for you to be able to copy data from one infostructure to another:
The target infostructure already exists. The system only copies the data from source infostructure, not the de nitions of
the data.
Both infostructures are consistent. This applies to the de nition of the infostructures and for their ll status. The copying
of infostructure data is not a correction program.
The source infostructure may not have a prede ned table in the partition con guration. If the source infostructure lies
within your own namespace (such as a customer-speci c infostructure), you can remove this table rst from the
con guration of the source infostructure. After you have copied the data you can enter this table in the con guration of the
target infostructure.
The source infostructure contains all the elds of the target infostructure. In addition, all the key elds of the target
infostructure must also be key elds of the source infostructure. Note that the target infostructure may have fewer elds
than the source infostructure.
The eld types of the target infostructure correspond to the eld types of the source infostructure. This only applies to the
technical eld types. The data elements may be different, but not the eld length.
Recommendation
To avoid functional changes or problems when using the AS modules, we recommend that you ll the target
infostructure on the basis of the same eld catalog as that of the standard infostructure that you want to copy.
Features
You can call this function from within the Archive Retrieval Con gurator (transaction SARJ) using Utilities Copy Data or by
executing the program AS_DATA_MOVE.
To copy the data you need to enter a source and a target infostructure.
Executing this function only takes a few seconds. It may, however, take longer, if the infostructures contain several thousand
archive les, for example. The runtime, however, does not depend on the number of entries in the infostructures. After you have
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 77/87
7/18/2020
executed the program, the source infostructure is empty and inactive. The target infostructure contains the data of the source
infostructure and is active if it was active before, or if the source infostructure was active.
The data transfer does not actually take place through copying, but rather through a simple “move” of the tables. The system
simply assigns the tables of the source infostructure to the target infostructure by entering the tables of the source infostructure
into the current partitioning of the target infostructure and adjusting the status management. For this simple moving of data to
take place, however, the above prerequisites must be ful lled.
Example
You have an active SAP infostructure that already contains a large amount of data. This infostructure does not use partitioning and
does not have any prede ned tables. You want to copy the data of an SAP infostructure to one of your own infostructures. You
proceed as follows:
1. In the development or Customizing system (the system in which you make the developments and changes that are not
permitted in the production system) you create your own infostructure. The new infostructure should look exactly like the
infostructure to be copied.
2. You make the desired changes to the new infostructure, particularly the partitioning con guration , if you need to.
3. You transport the new infostructure into the production system and leave it as inactive.
Note
Make sure that during the next step no archiving session, delete session or lling of an infostructure takes place for the
archiving object in question.
4. In the production system you copy the data of the SAP infostructure to the new infostructure (see above).
As a result of this procedure the infostructures now have the following characteristics:
inactive. active.
deleted and without references to any tables. lled for those archive les for which the SAP infostructure was
built.
See also:
You want to change the infostructure in such a way that no more data is written to the current table. You also want to con gure
partitioning so that the data for the current year (2005), the past two years and the coming three years is written to separate
corresponding tables.
1. You con gure partitioning in the development or Customizing system (the system in which you make the developments
and changes that are not permitted in the production system) in the following manner:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 78/87
7/18/2020
01.01.0001
01.01.2003
01.01.2004
01.01.2005
01.01.2006
01.01.2007
01.01.2008
2. You transport these settings to the production system. It does not matter whether you enter the changes from the
con guration of partitioning in a transport request, or transport the infostructure from a different place. It is always the
complete de nition of the infostructure that is sent to the target system.
After the transport of the con guration settings into the production system, the partitioning of the infostructure looks as follows:
The infostructure is still not partitioned. Table ZARIXBC62 is the already very large database table for the infostructure. As long as
no new entries are included in the infostructure read accesses only take place from this table. The system generates and then lls
the new table only when the infostructure is lled again. You are certain that the system does not insert any data into the "old"
table, because the partitioning con guration covers the entire time available period. After another archiving session the
partitioning could look as follows:
The system has now generated the table ZARIXBC64 for the time period between 01.01.2005 and 12.31.2005 speci ed in the
partitioning con guration. In 2006 the system would create the next table. Read accesses occur from both tables.
You now have two options for proceeding: You either use partitioning only for new entries in the infostructure or you use
partitioning also for older entries.
In this case you do not need to do anything else. New entries are automatically written to the infostructure based on your
partitioning con guration. When you delete older data from the infostructure the system recognizes that these entries are
still in the old table ZARIXBC62. After the infostructure no longer serves any of the old les, table ZARIXBC62 is empty and
the partitioning is exactly as con gured.
The con guration information concerning the time periods before 2005 are not needed in this scenario.
If you want that partitioning corresponds exactly to the con guration settings also in the case of older les, you must
delete and rebuild the infostructure for all old sessions. In this case the system also uses the con guration entries for the
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 79/87
7/18/2020
periods before 2005 and generates the corresponding tables.
This procedure is not necessary and we do not recommend it. It is only necessary if you notice that the old table is too large
to handle, even when no new entries are added to it.
It is possible for you to combine both methods all at once, or implement them in partial steps.
You can remove empty tables after you have switched to partitioning by deactivating the infostructure and reactivating it
immediately. As a result the system deletes any extra tables that are not needed.
Features
Creating Archive Information Structure
With this function, you create a new information structure based on application-speci c eld catalogs. For more information, see
Creating Information Structures
With this, you can activate an available information structure so that during a subsequent archiving program delete phase of the
archiving object it automatically lls with data from the archive. For more information, see Activating Information Structures
This function allows you to ll an information structure with data from the available archives if the delete program has already
processed those archives. Normally this is not necessary because activated information structures are lled automatically during
the archiving program delete run For more information, see Filling Information Structures .
Field Catalogs
This function enables you to create new eld catalogs or change customer-speci c eld catalogs. For more information, see Field
Catalogs .
Additional ARC functions allow you to empty, deactivate, change, display, and delete archive information structures.
Field Catalogs
Use
With this function, you can create new eld catalogs and work with existing eld catalogs. Archiving information structures are
de ned on the basis of Field Catalogs .
Note
Standard eld catalogs, which are designed to cover most application requirements, are supplied with the Archive Information
System. You should therefore only create your own eld catalogs if the elds contained in the standard eld catalogs do not
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 80/87
7/18/2020
meet your requirements.
Caution
If a standard transaction of an application only allows for standard eld catalogs, customer speci c eld catalogs are not
recognized by the system.
Prerequisites
You need to have some expert knowledge to use this function. For example, you should be familiar with the data model of the
archiving object up to table level.
Features
Working With Existing Field Catalogs
You can change the de nition of the existing eld catalogs, for example, by adding further source elds or changing the allocation
of data- and key elds. When working with existing eld catalogs, you basically use t he same procedures you would use for
creating eld catalogs (see below).
Note
You must copy a standard eld catalog from the SAP namespace into your own namespace—that is, make it a customer-
speci c eld catalog—before you make any changes to it. All entries that begin with "SAP" belong to the SAP namespace and
may no be changed.
When you create a new eld catalog, you have the options of using elds from:
For information on procedures, see Creating Field Catalogs (One Source Table) .
To create eld catalogs from more than one source table, refer to the additional Notes , which you must observe.
Before you delete a eld catalog, you must rst delete all of the archive information structures that use this eld catalog. The
deletion of catalogs that are still being used is prevented by a deletability check. If you try to delete an SAP standard eld catalog,
the system issues a warning message to this effect.
2. Enter the name of the eld catalog (it must not begin with "SAP"), a description, and the archiving object for which the eld
catalog is intended.
In the elds File in Inde x and Offset in Index , you can specify how the name of the archiving le and the offset of the data object
are included in the information structure.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 81/87
7/18/2020
You can use the following values for the le names:
'D' - Includes the le name as a data eld. This is the minimum value. It causes the archive le name to be entered in the
data area of the structure table.
'K' - Includes the le name as a key eld. Select this value if the entries in the table would otherwise not be unique.
'D' - Includes the name of the offset as a data eld. This value is sufficient for a direct access to archived data.
'K' - Includes the name of the offset as a key eld. Select this value if the entries in the table would otherwise not be unique.
' ' - (No value) The offset is not included in the structure table. Choose this setting if you do not want direct access. This
allows you to reduce the size of the structure table.
Note
If you include the offset as a key eld, you must also include the archive le as a key eld, otherwise a clear distinction between
archived objects by the offset cannot be guaranteed. If an archived object, such as a sales document, has already been clearly
identi ed by the document number in the eld catalog key, then you do not need to include the offset in the key.
1. To carry out the eld assignment, rst select the catalog and then the Field Selection function in the navigation area.
Choose New Entries and enter the required data.
Note
The use of additional elds from other source tables requires a logical link between these elds by means of a join. Read the
relevant Notes .
You can choose the eld number and target eld. The name of the target eld appears in the generated table and this name
should have a meaning related to the reporting. The eld number describes its position in the information structure and
serves as a sort criteria.
The source eld must correspond with the actual eld name from the source table.
The source eld entered directly in the eld selection is also the reference eld. The data type of the relevant eld in the
information structure is derived from this reference eld.
The source table must be a table for which the archiving object in the information structure writes data to the archive.
These tables are maintained in the transaction AOBJ for the archiving objects.
If you mark a eld Key , that eld is included in the key to the structure table. A table's key elds must come at the
beginning, that is, the eld numbers of the key elds must be smaller than the eld numbers of the data elds.
Furthermore, the key elds must be connected, that is, no non-key elds are allowed to come between key elds.
The indicator Mandatory Key Field is only valid for key elds. If you mark this indicator, the data record will only be
included if the relevant eld in the source table is not empty.
Note
Tables that are processed by archiving classes can also be used as source tables. However, here, you must create a normed
read function module for each archiving class used.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 82/87
7/18/2020
Before you enter additional source elds, read the Notes . The term "additional source elds" has the following meaning:
For key elds, the system establishes eld similarities between the join conditions of the different source tables.
The system can ll data elds with data from different source tables in an archive information structure.
Prerequisites
You have created a eld catalog with at least one eld.
Procedure
1. Select the eld to which you want to add further source elds.
3. Choose New entries and enter the source table and the source eld that you want to link with the target eld.
Result
There is now a logical link (join) for key elds between the target eld and the additional source eld. When the system lls the
information structure, it moves the contents of the source elds assigned to the target eld to the data elds.
Field Catalog
A eld catalog includes all of the elds that can be selected when creating or maintaining an archive information structure.
You can use it to specify which elds are incorporated in the information structure, and whether they should be key elds or data
elds. You can decide whether key- or data elds should be incorporated into the info structure. The elds contained in a eld
catalog are always archiving object-speci c.
For each source table, there must be a unique combination of elds in the key of the information structure. This means that
there can never be two data records with the same value combination within one data object.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 83/87
7/18/2020
For each key eld, the system establishes the eld similarity between the reference eld and the additional source elds.
The system lls the information structure with archive data using an "outer join" based on the eld combination. The
system writes a record for the data object if at least one of the source tables contains data.
When the system is lling an information structure, an incorrectly de ned eld catalog can cause a program termination.
Read the long text in the error message Q6234. Here you can also nd a detailed example of how to create eld catalogs.
The source eld entered directly in the eld selection is also the reference eld. The data type of the relevant eld in the
information structure is derived from this reference eld. The elds entered under Additional Source Fields must be
compatible with this type of reference eld.
Archive Explorer
Use
The Archive Explorer enables you to search for archived data and allows individual objects to be displayed from the archive.
Integration
You can go to the Archive Explorer from the initial screen of the Archive Information System directly from the Archive Retrieval
Con gurator (choose Environment Archive Explorer .)
Prerequisites
Before you can use the Archive Explorer functions you must:
Features
The Archive Explorer uses the SAP List Viewer functions (formerly the ABAP List Viewer ALV ). The elds appear in the selection
screen according to how they are stored in the archive information structure.
In the selection screen, you can set which archived data should be read by the Archive Explorer reporting program. An object list
from the set information structure is displayed as a result of this selection, from which you can access single data objects in the
archive.
A standard viewer is available to display the data objects. Independent of the underlying archiving object, there are also
application-speci c viewers. The interface used can also be used for customer-speci c extensions.
Activities
Reporting Information Structures
See also:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 84/87
7/18/2020
Activating and Deactivating Information Structures
Reporting
Use
You can use this function to report from the archive information structure that was created for the selected archiving object.
Prerequisites
You have created and activated the archive information structure to be reported.
Features
Depending on the selection criteria entered in the selection screen, an object is displayed for the set archive information structure.
The standard functions of the SAP List Viewer (ALV, formerly ABAP List Viewer) is used to do this.
To display a data object, the system accesses the archive directly. If an application-speci c view is realized for the archiving object
used, a dialog box appears in which you can choose between the technical or the application-speci c presentation of the data
object.
Activities
Reporting Information Structures
See also:
Ad-Hoc Reporting
Ad-Hoc Reporting
Use
You can use this function to report from the archive information structure, which was created for the selected archiving object,
without this structure having to be lled rst .
Prerequisites
You have created and activated the archive information structure to be reported.
Features
Depending on the selection criteria entered in the selection screen, an object is displayed for the set archive information structure.
The standard functions of the SAP List Viewer (ALV, formerly ABAP List Viewer) is used to do this.
To display a data object, the system accesses the archive directly. If an application-speci c view is available for the archiving
object used, a dialog box appears in which you can choose between the technical or the application-speci c presentation of the
data object.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 85/87
7/18/2020
Unlike the standard reporting function, which requires that the archive information structure is lled with data from the archive,
the ad hoc reporting function reads directly from the archive. This enables you test archiving and report archived data that has not
yet been deleted from the database.
Activities
Reporting Information Structures
See also:
Reporting
Integration
You can operate the variant functions using the standard menu entries and function buttons of the SAP List Viewer (formerly
ABAP List Viewer, ALV ).
Features
You can create both user-speci c and common list variants. You can do this where lists are implemented using the SAP List
Viewer, that is, for displaying:
In the display of information structure data (the rst list in the Archive Explorer), list variants are stored per archive information
structure. A list variant is only valid for the archive information structure for which it was created and cannot be used for other
archive information structures.
Once an archive information structure has been changed (but has kept the same name), the accompanying list variants can still be
used. However, a list variant can be invalid is invalidated by the change, for example where the eld displayed in the list variant has
been deleted from the archive information structure. You should therefore modify the list variants accordingly. Example:
Example
When you display the archive information structure CO_ORDER_001 , use the list variant MY_VARIANT to specify that the
elds AUFNR (Order Number) and KTEXT (Short Text) are to be displayed. You cannot use these variants for the archive
information structure CO_ORDER_002 , even if both archive information structures have identical structures.
If the archive information structure CO_ORDER_001 is changed so that the elds AUFK and KTEXT no longer appear, then the
list variant MY_VARIANT can still be used, but this would be pointless as no elds will be displayed. You can therefore modify
these variants using the relevant function of the ALV to t the changed archive information structure.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 86/87
7/18/2020
For the archive information structure CO_ORDER_002 you can also create a list variant called MY_VARIANT ; however this is
not identical to the list variant of the same name for CO_ORDER_001 .
The technical view for single document display is used to display the table contents for the selected data objects. You can save list
variants per table here, which are independent of the archive information structure used. A list variant created for a speci c table
is only valid for this table and cannot be used for other tables. However, a list variant for a speci c table is always independent of
the archive information structure used. This is also valid where the archive information structure belongs to different archiving
objects. It therefore does not matter which archiving object was used to archive the table entries. Example:
Example
You are using the archiving objects SD_VBAK and PP_ORDER and the accompanying archive information structures
SD_VBAK_001 or PP_ORDER_001 . Both archiving objects contain the table COEP . To display the table COEP , save the list
variant MY_VARIANT in the Archive Explorer. In contrast to the above list variants, this variant is only assigned to the COEP
table.
You can then use MY_VARIANT to display the COEP table, and it does not matter whether you enter the Archive Explorer via
the archive information structure SD_VBAK_001 or PP_ORDER_001 .
Activities
In the Archive Explorer list display, you can access the list variant functions. Choose Settings Display Variants .
For more information on the use of list variants, see the documentation on the SAP List Viewer.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20471907&topics=4d8c7807910b154ee10000000a… 87/87