What is SAP ILM?

SAP ILM is the SAP solution that controls how long business data is kept, when it is destroyed and when it is frozen under legal hold.

SAP ILM (Information Lifecycle Management) is the SAP solution that controls how long business data is kept, when it may be destroyed and when it must be frozen under legal hold. It extends standard SAP data archiving with retention policies, ILM-certified storage and a Retention Warehouse for retired systems.

How SAP ILM works

SAP ILM is built on the Archive Development Kit. Each ILM-enabled archiving object has a matching ILM object that carries the retention policies. At write time, the system evaluates the policy, stamps each record with an expiration date and any legal hold, and stores the file in an ILM-aware repository.

The moving parts are:

  • Business function ILM, activated in SFW5, which unlocks ILM transactions and ILM-enabled write programs.
  • Policies in IRMPOL, split into residence rules (how long data stays in the database) and retention rules (how long it must exist at all).
  • Audit areas, which group ILM objects by legal purpose.
  • Legal hold management in ILM_LHM, which blocks destruction of records linked to a case.
  • Destruction through ILM_DESTRUCTION once retention has expired and no hold applies.
  • ILM-certified storage over the BC-ILM WebDAV interface, or the ILM Store.

How to configure SAP ILM retention policies

  1. Activate business function ILM in SFW5, in a sandbox first.
  2. Confirm the audit areas you need and assign the ILM objects you plan to govern.
  3. Open IRMPOL, pick the policy category (Residence Rules or Retention Rules) and the ILM object.
  4. Create a policy, add rule conditions such as company code or document type, then set time reference, offset and minimum and maximum retention.
  5. Set the policy status to Live. Draft policies are ignored at runtime.
  6. Link an ILM-certified content repository to the archiving object in SARA customizing.
  7. Run the ILM-enabled write program in SARA and choose the ILM action (Archiving, Snapshot or Data Destruction).
  8. Create legal hold cases in ILM_LHM and schedule ILM_DESTRUCTION for expired data.

Users need S_ARCHIVE plus ILM authorizations. Schedule large write runs outside posting windows.

Key parameters

Parameter or field What it controls Recommended setting or note
Policy category Residence versus retention rules Define retention first; residence must never exceed it
Time reference Event that starts the retention clock Match the legal trigger, such as end of fiscal year
Minimum retention Earliest permitted destruction Set to the longest applicable statute
Maximum retention Latest permitted destruction Required where privacy law limits storage time
Policy status Whether the rule is applied Only Live policies are evaluated
Object Purpose When to use it Status
SARA (classic archiving) Writes and deletes archive files Volume reduction without retention rules Current
SAP ILM Retention, legal hold, destruction Regulated or personal data Current
ILM Retention Warehouse Keeps data from retired systems System decommissioning Current

Common issues and troubleshooting

Why does IRMPOL not list my archiving object?

Either business function ILM is inactive, the object has no ILM object, or the ILM object is not assigned to the audit area you selected. Check SFW5 first, then the audit area assignment.

Why is ILM_DESTRUCTION not deleting expired data?

A legal hold may still be active, or the time reference pushes the expiration date later than expected. Files on a non-ILM repository also carry no expiration metadata, so they cannot be destroyed through ILM.

SAP ILM in S/4HANA migration and decommissioning

When a system is retired, the business data is only half the record. ILM metadata (expiration dates, legal holds, destruction logs) proves data was kept and destroyed lawfully, so it must survive retirement.

If it is dropped, records under legal hold can be destroyed by a later cleanup, and personal data can outlive its maximum retention, which conflicts with GDPR Article 5(1)(e). Carry policies and holds into the target, whether S/4HANA ILM, the Retention Warehouse or an independent archive. See how Archon approaches SAP ILM decommissioning.

  • Export every Live policy from IRMPOL with its conditions.
  • List open legal hold cases in ILM_LHM and their linked objects.
  • Confirm the target can enforce the same retention and holds.
  • Keep destruction logs for records destroyed before retirement.

Frequently asked questions

What is SAP ILM used for?

SAP ILM is used to keep business data for exactly as long as law and policy require, then destroy it in a controlled way. It adds retention rules, legal holds and destruction to standard archiving, and supports the decommissioning of legacy SAP and non-SAP systems through the Retention Warehouse.

Is SAP ILM the same as SAP data archiving?

No. Classic archiving moves data out of the database to reduce volume. SAP ILM adds lifecycle control: it calculates when each record may be destroyed, blocks destruction under legal hold and writes to certified storage. Archiving moves the cargo; ILM decides how long it is kept.

What is the difference between residence and retention rules?

Residence rules set how long data must stay in the online database before it can be archived. Retention rules set the total time the data must exist anywhere, online or archived, before destruction is allowed. Residence periods are always shorter than or equal to retention periods.

Is SAP ILM available in S/4HANA?

Yes. SAP ILM is available in SAP S/4HANA, and SAP ties its data protection functions, such as blocking and deleting personal data, closely to ILM. Policies and legal holds from ECC do not move automatically and must be recreated or migrated during conversion.

Further reading

See Also

Ready to put this into practice?

See how Archon helps organizations with compliant archiving and legacy decommissioning.

Talk to us →

Archon © 2026, All rights reserved.