Installing SAP Content Server 7.5x (Linux) & Configuring GOS Storage for S/4HANA 2023+

End-to-end setup guide for SAP Content Server 7.5x on Linux with FileSystem driver (FSStorage), configuring repository SDB (/usr/sap/CKD/CSRepo, Security=0) in OAC0 and CSADMIN, and offloading Generic Object Services (GOS) attachments from database table SOFFCONT1 in S/4HANA.

1. Architectural Objective #

Offload Generic Object Services (GOS) attachments (PDFs, Office documents, scanned invoices from transactions FB03, ME23N, VA03, etc.) and DMS records from SAP HANA database table SOFFCONT1 to a dedicated SAP Content Server 7.5x (FileSystem driver / FSStorage) running on Linux.

  • Instance SID: CKD
  • Target Repository (ContRep): SDB
  • ContRep Description: SAP Content Server (DEV)
  • Physical Storage Root (ContRepRoot): /usr/sap/CKD/CSRepo
  • Benefits: Prevents database bloat in SAP HANA memory and disk data volumes, reduces storage costs, and minimizes backup/restore recovery times.

2. 5-Step Deployment Runbook #

Step 1: Install SAP Content Server 7.5x on Linux #

  1. Launch Software Provisioning Manager (SWPM): Generic Installation Options -> SAP Content Server -> Standalone Engines -> Content Server.
  2. Define instance SID as CKD (service user ckdadm, group sapsys).
  3. Select Storage Type: File System (default port 1090, HTTP script sapcs or ContentServer/ContentServer.dll).
  4. Verify that the Content Server daemon is actively responding via cURL:
    curl "http://localhost:1090/sapcs?serverInfo"
    # Expected output: serverStatus="running", serverTime, serverVersion="7.5x"
    

Step 2: Provision the OS-Level Storage Repository (ContRepRoot) #

Create the physical directory on Linux, configure ownership, and establish strict permissions:

# 1. Create the physical storage directory for repository SDB
mkdir -p /usr/sap/CKD/CSRepo

# 2. Assign ownership to the Content Server service user (ckdadm / sapsys)
chown -R ckdadm:sapsys /usr/sap/CKD/CSRepo

# 3. Grant full read/write/execute permissions to owner and group
chmod -R 770 /usr/sap/CKD/CSRepo

Step 3: Configure cs.cnf / ContentServer.ini Parameters #

Define the content repository configuration block in the Content Server configuration file (e.g. /usr/sap/CKD/SYS/exe/cs.cnf or /usr/sap/CKD/exe/ContentServer.ini):

[Repository-SDB]
ContentStorageName=SDB
Storage=ContentStorage.dll
ContentStorageHost=localhost
StorageDriver=FSStorage
ContRepRoot=/usr/sap/CKD/CSRepo
DefaultDocProt=
Security=0
ContRepDescription=SAP Content Server (DEV)

Restart the Content Server daemon or Apache service to reload the updated configuration:

# If running as systemd service:
systemctl restart apache2
# Or using the Content Server control script:
/usr/sap/CKD/SYS/exe/sapcs restart

3. SAP S/4HANA Configuration: OAC0 & CSADMIN #

Step 4.1: Define HTTP Content Repository (Transaction OAC0) #

  1. Launch transaction OAC0 in the S/4HANA system and switch to change mode.
  2. Click New Entries and maintain the repository parameters:
    • Content Rep.: SDB
    • Description: SAP Content Server (DEV)
    • DocArea: (leave blank or Archivelink)
    • Storage type: 06 HTTP content server
    • Version no.: 0046 (or 0047 for Content Server 7.5x)
    • HTTP server: localhost (or FQDN / IP of Content Server host)
    • Port number: 1090
    • HTTP Script: sapcs
    • Transfer directory: /usr/sap/CKD/CSRepo (optional)
  3. Click Save (Ctrl + S).

Step 4.2: Maintain & Verify Parameters in CSADMIN #

Open transaction CSADMIN and enter Content Repository SDB:

  1. Repository Tab:
    Click Create repository (or Change mode). Verify that the parameter table displays the exact specification:

    Parameter Name Value Description / Function
    ContentStorageName SDB Name of the storage database / repository pool
    Storage ContentStorage.dll Engine dynamic library handling storage operations
    ContentStorageHost localhost Host where storage engine resides
    StorageDriver FSStorage Native File System storage driver
    ContRepRoot /usr/sap/CKD/CSRepo Physical storage directory path on Linux OS
    DefaultDocProt (blank) Default document protection flag
    Security 0 Security mode (0 = Disabled / No digital signature, recommended for DEV)
    ContRepDescription SAP Content Server (DEV) Descriptive label of the content repository

    [!TIP]
    Why Security=0 in DEV: Setting Security=0 deactivates digital signature checks. In development landscapes, this eliminates authorization mismatches, expired certificate rejections, and communication errors during initial setup and testing. For QAS/PRD environments, set Security=1 and exchange certificates via the Certificates tab.

  2. Check Repository Status:

    • Status must display running with a green icon.
    • Click Server Status tab to confirm disk space availability on /usr/sap/CKD/CSRepo.

4. Rerouting GOS Storage Category & Migration #

Step 5: Update GOS Category (Transaction OACT) #

  1. Open transaction OACT and locate category SOFFDB (the default storage category for Generic Object Services).
  2. Change the Content Rep. field from SYSTEM to SDB.
  3. Click Save.

[!NOTE]
All new GOS attachments created in business transactions like FB03 (Finance), ME23N (Purchasing), and VA03 (Sales) will now stream directly to /usr/sap/CKD/CSRepo on the Linux filesystem instead of consuming memory in SAP HANA table SOFFCONT1.

Step 6: Migrate Legacy Attachments from HANA DB (Optional) #

To relocate historical attachments already stored in SOFFCONT1:

  1. Transaction OACT: Define temporary category SOFFDB_OLD pointing to Content Rep SYSTEM.
  2. Transaction SE38: Execute migration program RSIRPIRL (schedule in background via SM36 for high volumes):
    • Source Category: SOFFDB_OLD
    • Target Category: SOFFDB
  3. Reclaim HANA Disk Space: After migration completes, reclaim freed space from table SOFFCONT1:
    ALTER TABLE "SAPHANADB"."SOFFCONT1" REORGANIZE;
    

5. Verification & Acceptance Testing #

  1. Open transaction FB03 or ME23N → Click Services for Object (GOS) (top left corner icon) → Create... → Create Attachment → Upload a test PDF document.
  2. Confirm physical file creation on the Linux Content Server:
    ls -laR /usr/sap/CKD/CSRepo/
    # Verify newly written document files and directories
    
  3. Re-open the document from the Attachment List in SAP GUI to ensure seamless retrieval, rendering, and zero corruption.

Related notes in HANA & Database