Skip to Content

SAP Document Center opening a file fails

I’ve implemented a Document Center connector for Archivelink using a subclass of CL_CMIS_ABSTRACT_SERVICE. My plan was to return an URL, but it does not seem to work.I've changed this to returning a content stream. This does not work either.

I can't open the file in any way. When clicking the button 'Open in Desktop' the CMIS jumps to the following ‘URL’ and then the browser (firefox 53) shows an error (chrome does nothing, IE gives the option to download a program to open the file).

doccenter://v1/open?rep=382372b3-e9e3-4190-91db-b4a63a546ad7&obj=root%7CBKPF%7CKB0119000000062017%7C5254000000B21EE792D832D6B506880E

In the method GET_REPOSITORY_INFO I’ve set the DEFAULT_CONTENT_DELIVERY to CL_CMIS_CONSTANTS=>CONTENT_DELIVERY-URL when I wanted to return the URL and to CL_CMIS_CONSTANTS=>DEFAULT_CONTENT_DELIVERY-FULL when I changed it the content stream.

The method GET_CONTENT_STREAM does not seem to be called at all, and the method GET_CONTENT does not exist in the interface IF_CMIS_SERVICE (although it is supposed to be the one to implement according to https://help.sap.com/viewer/c5bc243e9e824373a5e8de7c37b1dee1/Cloud/en-US/a3d87ed9f25347ecaace33db9b116141.html)

Is there some kind of special magic needed to get this working?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 20, 2017 at 12:55 PM

    Hi,

    Open in Desktop opens the document using Desktop App. See: https://help.sap.com/viewer/ba2adb991f6e4b6a857e9f76a99402bd/Cloud/en-US/b2066f9f4825401ab64df8e18e0179c9.html

    To view the file using Web App, you must click on the file name, in the list.

    Regards, Ashwani Kr Sharma

    Add comment
    10|10000 characters needed characters exceeded