Categories
SAP Blogs

Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA

Introduction

The purpose of this blog is to describe the essential configuration steps required to manually set up the SAP S/4HANA attachment service working with Document Management as a content server within the system landscape that has been already installed.

The following scenario is applicable for SAP S/4 HANA on-premise 1809, 1909, and 2020 releases.

Prerequisite

1. You must read and execute the following SAP Notes:-

  • SAP Note – 2361898
  • SAP Note – 3003350
  • SAP Note – 3003412
  • SAP Note – 3008650

2. Ensure CA certificate of the SAP Cloud Foundry server is uploaded to “SSL client SAP Default”. This certificate has to be uploaded to the ABAP backend system using STRUST transaction.

Section 1. Repository Onboarding

In this section, you need to onboard the Document Management Repository.

The following steps must be executed to onboard a repository. You can ignore the steps if some of them have been already performed.

  • You’ve created a subaccount and space. See Creating a Subaccount and Space.
  • You’ve created a service instance and service key. See Creating a Service Instance.
  • You’ve connected your own repository to Document Management, integration option instance.

To add your repository using a REST API, you must generate a JSON Web Token (JWT). Use the JWT as your authorization to make the onboarding REST API calls. See Generate a JSON Web Token.
Execute an onboarding repository API to onboard your repository into Document Management. See Add Your Repository Using the Onboarding API.

The displayName and externalId should start with ‘Z’ and it should be in upper case. This name would be used as a content repository name in the SAP S/4 HANA backend system. The externalId and isContentBridgeEnabled are mandatory during repository onboarding.

Section 2. Enabling User Propagation

User information from SAP S/4 HANA can be propagated to Document Management to persist the information in the document metadata. For e.g. if you would like to have the user information in the “createdBy” and “modifiedBy” metadata field of the document then you need to enable user propagation.

To enable, create an incident under the component BC-CP-CF-SDM-INT

Section 3. SAP S/4HANA Backend Configuration

In this section, you learn the backend system configurations by following the steps.

Create an OAuth Client Profile

  • Start the object navigator (transaction SE80).
  • Choose Development Object in the dropdown list.
  • To create a development object in the SAP namespace, choose to Create OAuth 2.0 Client Profile in the context menu of the object name.
  • Enter the object name in the Client Profile field.
  • Choose the type of service provider as HANA_CLOUD_PLATFORM.
  • Save your changes.

Create an OAuth Client Configuration

SAP Document Management uses OAuth Authentication. Hence, OAuth client configuration must be done in the SAP S/4HANA backend system.

  • Go to transaction OA2C_CONFIG.
  • Click ‘Create’.
  • Choose OAuth Profile created in section 3.1.
  • Enter the configuration name of your choice.
  • Enter ‘Client Id’ from the service key created in section 1.
  • Click ‘OK’.
  • Enter ‘Client Secret’ from the service key created in section 1.2.
  • Choose Selected Grant Type as Client Credentials.,
  • Enter Authentication Endpoint. It is the ‘url’ parameter in the service key created in section 1.2 without ‘https’.
  • Enter Token Endpoint. It is the ‘url’ parameter in the service key with ‘/oauth/token’ prefix without ‘https’.
  • Click ‘Save’

Create an RFC destination to Document Management

  • Go to the transaction, SM59, and create a Type G destination.
  • Enter host: “ecmservice”:”url” copied from service key created in section 1.2 without ‘https’.
  • Enter path prefix as ‘/browser’.
  • In the Port b field, enter the “HTTPS” port of the ABAP system
  • Go to Logon & Security Tab.
  • Select ‘Do not use a user’ in Logon Procedure.
  • In Security Options, choose SSL Active radio button and select the certificate from the dropdown.
  • Save the RFC destination.

Create Content Repository in OAC0

  • Go to transaction OAC0.
  • Click on ‘Create’.
  • Give the content repository name the same as the value of ‘externalId’ parameter given during onboarding repository in Section 1.3 (#2).
  • Enter Document Area.,
  • Select Storage Type as ‘CMIS Content Server’.
  • Enter the RFC destination created in the previous Part.
  • Select the ‘Is OAuth’ checkbox.
  • Save the configuration
  • Enter the OAuth Profile name.
  • Save the configuration.
  • Do the connection test and check if the connection test is successful in the repository.

Create Secondary Types and Folders

  • Execute Transaction SE38
  • Enter Report Name ‘CMIS_REPOSITORY_SETUP’
  • Execute report

Inputs:-
RFC_DEST = RFC destination of the repository created in SM59CMIS_REP = Content Repository Name created in OAC0

Create Storage Category in OACT

  • Go to transaction OACT.
  • Click ‘New Entry‘.
  • Enter a Category Name.
  • Enter Document Area.
  • Enter Content Repository Name created in the previous Part.
  • Save Storage Category

Activate Storage Category

  • Go to transaction SPRO.
  • Click on SAP Reference IMG to display the IMG Activities.
  • Go to Cross Application Components ? Document Management ? Additional Settings- Simplification ? Attachment Service- Storage Repository Activation
  • Choose to ‘Create New Entries’.
  • Enter the Storage Category created in OACT in the previous part and mark it as active by selecting the checkbox.
  • Save the configuration.

Leave a Reply

Your email address will not be published. Required fields are marked *

×
Placement Report
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Interview Questions
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Learn More
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Sign Up Now
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Join Us
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Get started
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Buy Now
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Download Course Content
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Call Back
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Ask for Demo
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Enquiry
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Please fill form to see Video
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Schedule Your Demo
Using Document Management as a Content Repository with SAP S/4 HANA

Using Document Management as a Content Repository with SAP S/4 HANA
×
Apply for scholarship