Installing SAP Content Server 7.5x (Linux) & Configuring GOS Storage for S/4HANA 2023+
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 #
- Launch Software Provisioning Manager (SWPM):
Generic Installation Options -> SAP Content Server -> Standalone Engines -> Content Server. - Define instance SID as
CKD(service userckdadm, groupsapsys). - Select Storage Type: File System (default port
1090, HTTP scriptsapcsorContentServer/ContentServer.dll). - 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) #
- Launch transaction
OAC0in the S/4HANA system and switch to change mode. - 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(or0047for 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)
- Content Rep.:
- Click Save (
Ctrl + S).
Step 4.2: Maintain & Verify Parameters in CSADMIN #
Open transaction CSADMIN and enter Content Repository SDB:
Repository Tab:
Click Create repository (or Change mode). Verify that the parameter table displays the exact specification:Parameter Name Value Description / Function ContentStorageName SDBName of the storage database / repository pool Storage ContentStorage.dllEngine dynamic library handling storage operations ContentStorageHost localhostHost where storage engine resides StorageDriver FSStorageNative File System storage driver ContRepRoot /usr/sap/CKD/CSRepoPhysical storage directory path on Linux OS DefaultDocProt (blank) Default document protection flag Security 0Security mode (0 = Disabled / No digital signature, recommended for DEV) ContRepDescription SAP Content Server (DEV)Descriptive label of the content repository [!TIP]
WhySecurity=0in DEV: SettingSecurity=0deactivates 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, setSecurity=1and exchange certificates via the Certificates tab.Check Repository Status:
- Status must display
runningwith a green icon. - Click Server Status tab to confirm disk space availability on
/usr/sap/CKD/CSRepo.
- Status must display
4. Rerouting GOS Storage Category & Migration #
Step 5: Update GOS Category (Transaction OACT) #
- Open transaction
OACTand locate categorySOFFDB(the default storage category for Generic Object Services). - Change the Content Rep. field from
SYSTEMtoSDB. - Click Save.
[!NOTE]
All new GOS attachments created in business transactions likeFB03(Finance),ME23N(Purchasing), andVA03(Sales) will now stream directly to/usr/sap/CKD/CSRepoon the Linux filesystem instead of consuming memory in SAP HANA tableSOFFCONT1.
Step 6: Migrate Legacy Attachments from HANA DB (Optional) #
To relocate historical attachments already stored in SOFFCONT1:
- Transaction OACT: Define temporary category
SOFFDB_OLDpointing to Content RepSYSTEM. - Transaction SE38: Execute migration program
RSIRPIRL(schedule in background viaSM36for high volumes):- Source Category:
SOFFDB_OLD - Target Category:
SOFFDB
- Source Category:
- Reclaim HANA Disk Space: After migration completes, reclaim freed space from table
SOFFCONT1:ALTER TABLE "SAPHANADB"."SOFFCONT1" REORGANIZE;
5. Verification & Acceptance Testing #
- Open transaction
FB03orME23N→ Click Services for Object (GOS) (top left corner icon) → Create... → Create Attachment → Upload a test PDF document. - Confirm physical file creation on the Linux Content Server:
ls -laR /usr/sap/CKD/CSRepo/ # Verify newly written document files and directories - Re-open the document from the Attachment List in SAP GUI to ensure seamless retrieval, rendering, and zero corruption.