In the previous Blog Post: Workforce integration from SAP SuccessFactors to Master Data Integration service – Part1 I have described how to integrate Workforce data from SAP SuccessFactors to Master Data Integration.
This blog post I will provide the steps required to integrate Workforce data from SAP Master Data Integration to SAP S/4HANA Cloud.
Process:
Step1: Create SAP Master Data Integration service instance:
Login to Business Technology Platform (BTP) subaccount. Then navigate to Services > Service Marketplace and select Master Data Integration.
Select Create in the top-right corner.
Enter basic info for your instance.
Service: SAP Master Data Integration
Plan: sap-integration
Runtime Environment: Cloud Foundry
Space: <Any option from the dropdown list. The chosen space is not relevant for Master Data Integration service>
Instance Name: <User-definable>
Click on Next.
Configure instance parameters for your instance.
application: s4
businessSystemId: <User-definable. An identifier for the client>
writePermissions:
[
{
"entityType": "sap.odm.workforce.WorkforcePerson"
}
]
Click on Create.
Step2: Create a Service Key for service instance
Navigate to Services > Instances and Subscriptions and create Service Key for newly created service instance.
Provide a Service key name.
Service Key Name: <User-definable. It is recommended to indicate the date of creation in the service key name>
Write down the systemId, uaa.clientid, uaa.clientsecret, uaa.url and the uri of service key which will be used later.
Step3: Setup Communication Arrangement for Communication scenario SAP_COM_0594
Login to SAP S/4HANA Cloud and go to the Communication Arrangements page.
Create a Communication Arrangement for Communication scenario SAP_COM_0594 – SAP Master Data Orchestration Integration.
Create a new Communication System.
Provide a Communication System name.
System Name: <User-definable>
The created Communication System will be like below:
Create Communication User for Inbound Communication of this newly created Communication System.
Maintain the User Name and Password and click Create.
Select the newly created Communication User.
The created Communication Arrangement will be like below.
Write down the url of MDO_ORCHESTRATIONADMIN_0001 service which will be used later.
Step4: Create Destination for Master Data Orchestration
Login to Business Technology Platform (BTP) subaccount. Navigate to Connectivity > Destinations.
Click New Destination and enter basic info for the destination.
Name: <User-definable>
Type: HTTP
URL: <The url of above MDO_ORCHESTRATIONADMIN_0001 service>
Proxy Type: Internet
Authentication: BasicAuthentication
User: <User name of above created Communication User>
Password: <Password of above created Communication User>
Additional Properties:
MDIInstanceId: <systemId of above created service key>
MDOConsumer: true
MDOProvider: true
Check connection for this Destination.
Step5: Setup Communication Arrangement for Communication scenario SAP_COM_0659
Login to SAP S/4HANA Cloud. Create Communication User.
Maintain the User Name and Password and click Create.
Create Communication System.
Provide a Communication System name.
System Name: <User-definable>
Technical Data:
Host Name: <host part of the value of the uri of the service key>
Business System: MDI
Auth. Endpoint: <host part of the value of the uaa.url of the service key + /authorize>
Token Endpoint: <host part of the value of the uaa.url of the service key + /oauth/token>
Ensure that the checkbox Inbound Only is not selected.
Scroll down to Users for Inbound Communication section and add the above created System User.
Scroll down to Users for Outbound Communication section and click Add button.
Enter detailed information for the Outbound User:
Authentication Method: OAuth 2.0
OAuth 2.0 Client: <uaa.clientid of service key>
Client Secret: <uaa.clientsecret of service key>
Create a Communication Arrangement for Communication scenario SAP_COM_0659 – SAP Master Data Integration.
Communication System: <above created Communication System>
OAuth 2.0 Client ID: <uaa.clientid of service key>
Step6: Subscribe to Master Data Orchestration
Master Data Orchestration provides a UI where you can create a distribution model specifying the configuration according to which master data is replicated from provider to consumer.
Login to Business Technology Platform (BTP) subaccount and navigate to Services > Service Marketplace.
Select Master Data Integration (Orchestration) and click on Create. Inside the dialog, choose the standard plan and click on Create once more.
This step will create the MasterDataOrchestrationAdmin and MasterDataOrchestrationDisplay role templates automatically.
Then navigate to Services > Instances and Subscriptions, you will find the Master Data Integration (Orchestration) has been subscribed.
Navigate to Security > Role Collections. Create a Role Collection and add MasterDataOrchestrationAdmin and MasterDataOrchestrationDisplay roles. Then enter the data for users to who should have access to SAP Master Data Orchestration subscription in the Users section.
Step7: Create a distribution model in Master Data Orchestration
Navigate to Services > Instances and Subscriptions. Click Go to Application icon beside the Master Data Integration (Orchestration) to access the Master Data Orchestration UI.
Click Manage Distribution Model tile and click on Create.
Model: <User-definable>
Business Object Type: (sap.odm.workforce.WorkforcePerson)
Mode: Pull
Package Size:1
Provider Interface: MDI_LOG_WORKFORCE_PERSON
Provider: MDI
Consumer: <businessSystemId of the service instance>
Then Save and Activate it.
After activation, press the replicate button to trigger initial replication.
You can also use postman to check the WorkforcePerson data.
The log API is the uri value of service key + /v0/odm/3.0.0/log/sap.odm.workforce.WorkforcePerson
With this we have completed the Workforce Integration from SAP Master Data Integration service to SAP S/4HANA Cloud. Please feel free to leave the comments with your feedback and thoughts.