cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Attachments in SAP S/4HANA Cloud Public Edition

kaiwen_
Product and Topic Expert
Product and Topic Expert
0 Likes
266

Hello!

I have a question regarding attachments that I am struggling to find documentation for. When I upload an attachment to a business object in S/4HANA Cloud Public Edition (e.g. a PDF of a supplier invoice), where is this attachment stored from a technical perspective? Is there a repository directly within S/4HANA or does it use another service such as the SAP Document Management Service (DMS) on BTP?

What role does the Attachment Service play in this process?

Best regards,
Kaiwen

Accepted Solutions (1)

Accepted Solutions (1)

dawid90
Active Participant

Dear @kaiwen_,

In Public Cloud when you add an attachment for example a PDF to a supplier invoice the binary file is stored in an attachment repository, while SAP stores the business-object linkage/metadata (who/when, BO key, filename/MIME type, repository reference, etc.). SAP’s docs explicitly describe the model as “content + metadata stored in the repository” and discuss repository options for attachment storage

More details below:

https://help.sap.com/docs/SAP_S4HANA_CLOUD/a630d57fc5004c6383e7a81efee7a8bb/9f2f1c9e067645418a203752...

1. Standard repository

  • SAP documentation for Public Cloud states that the default repository for unstructured content is Document Service in SAP BTP
  • Practically the repository is not inside your Public Cloud database in the way business tables are it’s a separate content store managed/provisioned alongside your Public Cloud tenant

More details below:

dawid90_0-1764696861383.png

 

https://help.sap.com/docs/SAP_S4HANA_CLOUD/a630d57fc5004c6383e7a81efee7a8bb/fe051b8031274f919dae9415...

2. Third party repository

  • SAP supports integrating an external repository via CMIS and the customer-managed communication scenario SAP_COM_0597
  • SAP Integrating SAP Document Management guidance also references activating the needed communication arrangements including SAP_COM_0597 for SAP BTP Document Management connectivity

More details below:

https://help.sap.com/docs/SAP_S4HANA_CLOUD/a630d57fc5004c6383e7a81efee7a8bb/fe051b8031274f919dae9415...

https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/03414f87d6e14dff9450e20e...

Attachment Service as the standard attachment handling layer used by Fiori apps:

  • It’s a reusable Fiori/UI component + backend services that lets apps upload, list, download, delete and in Advanced Attachment Service scenarios, things like check-in/check-out/versioning
  • It orchestrates storage it links the attachment to the business object and calls the repository typically via CMIS to store/retrieve the file content. SAP notes that the attachment service processing leverages the DMS and GOS frameworks and interacts with repositories via CMIS
  • It also enforces some technical constraints for example, SAP states a 100 MB per-file upload limit for Attachment Service usage in certain apps/scenarios

More details below:

https://help.sap.com/docs/SAP_S4HANA_CLOUD/a630d57fc5004c6383e7a81efee7a8bb/e7ff65b0c2c34652995745c9...

https://help.sap.com/docs/SAP_S4HANA_CLOUD/a630d57fc5004c6383e7a81efee7a8bb/74fa9fbfe5ad47529fd8373b...

https://userapps.support.sap.com/sap/support/knowledge/en/3591125

In CBC look at configuration activity below (103583) to see which repository is active.

dawid90_1-1764696861386.png

 

dawid90_2-1764696861391.png

 

Best Regards,

Dawid

Answers (0)