Key Points
- SAP SARA archiving runs every session in three steps: the write run creates archive files, storage moves them out, and the delete run clears rows.
- Store before delete, with the delete program reading from storage, keeps every row in the database until its archive file is safely in the repository.
- The delete run removes database rows, not archive files. Stored files should leave only when retention ends, through SAP ILM destruction or storage retention rules.
- SARA archives IDocs through the IDOC object, SAP BW generates an archiving object for each InfoProvider, and SAP CRM adds a separate archivability check.
- With SAP ILM switched on, the SARA write variant adds three actions: archiving against retention rules, snapshots of data, and destruction of expired records.
- Archon can act as the repository SARA stores archive files in, then keeps that data searchable on familiar ECC screens after the SAP system retires.
A global logistics company had 45 TB of data spread across SAP ECC, SAP BW and the SOFFCONT1 attachment table. An S/4HANA migration was coming. The database was too large to move as it was.
Part of the answer was SAP SARA archiving: running archiving objects through Archive Administration to move old records out of the live database. About 10 TB left that way.
Archiving objects alone could not finish the job. The case study puts the risk plainly: “Archiving the transactions without moving the content creates orphaned records. Moving the content without validated links creates an audit gap.”
Archon configured functional and technical archiving objects across ECC and BW, tested every run before production and removed about 37 TB with zero data loss. Every document link survived the move.
This guide explains the decisions that make a run safe:
- The order of the write, store and delete steps
- The settings that enforce that order
- What each session status means, and what to do about it
- Where the archive files end up, and who can read them in ten years
What Is SAP SARA Archiving?
SAP SARA archiving is data archiving run through transaction SARA, SAP’s Archive Administration. It moves records that are no longer needed day to day out of the database and into archive files. The records stay available for audits and reporting, but they no longer sit in production tables.
The role of SARA in SAP archiving is coordination. It does not define what an archiving object contains, and it does not store files itself. It starts and tracks the jobs that do the work:
- The archiving object defines which tables make up one business object, and which write, delete and read programs handle it. FI_DOCUMNT, for financial documents, is a common example.
- The Archive Development Kit (ADK) writes the archive files and reads them back. Standard archiving produces ADK files that are read back through SAP.
- The archiving session is one run of one archiving object. SARA tracks its status from the first write job to the last delete job.
SARA is the hands-on end of SAP archiving, where a retention decision turns into a scheduled job. Its initial screen offers only the actions the chosen object supports:
| Action | What It Runs | When You Use It |
|---|---|---|
| Preprocessing | Checks records and flags those ready for archiving | Before the write run, for objects that need a check first |
| Write | The write program, which creates archive files and deletes nothing | Every session |
| Delete | The delete program, which reads the archive files and removes the archived rows | After the write run, or after storage |
| Storage System | Moves archive files to a content repository | Before or after the delete run, depending on settings |
| Postprocessing | Follow-up work after deletion | For objects that need it |
| Read | The read program, which displays data from archive files | Checks and audits while SAP runs |
| Index | Fills or empties the index for archive files | When older files need to be searchable |
| Management | An overview of every session for the object, with its status | Monitoring and cleanup |
Every one of these actions runs inside the SAP system.
Why Archive Administration Still Matters in S/4HANA
S/4HANA did not retire SARA. On-premise S/4HANA systems still run data archiving through it. The volume problem it solves has also grown.
The Universal Journal shows why. In S/4HANA, the FI_DOCUMNT archiving object also covers the ACDOCA table, which holds every financial line item. That table grows fast. At one automotive supplier, ACDOCA reached 14.2 TB and used 68% of available HANA memory. It was growing by 3 to 4 TB a year.
The calendar adds pressure. SAP ends mainstream maintenance for Business Suite 7 in 2027, and optional extended maintenance runs to 2030 at extra cost. Plans for the end of ECC maintenance usually start with database size. In a brownfield conversion, whatever is still in the database gets converted.
S/4HANA Cloud Public Edition works differently. There, archiving variants for ILM objects are created and scheduled in the Manage Archiving Variants app. The concepts carry over: an archiving object, a variant, a write run, and a delete run.
For everyone else, SAP SARA archiving remains the main route out of the database. Good S/4HANA data archiving depends on getting each session right.
Every year of history left in ECC is a year the conversion has to carry.
SAP SARA Archiving Steps, From Write Run to Index
The SAP archiving steps are the same for every object. What changes is the object’s programs and settings. A typical session runs in eight steps:
- Check what must go first. An archiving object cannot run while its preceding objects still have data in the database. The network graphic in SARA shows which objects come first.
- Build and test a variant. Enter the archiving object, choose Write and create a variant, for example by company code and fiscal year. Run it in test mode first.
- Name the session. Fill in the archiving session note with the object, the organizational unit and the period. Five years later, that note is how someone finds the right file.
- Run the write job. The write program checks each record and copies the eligible ones into archive files. It deletes nothing.
- Store the files. With store before delete, the files move to the content repository before any row leaves the database.
- Run the delete job. The delete program reads each archive file and removes the matching rows. It can be scheduled from SARA, from an external job scheduler or with report RSARCHD.
- Index and count. Fill the infostructure so archived records can be found in SARI. Then compare record counts before and after, for example with TAANA.
- Monitor the jobs. SM37 shows each background job and its log. When a delete run finishes, the ADK raises the event SAP_ARCHIVING_DELETE_FINISHED, which can start follow-up jobs such as an index fill or a file backup.
Each run leaves a status behind. SAP defines eight archiving session statuses, and each one calls for a different response:
| Status | What It Means | What to Do Next |
|---|---|---|
| Errors | The write run stopped before it created the first archive file | Read the job log in SM37, fix the cause, then run the write again |
| Incomplete | The write run did not finish, or the delete run has not processed every file | Schedule the delete for the remaining files, or find out why the write stopped |
| Completed | Both the write and the delete phases finished | Confirm that storage and the index are done too |
| Interrupted | The write run was paused by a user or by interruption settings | Delete what was written, then continue the session |
| To be reloaded | The session is queued to go back into the database | Confirm it is a real emergency before the reload runs |
| Created during reload | Holds data that could not be reloaded | Find the cause before any further reload |
| Replaced | The session was reloaded or converted and has a new number | Work with the new session |
| Invalid | The session was marked as invalid | Keep it on record, or remove its management data with BC_ARCHIVE |
Incomplete is the status that causes the most quiet damage. Until the delete run finishes, the same records sit in the database and in the archive.
A session stuck at incomplete is data living in two places at once.
The Settings That Decide Whether Data Is Safe
A session behaves the way its settings tell it to. Each archiving object has its own technical settings, reached in SARA through Customizing. Six of them decide whether a run is safe:
| Setting | What It Controls | Safer Production Choice | Risk If It Is Wrong |
|---|---|---|---|
| Archive file size | When the write run starts a new file: a maximum size in MB, a maximum number of data objects, or both | 20 to 100 MB, the range SAP recommends | A file over 2 GB cannot be indexed, so single documents in it cannot be displayed |
| Delete program variants | Separate test and production variants for the delete run | Test Run cleared in the production variant and set in the test variant | A production variant left in test mode deletes nothing |
| Start delete automatically | Whether a delete job starts by itself after each file, or waits for an event | Start automatically after storage | Manual starts get forgotten, and sessions sit at incomplete |
| Storage system | The content repository, whether storage starts automatically, and the order of store and delete | A repository set, automatic storage, store before delete | Rows can leave the database before the file is safe |
| Delete Program Reads from Storage System | Whether the delete run reads the stored copy instead of the local file | Switched on | A failed transfer surfaces only later, when someone needs the file |
| Server selection | Which application servers run the archiving jobs | A server group sized for the load | Archiving jobs compete with daytime work |
File size cuts both ways. Each finished file can start its own delete job, so smaller files let writing and deleting overlap. Files that are too small start so many jobs that the whole system slows down.
The order of store and delete deserves a closer look. SAP describes both orders: delete after storage for data security or delete before storage for better performance.
In the performance order, the delete run removes rows while the archive file still sits on the application server. Until storage finishes, that file is the only copy of the data. In production, the time saved is small, and the risk is the whole session.
Store first and let the delete program read from the stored copy. If the transfer failed, the delete run finds out before any row is gone.
Where Archive Files Should Live
The write run always creates files on the application server first, under the logical file name and path defined in transaction FILE. What happens next is a storage decision, and it outlasts the session.
There are three main routes:
| Route | How Files Get There | Fits | Watch For |
|---|---|---|---|
| File system or HSM | Files stay on disk, or move into an HSM system through its file system | Small landscapes and short retention | Disk growth, backups, and paths spread across servers |
| Content repository | Stored through the Content Management Service, in a repository defined in OAC0 | Most production systems | Files are still read back through SAP |
| ILM store | Stored over WebDAV with SAP ILM, which passes retention rules and legal holds to the store | ILM-enabled objects with legal retention periods | Needs ILM-compliant storage |
Since release 4.6C, SAP stores data archive files through the Content Management Service rather than through ArchiveLink. Large estates can also use archive routing, which sends files to different content servers by rule.
The repository is not a backup target. Archiving and backup do different jobs: a backup restores a system, while an archive keeps records for retention and audit. That makes write-once protection worth having. Immutable storage stops anyone from changing an archived record during its retention period.
Cost matters over a decade of files too. Storage tiering keeps old archive files off expensive primary disks.
Archon can be configured as the content repository that SARA stores archive files in. The write and delete runs stay in SAP. The files land in an archive that does not need SAP to read them.
SARA writes files wherever you point it. Point it somewhere built to last.
Interruptions, Reloads and Deleting Archive Files
Long sessions rarely run in one clean pass. Three situations come up again and again.
Interrupting a write run. A large session can be paused and continued later, so it fits into nightly windows. The archiving object must be registered as interruptible in AOBJ, and the session must run in production mode. The pause comes from interruption settings in cross-archiving-object customizing, or from an administrator.
Before the session can continue, the delete run must finish for everything written so far. Sessions stopped any other way, or terminated in Archive Administration, cannot be continued.
Reloading archived data. SARA can reload a session into the database, but SAP treats reload as an emergency tool. It is meant for cases where the wrong data, or too much data, was archived. It should run straight after the faulty session, and only complete sessions can be reloaded. A late reload risks inconsistencies, because the database has moved on since the files were written.
If the goal is only to see archived data, read it instead. SARI and display transactions can show archived records once the matching infostructure is filled.
Deleting archive files. To delete archive files in SAP SARA, start with what the Delete action really does. It removes rows from the database, using the archive files as its source. The files themselves stay where they are.
Archive files leave in three other ways:
- Retrieved copies. Files pulled back from storage to the file system can be deleted with report RSARCH_LIST_RETRIEVED, or in SARA through Goto, then Retrieved Files. This only works while the original is still online in storage.
- Session records. Sessions no longer needed in ADK administration can be marked for deletion and removed with the archiving object BC_ARCHIVE.
- Stored files at the end of retention. Files in storage should go only once their retention period ends and no legal hold applies. SAP ILM data destruction or the storage system’s own retention rules handle that step.
Deleting files any other way, such as at operating system level, risks leaving archive administration out of step with what is actually stored. That breaks the trail defensible deletion depends on: proof of what was destroyed, when and why.
SARA Archiving for IDocs, SAP BW and SAP CRM
SAP SARA archiving is not only for ERP documents. Technical data, data warehouse objects and CRM transactions run through the same transaction, each with its own rules.
| System | Archiving Object | Extra Step Before Writing | Watch For |
|---|---|---|---|
| ERP documents | FI_DOCUMNT, SD_VBAK and many others | Preceding objects archived first | Archived documents stay hidden until the infostructure is filled |
| IDocs | IDOC | IDoc status marked as archivable in WE47 | IDocs in error left behind |
| SAP BW | One generated for each InfoProvider, plus BWREQARCH | Data archiving process created and activated | Semantically partitioned objects run through process chains |
| SAP CRM | CRM_ACT_ON, CRM_OPPT, CRM_SERORD, CA_BUPA and others | Check program sets the status Archivable | Objects that never reach Completed are never archivable |
IDoc Archiving in SARA
IDocs are often the first objects a team archives, because they rarely need business sign-off. The archiving object IDOC covers three tables: EDIDC for control records, EDID4 for data records and EDIDS for status records.
Three details decide whether an IDoc run works:
- Archivable status. An IDoc can only be archived if its current status is marked as archivable. Transaction WE47 shows and changes that setting for each status. IDocs in error often stay behind for this reason.
- The delete run. After the write run, the IDocs are still in the database. A separate delete job removes them, unless the object’s customizing starts it automatically.
- Retrieval. Infostructure SAP_IDOC_001 makes archived IDocs searchable in SARI. WE09 can also include archived IDocs in its selection.
The IDOC object uses write program RSEXARCA, delete program RSEXARCD and read program RSEXARCR.
SAP BW Archiving in SARA
SAP BW archives InfoProvider data through a data archiving process (DAP). For ADK-based archiving, BW creates an archiving object for each InfoProvider. SARA then runs it like any other object: build a variant, run the session in test mode, run it productively, then delete the archived data.
Two BW details differ:
- Semantically partitioned objects cannot write or delete through SARA. Process chains handle those runs, and SARA is used only to reload them.
- Locking. BW locks the InfoProvider only briefly before copying, then locks just the archived areas and the area being archived. After the session, the InfoProvider stays locked for other actions until the delete run finishes. Run the delete promptly.
BW also archives its own request administration data with the object BWREQARCH, through write, delete and reload programs in SARA. SAP recommends archiving only requests older than three months. Design choices such as nearline storage and time slices belong to the wider SAP BW archiving strategy.
SAP CRM Archiving in SARA
SAP CRM adds a check before the write run. A check program marks business objects that are closed and past their residence time with the status Archivable (I1100). Only those objects are written.
The delete program then removes objects with the status Archived (I1101) or Deletable (I1102). Cross-archiving-object check and delete programs, set up in Archive Administration, run these steps for several objects at once. That lets the heavy work run in quiet hours. Parallel processing needs a server group.
Common CRM objects include:
- CRM_ACT_ON for activities
- CRM_OPPT for opportunities
- CRM_SERORD for service orders
- CRM_LEADS for leads
- CRM_SACONT for sales contracts
Business partners use CA_BUPA. Their usage check runs from the Check/Delete action in SARA, and other systems learn about archived partners through a delete BDoc.
IDocs, BW requests and CRM activities pile up quietly. Clear them on a schedule.
What Changes When SAP ILM Is Switched On
Information lifecycle management changes what a SARA session can do. When SAP ILM is active for an archiving object, the write variant gains an ILM Actions section with three choices:
- Archiving. Data is archived while the retention rules from SAP ILM are evaluated.
- Snapshot. A copy of the data goes into archive files, and the data stays in the database.
- Data destruction. Data that meets the destruction criteria is destroyed.
The rules come from ILM policies, maintained in transaction IRMPOL. They set retention periods per object and condition, such as company code or document type. A legal hold blocks destruction while a matter is open.
Storage changes too. ILM-enabled archiving expects ILM-compliant storage, reached over WebDAV. SAP’s own ILM Database Store keeps archive files in an SAP database such as SAP IQ or SAP HANA, with retention rules and legal holds passed along.
| Aspect | Classic SARA Session | ILM-Enabled Session |
|---|---|---|
| Retention | No retention rules. Residence time only decides when data can leave. | Retention rules from ILM policies are evaluated during archiving |
| Actions in the write variant | Archiving only | Archiving, snapshot or data destruction |
| Storage | File system, HSM or content repository | ILM-compliant store over WebDAV |
| Legal holds | Not tracked by SARA | Block destruction of the data they cover |
| End of life | Deleting files is a manual decision outside SARA | Data destruction once retention expires and no hold applies |
Each retention rule should trace back to a written data retention policy. Otherwise, ILM enforces a period nobody can explain.
Retention rules work best when they travel with the archive.
Where Archiving Projects Stall
The transaction is dependable. The habits around it are where sessions go wrong:
- Sessions left at incomplete. Delete jobs that never ran leave records in both the database and the archive. Nobody notices until the database stops shrinking.
- Delete before store in production. It saves a little time and leaves the only copy on an application server.
- Too many parallel delete jobs. Selecting too many files at once starts more jobs than the system can absorb.
- Blank session notes. Years later, nobody can tell which session holds which company code or year.
- No record counts. Without counts before and after, nobody can show that the delete run removed exactly what the write run archived.
- Files scattered across file systems. Each server and path is one more place an auditor has to search.
- Files only SAP can read. Archive files written through the ADK are read back through SAP. The archive then depends on the very system it was meant to slim down.
The logistics company avoided these traps by design. It ran full tests before every production run. Its FI, CO, MM, SD and logistics teams signed off on retention. Every migrated document was checked against its business object, so no record was orphaned.
A stalled session is the worst of both worlds: the work is done, the savings are not.
Best Practices for SAP SARA Archiving
Each practice below applies general data archiving best practices to SAP archiving with SARA:
- Check the network graphic first. Archive preceding objects before the object you need.
- Test every variant. Run write and delete jobs in test mode in a quality system, then compare record counts.
- Write a useful session note. Object, organizational unit and period are enough. Good metadata for archiving starts with that one field.
- Store before you delete. Switch on “Delete Program Reads from Storage System” for every production object.
- Keep files between 20 and 100 MB. Stay well under 2 GB so every file can be indexed.
- Start delete jobs automatically. Sessions should not depend on someone remembering to run them.
- Close incomplete sessions quickly. Review the management view in SARA on a fixed schedule.
- Treat reload as an emergency tool. Read archived data instead of reloading it.
- Delete archive files only through SAP’s routes. Retrieved-file cleanup, BC_ARCHIVE and ILM destruction keep administration and storage in step.
- Choose long-term storage before the first productive run. Decide where the files live, and who will read them once SAP is gone.
Keeping Archive Files Usable After SAP Retires
SARA leaves behind archive files that are read through SAP. SARI, SARE and the display transactions all need the system that wrote them. When an SAP system decommissioning project switches that system off, those read paths stop.
Archon fits into SAP SARA archiving instead of replacing it. SAP’s own write and delete programs still run, because that is where SAP checks dependencies and keeps the database consistent. What changes is where the files go and who can read them. Archon’s SAP archiving solution adds:
- A repository built for the long term. Archon can be configured as the content repository SARA stores archive files in.
- Access to existing ADK archives. Archive content already written through SARA is converted into structured records. It stays readable after SAP is switched off, without an SAP license or SAP GUI.
- Familiar screens. Predefined ECC transaction screens keep archived data accessible after decommissioning.
- One search. Metadata-driven search and the Query Visualizer run across archived SAP and non-SAP data.
- Retention that outlasts SAP. Retention rules and legal holds stay in force in the archive.
Results from real SAP landscapes:
| Organization | Starting Point | Result |
|---|---|---|
| Global logistics company | 45 TB across ECC, BW and SOFFCONT1 | About 37 TB removed, about 10 TB of it through archiving objects, zero data loss |
| Automotive supplier | ACDOCA at 14.2 TB, using 68% of HANA memory | 12.1 TB archived, 52% less HANA memory, 73% faster close queries |
| Global apparel and accessories enterprise | Historical data from acquisitions and divestitures across FI and CO, MM, SD and PP | 40% smaller database, $1.3M saved in storage, 65% less audit preparation time |
These results cover whole archiving programs, not SARA alone.
Teams weighing SAP ADK against Archon for ECC decommissioning can settle it with one test. Once SAP is off, can anyone still open last year’s archive files?
Every SARA session ends with a status. The archive it leaves behind has to last far longer than the session did.
SARA writes the file. The real question is who can still read it in ten years. See how Archon stores SARA archive files and keeps archived SAP data searchable on familiar ECC screens, with or without SAP running.