SAP CMIS Setup
Make FileRelay SAP's CMIS 1.1 content repository: SM59 destination, OAC0 storage type CMIS, repository setup, and how SAP stores, reads and deletes documents. Preview.
SAP CMIS Setup
FileRelay can act as SAP's CMIS content repository. SAP's Knowledge Provider (KPro) talks to it over CMIS 1.1 (Browser binding): SAP stores documents in FileRelay, reads them back and deletes them, just as it does with an ArchiveLink content server. Every document SAP stores is routed through your connections like any other source.
In the FileRelay wizard this source type is called CMIS (repository type cmis-server).
Preview. Proven end to end with 10,000 documents from a real SAP system: SAP's repository setup, stores, byte-exact reads and deletes. Business-application flows beyond that (GOS attachments in the UI, DMS originals in CV01N, ArchiveLink over CMIS) are still being validated. Try it on a test system first.
Supported SAP systems
| System | Notes |
|---|---|
| SAP S/4HANA on-premise | OAC0 storage type CMIS Content Server (type 11) |
| SAP S/4HANA Cloud Private Edition (RISE) | Same setup, where your landscape allows OAC0 CMIS content repositories |
CMIS content repositories need a recent SAP_BASIS release; the storage type is missing on SAP_BASIS 751 and older. S/4HANA Cloud Public Edition is not a target for this source.
How SAP talks to FileRelay
SAP is the CMIS client; FileRelay is the repository. All calls go to the repository's Browser binding URL:
https://<connector-host>/{userSlug}/{workspaceSlug}/cmis/{repoId}/browser
| SAP action | CMIS operations | What FileRelay does |
|---|---|---|
| Repository setup | getRepositories, createType, createFolder |
Returns the repository (its ID and name equal your content repository ID), accepts SAP's sapbo:* types and base folders |
| Store | createDocument (multipart) |
Saves the file and its SAP properties, records a document, routes it |
| Find | query on SAP's secondary types |
Answers SAP's lookups by KPro document ID |
| Read | getObject, getContentStream |
Serves the bytes from the buffer, or from the repository's content-server destination after the buffer is purged |
| Delete | delete, deleteTree |
Applies the repository's delete policy |
Every call is authenticated with Basic auth (the SM59 user and password).
Prerequisites
- A FileRelay connector reachable from SAP over HTTPS (or HTTP for a lab system).
- An SAP user with access to SM59, OAC0, SCMIS_REPO_SETUP and, for TLS, STRUST.
- A content-server destination to bind to the repository, so SAP can read documents after FileRelay purges its buffer. See Content Server Bindings.
Step 1: Create the repository in FileRelay
- Go to Repositories → New Repository.
- Source type: pick CMIS.
- Details: enter the content repository ID you'll use in OAC0 (e.g.
ZM) and an optional description. - SAP access:
- Username and password — the user SAP signs in with. The same values go in the SM59 destination. The password is stored encrypted.
- When SAP deletes a document — Delete the stored copy (allow) or Refuse the delete (deny). See Deletes below.
- Click Create Repository.
The repository's details now show the exact values for SAP: the SM59 host, port and path prefix, and the OAC0 content repository settings.
Then bind a content-server destination to the repository on the Connections page, and add routing rules if documents should also go to other destinations.
Step 2: Create the SM59 destination
In SAP transaction SM59, create an HTTP connection to external server (type G):
| Field | Value |
|---|---|
| RFC Destination | e.g. FR_CMIS_ZM |
| Target Host | The connector host from the repository details |
| Service No. | The port, e.g. 443 |
| Path Prefix | /{userSlug}/{workspaceSlug}/cmis/ZM/browser (copy it from the repository details) |
| Logon & Security | Basic Authentication, with the username and password from step 1 |
| SSL | Active for HTTPS, with an SSL client PSE that trusts the connector's certificate chain (import it in STRUST) |
The path prefix must match exactly: SAP strips it from the URLs FileRelay returns and appends the rest.
Use Connection Test to check that SAP reaches the connector. An HTTP 401 means the user or password differs from the repository in FileRelay.
Step 3: Create the OAC0 content repository
In transaction OAC0, create a content repository:
| Field | Value |
|---|---|
| Content Rep. | ZM (must match the FileRelay repository ID) |
| Description | FileRelay CMIS |
| Storage type | CMIS Content Server (type 11) |
| CMIS version | 0011 (CMIS 1.1) |
| RFC Destination | The SM59 destination from step 2 |
Leave OAuth off; the destination authenticates with Basic auth. Save, then run the OAC0 connection test.
Step 4: Run the repository setup
Run transaction SCMIS_REPO_SETUP (report SCMIS_REPOSITORY_SETUP) for content repository ZM with the RFC destination, and choose to create the folders and read the repository information.
SAP creates its secondary types (sapbo:KnowledgeProvider, sapbo:basedocument, sapbo:ArchiveLink and others) and its base folders in FileRelay. A clean run ends without error messages. If it fails, check the log in SLG1 (object SCMIS_OUTBOUND, subobject CMISSETUP) and the calls in the Request Viewer.
Step 5: Point SAP at the repository
In transaction OACT, assign the storage categories that should use the repository, for example a category for GOS attachments (SOFFDB / SOFFHTTP) or a DMS storage category. For S/4HANA attachments, also check the attachment service storage category (ODATA_CV_ST_CAT).
Changing a standard category such as SOFFDB affects every attachment stored through it. Plan that change with your Basis team, and start on a test system.
Step 6: Test
- Store a document in SAP: attach a file to a business document, or use the content repository test.
- Open it again in SAP. The read goes to FileRelay and returns the original bytes.
- Delete it in SAP (if the delete policy allows it).
In FileRelay, the document appears under Documents with source type CMIS, and the calls appear in the Request Viewer.
How documents appear in FileRelay
- Documents — each file SAP stores becomes a document and is routed through the repository's connections. The document page has a CMIS object section with the object ID, name, folder path, version and SAP's properties (such as the KPro document ID).
- Reads — SAP reads after the buffer is purged are served from the bound content-server destination and recorded in the Retrieval Log (Documents → Retrieval Log). The destination's retrieval mode (strict or latest) applies, as for ArchiveLink. Without a binding, SAP gets an error once the buffer is purged.
- API — you can look up a document by SAP's KPro / ArchiveLink document ID through the Documents API.
Deletes
| Delete policy | What happens when SAP deletes |
|---|---|
| Allow (default) | The object is marked deleted and FileRelay removes the content-server copy. Copies already routed to other destinations are kept. |
| Deny | SAP gets a CMIS constraint error and nothing is deleted. |
CMIS has no retention or legal hold of its own. For retention rules, use the SAP ILM store.
Limits in the preview
- Browser binding only. SAP's CMIS client uses nothing else.
- No in-place edits or check-out. Content updates, check-out / check-in, ACLs, renditions and the change log are not supported.
- Basic auth only. OAuth and X.509 client certificates on the CMIS endpoint are not supported yet.
- Rate limit. Very high call rates per workspace get HTTP
429.
Troubleshooting
| Symptom | Likely cause |
|---|---|
401 in SM59, OAC0 or the repository setup |
Username or password differ between SM59 and the FileRelay repository |
404 on every call |
Path prefix doesn't match the repository details, or the repository is inactive |
| Repository setup reports errors | Check SLG1 (SCMIS_OUTBOUND / CMISSETUP) and the Request Viewer; the OAC0 ID must equal the FileRelay repository ID |
| Store works, read after some time fails | No content-server destination bound, or the stored copy failed a strict check |
| Delete fails with a constraint error | The repository's delete policy is Deny |
| SSL errors in SM59 | The connector's certificate chain isn't trusted in the SSL client PSE (STRUST) |