FileRelay
Documentation
Try our Sandbox

SAP ILM Store Setup

Use FileRelay as an SAP ILM store: SAP archiving (SARA) stores archive files in FileRelay over ILM WebDAV, with retention dates, legal holds and destruction enforced.

SAP ILM Store Setup

SAP Information Lifecycle Management (ILM) keeps archived data for as long as a retention rule says, holds it while a legal case needs it, and destroys it afterwards. SAP talks to its archive store over the ILM WebDAV store interface. FileRelay implements that interface, so SAP's data archiving (SARA) can store archive files in FileRelay, read them back, and destroy them when they expire, with FileRelay enforcing SAP's retention and legal holds.

FileRelay has been proven end to end with SAP's own ILM programs and jobs: archiving with live retention policies, parallel store jobs, production delete (SAP reads each file back from FileRelay before deleting the database rows), read and reload, legal holds set and removed through SAP, and SAP's destruction job refused for held or unexpired files. FileRelay is not listed as an SAP-certified ILM storage partner.

Supported SAP systems

System Notes
SAP S/4HANA (on-premise, Private Cloud / RISE) ILM business function active; XML DAS (local). Proven end to end on SAP's ABAP Platform trial
SAP ECC (ERP) with ILM Same ILM WebDAV interface; not yet tested on an ECC system

What FileRelay does

SAP operation FileRelay
Store an archive file (SARA Store Files) Stores the file, then delivers it to the content server bound to the store
Read, verify before delete, reload Serves the file (from the buffer, then from the content server), byte for byte
Retention (expiration_date, origin, ...) Keeps SAP's properties per folder and file; an expiry date can be extended, never shortened
Legal hold (case on a file or folder) Records the cases; anything under a hold cannot be destroyed
Destruction (ILM_DESTRUCTION) Destroys only expired files without a hold (otherwise SAP gets 423 held or 403 not expired); removes the content-server copy

Every destruction and every refused destruction is written to the audit log. A document page shows the file's retention, holds and destruction history.

Step 1: Create the store in FileRelay

  1. Go to Repositories → New and choose SAP ILM (WebDAV).
  2. Enter a store ID (for example ILM1). It becomes part of the endpoint URL.
  3. Enter the username and password SAP will log on with. They are stored encrypted. Every request needs them; there is no anonymous access.
  4. Note the endpoint the wizard shows: https://<your-connector-host>/<userSlug>/<workspaceSlug>/ILM/<storeId>
  5. Bind the store to a content-server destination (for example S3 or Azure Blob). SAP reads, verifies and destroys files after FileRelay has purged its own buffer, so the content server must serve reads.

Routing connections can also copy archive files elsewhere. Those copies are not destroyed when SAP destroys a file; the connection designer warns about this.

Step 2: Create the HTTP destination in SAP (SM59)

Create an HTTP connection to an external server (type G):

Field Value
Target host your connector host
Port your connector port (HTTPS recommended)
Path prefix /<userSlug>/<workspaceSlug>/ILM/<storeId>
Logon Basic authentication with the username and password from Step 1

Step 3: Define the ILM store in SAP (ILMSTOREADM)

In ILMSTOREADM, create a store on the SM59 destination from Step 2 and test it. SAP checks that FileRelay answers as an ILM store (WebDAV DAV header and ILM conformance level 2 or higher) and that the store root is empty when the store is defined.

Step 4: Point retention at the store (IRMPOL)

In IRMPOL, create or edit the retention policy for your ILM object (for example FLIGHT_BOOKINGS), set the archive store to the store from Step 3, and set the policy to Live. The ILM object must be active in the audit area that holds this policy (ILMARA).

Step 5: Archive (SARA)

Run SARA as usual: Write with the ILM action, Storage System → Store Files, then Delete in production mode. SAP stores each archive file in FileRelay and reads it back to verify it before it deletes the rows. The archive files appear in FileRelay's Documents with source SAP ILM.

Legal holds come from SAP's legal case management (ILM_LHM, propagated with ILM_LH_ADK). Destruction runs from ILM_DESTRUCTION: SAP sends a delete for every file in the worklist, and FileRelay refuses those that are held or not yet expired.

Sizing

Archive files are held in memory while they are stored and read. Size the connector for the number of parallel store jobs SAP runs (one per archive file, all at once) times your largest archive file. Files up to 512 MB are accepted by default; 200 MB has been proven through SAP's own client. Raise System settings → Max fetch bytes to at least your largest archive file, so SAP can read large files back from the content server.

Troubleshooting

Symptom Likely cause
ILMSTOREADM test fails Wrong SM59 path or credentials, or the store root in FileRelay is not empty
SAP's verify-before-delete or SARA read fails for large files Max fetch bytes lower than the archive file size
Destruction refused with 423 A legal hold applies to the file or a folder above it
Destruction refused with 403 The file's expiry date is not yet in the past (SAP destroys from the day after it expires)

See also