cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment from Custom App - Use API or Document Service of SCP

kedarT
Active Contributor
0 Kudos

Hi,

We are building a Fiori app using side-by-side extensibility. It is built and deployed in SCP and there is a need to attach documents into the app.

Struck on either to go with the API - API_CV_ATTACHMENT_SRV or to store the attachment into the Document Service Repository in SCP.

What is the right approach?

gregorw
Active Contributor
0 Kudos

Hi tkn-4406,

where you sucessful using the API API_CV_ATTACHMENT_SRV?

Best regards
Gregor

Accepted Solutions (1)

Accepted Solutions (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Kedar,

There is no right or wrong approach - it is more related to the choices you make.

The OData Service you mentioned will attach the document into the DMS server (directly on your S4HANA instance). More details on it can be found via the official documentation.

Document Services is an SCP service that will store the document on a CMIS repository. You will have to deploy a Java Application to "act" as a bridge between the Fiori application and the CMIS repository. This is required to protect the API Key, so you don't expose the repository key to other users.

Both services will allow you the CRUD operations - but DMS may be more robust in terms of backups and integration with the back-end native transactions/Fiori apps.

Regards,
Ivan

kedarT
Active Contributor

Thanks Ivan,

I also have a preference to DMS server in S4 HANA Cloud and started coding in that direction but not sure if things are working the expected way.

OData service is called but not sure if the attachment is being uploaded into the system. Appreciate if you can point to any successful implementation or reference on this.

Answers (0)