cancel
Showing results for 
Search instead for 
Did you mean: 

SAP DMS and Destination Help for CAP service.

Tommyssj
Newcomer
0 Kudos
184

Scenario: We have 2 sub-account, sub-account A and sub-account B in SAP BTP Cockpit under a global account, all the development is being done on SAP BAS.

Sub-account A: This account has a DMS service which is currently being consumed by an app.
Sub-account B: This account is our development account in which we do our development.

Problem: The DMS service needs to be called to Sub-account B from Sub-account A for making an attachment functionality in our application. To consume the DMS, I need to create a CAP service which has the functionality of List all the content of the repository of the DMS, Upload content into the repo and download content from the repo.

Currently, I have attempted Destination Config and hardcoding the credentials for Bearer token authorization but I am getting 401 unauthorized error when trying to call the DMS service using destination and Method not allowed error when trying to use hard-code the credentials (which i know is not a recommended practice but I had to test it) but both these efforts have been in vain. 

Can somebody share their expertise on this topic, If its even possible to do something like this: Creating a CAP service which can download,upload and List the content of a DMS repository which is situated in a different Sub-account under the same global account. 
Kindly Help if you can. Thank you

Accepted Solutions (0)

Answers (0)