S4hana C4C Erp Integration Hci1702
S4hana C4C Erp Integration Hci1702
February 2017
Integrating SAP Cloud for Customer with SAP Hybris Marketing Cloud
using HANA Cloud Integration
About this Document
This document describes the configuration steps necessary to integrate SAP Cloud for Customer
with SAP Hybris Marketing Cloud using SAP HANA Cloud Integration (HCI). It is important that the
individual systems being integrated are already set up.
The document is intended only as a guide to help you prepare and apply the steps necessary for
successful integration. Before you start working through this document, ensure that you have
downloaded the most recent version of this document available on SAP Service Marketplace.
Support
If you have any queries or feedback on this document, please create a ticket for the component
LOD-CRM-INT-YMT.
Overview
To set up certificate-based authentication between SAP S/4HANA and HCI an administrator needs
to create a communication user, a communication system and a communication arrangement.
In the HCI Web UI, navigate to Monitor. Click on the Started tile.
Search for the integration flow e.g. Replicate Lead with Business Partner
Address Information from SAP Business Suite. Click on status Started. The
second part of the listed endpoint starting with /cxf/ is the needed service
endpoint. Example: /cxf/yMKT/C4C/LeadReplicationRequest_Out
How to get the HCI client certificateHow to get the Integration Flow endpoints in
HCI
You get the endpoint of an integration flow from the following place once
the integration flows are deployed. See Configure and Deploy Integration
Flows using SAP HCI Web UI
In the HCI Web UI, navigate to Monitor. Click on the Started tile.
Search for the integration flow e.g. Replicate Lead with Business Partner
Address Information from SAP Business Suite. Click on status Started. The
second part of the listed endpoint starting with /cxf/ is the needed service
endpoint. Example: /cxf/yMKT/C4C/LeadReplicationRequest_Out
Host Name See chapter How to get the fully qualified HCI runtime URL.
(Communication Remove the prefix https:// from the URL.
System)
Path (Communication Retrieve the endpoints of the integration flows Replicate Lead with
Arrangement) Business Partner Address Information from SAP Business Suite and
Replicate Activity from SAP Business Suite as described in chapter How to
get the Integration Flow endpoints in HCI.
Host Name (Cloud for Retrieve the URL from the notification e-mail from SAP Cloud for
Customer System) Customer.
Procedure
3. Choose Create.
4. Enter the User Name, Description and Password.
5. Choose Upload Certificate to upload the HCI client certificate.
6. A pop-up appears. Upload the certificate. The pop-up disappears.
7. Choose Create.
Note
In the HCI system, you need this technical user to call the OData services.
Note: This communication scenario can also be used for CRM integration. A Guide for integrating CRM with
SAP S/4 HANA Cloud Marketing Edition can be found here: https://rapid.sap.com/bp/BP_CLD_MKT
1.6.2 Communication Arrangement for C4C (UI Navigation)
Procedure
20. check if an arrangement for scenario “Marketing - SAP Cloud for Customer Integration (UI)”
already exists.
21. If not, click on the “New” button.
22. Select communication scenario “SAP_COM_0045 (Marketing – SAP Cloud for Customer
Integration (UI))” in value help of Scenario.
23. Enter a meaningful Arrangement Name. Choose Create.
24. Maintain Common Data.
25. Select the communication system for the navigation to C4C you have created in chapter
1.4.2 in value help of Communication System.
26. The outbound communication can be left out.
27. Maintain Outbound services.
28. Service Status should already be flagged as “Active”
29. Port should already be filled with value “443”.
30. Under Path, enter “/”.
Please note that you only need the part of the Service URL after “https://” and before
“/sap/opu/…”. This part follows the pattern <tenant>-api.<domain>.
How to get the S/4HANA Client Certificate
You can download the S/4HANA client certificate from the communication system you have
created in chapter 1.5.
Procedure
1. Log on to your SAP S/4HANA system as an administrator
2. Go to tile Recipients of Current User
3. Press New Entries
After that procedure, the selected users log on to the system and can navigate to the tile Message
Dashboard / SAP AIF to analyze and restart messages and errors.
The users can choose the timeframe they want to analyze and will find errors and success
messages assigned to the enterprise services that send Leads and Activities to Cloud for
customers.
9. After you have carefully reviewed and confirmed your entries, click Finish.
Caution
Although you have now defined the scoping of the solution, you have not yet deployed it. To
do so, confirm the milestone Design Accepted in the activity list of the project.
a. Go to Business Configuration view ® Open Activity List.
b. Select Confirm Milestone: Design Accepted.
c. Select Design Accepted and click Confirm.
Note
The number of communication scenarios you can define depends on the scoping you have
performed.
Prerequisites
You know the following:
· Communication system ID of S/4 HANA system as maintained in Set Up
Communication System.
· Endpoints for the following integration flows in HCI:
o Lead Replication from SAP Business Suite
o Lead Replication to SAP Business Suite
o Business Partner Replication to SAP Business Suite
o Opportunity Replication to SAP Business Suite
o Business Activity Replication from SAP Business Suite
o Business Activity Replication to SAP Business Suite
See chapter How to get the Integration Flow endpoints in HCI.
· You have the HCI client certificate to upload into SAP Cloud for Customer. See chapter
How to get the HCI client certificate.
Procedure
1. Go to Administrator work center. Under Integration, click Communication Arrangements.
2. In the Communication Arrangements view, click New.
3. In the Select Scenario step, select the communication scenario Lead Replication from SAP
Business Suite and click Next.
4. In the Define Business Data step, do the following and click Next:
a. Choose the system instance ID of the SAP S/4 HANA system.
b. Choose code list mapping as SAP On-Premise Integration.
5. In the Define Technical Data step, under Inbound Communication: Basic Settings, do the
following:
a. Unselect the checkbox for the service Replicate Lead Attachment from SAP Business
Suite and Replicate Leads from the SAP Business Suite
b. Select the checkbox for the service Replicate Lead with Business Partner Address
Information from SAP Business Suite and perform the following steps for the service.
c. Select the Application Protocol as Web Service.
d. Select Authentication Method as SSL Client Certificate
e. Click Edit Credentials.
h. Click OK.
d. Enter a name for SAP Cloud for Customer Client Certificate x.509 (example
C4CSSLClient.cer) and choose Save.
Note
This certificate has to be uploaded while configuring HCI integration flow.
7. Click Edit Advanced Settings.
8. Select the Confirm Lead Replication to SAP Business Suite service and enter the endpoint of
the HCI integration flow. See Prerequisites of this chapter. Ensure that the port is 443.
9. Unselect the checkbox for the service Notify Lead Status Change to the SAP Business Suite.
10. Click Next. Review the content and click Finish.
Repeat the steps for all the communication scenarios listed below and select/unselect the
checkbox for the services as described:
Note
If you do not find the activity, choose filter All Activities, search for activity Leads, mark the
corresponding line and click on Add to Project.
Procedure
Upload Code List Mapping
1. Go to Note 2355989 in the SAP Service Marketplace.
2. Download the code list mapping file attached to the note to your local computer.
This file will be uploaded to Cloud for Customer in the next steps.
3. Login to the SAP Cloud for Customer solution.
4. Go to Business Configuration à Upload Code List.
5. Select Upload Code List.
6. Select the code list mapping group OnPremise Integration.
7. Choose Upload.
8. Select the file that you have downloaded under step 2.
Check the status of Code List Mapping upload in the Application Log
1. Go to Business Configuration à Upload Code List à Application Log.
2. Click on the required Application Log ID.
· General: Displays a high-level summary and administrative data for the job
· Settings: Displays settings selected during an upload
· Results: Displays the detailed results of the job including a list of detailed message
descriptions, and the nature of the message.
You can also export the information on the tabs to Microsoft Excel ®. To do this, click Export to
Microsoft Excel, and select the tab from which you want to export the data.
Note
The code list mapping UI contains the following three tables, which are hierarchical:
a. Local data type: This shows the data types available in the Cloud for Customer
system relevant for Code List Mapping. Select the data type for which you want to
view the Code List Mapping.
b. Code list mapping rule: Here we set the code list mapping rules for the data type
selected in the above table. There are two rules possible:
Local and Remote codes are equal: This rule can be used when the values in the
Cloud for customer system and the ones in the S/4 HANA system are the same. If
this rule is selected, there is no need to do any mapping for the code values.
Map Individual values: This rule can be used when the codes in the Cloud for
Customer system and the ones in the S/4 HANA system are different. If this rule is
selected, the individual code values have to be mapped.
c. Code List mapping: Map each code value (only the required ones) for the local data
type from Cloud for Customer system with the corresponding values in the S/4
HANA system.
Prerequisites
You have received the HCI provisioning e-mail and the administrator has created the needed users
in HCI. Please refer to User Management for SAP HCI.
Procedure
1. Access the Web UI URL from the provisioning e-mail. It should be in the format:
https://<HCI tenant>.hci.us1.hana.ondemand.com/itspaces.
2. In the Monitor tab, navigate to Manage Security Material, and click on Security Material.
3. Click on Add -> User Credential in the right bottom corner.
4. Enter a meaningful Name – this will be referenced in integration flows – a Description,
and the User and Password. Do not flag the SuccessFactors check box.
Note
User Name and Password have to be taken from the communication user created in SAP S/4
HANA.
5. Click on OK.
Process
1. In the Discover tab, copy all the integration flows to the workspace by clicking on the
button with the tooltip Copy to workspace.
2. In the Design tab, navigate to the package, and click on individual integration flow. Now,
click on the Actions icon, and select the Configure option.
Note: Mass configuration of integration flows, is not supported for ODATA adapters.
Since SAP Hybris Marketing Cloud uses ODATA adapter to receive data from HCI, each
of the integration flows need to be configured individually and deployed
3. Under the Sender tab, select the appropriate authentication method. Both certificate
based and role-based authentication is supported. The default for sender system is role-
based authentication, which can be changed using Authentication Type dropdown.
Note: In case the authentication type is Certificate Based Authentication,
If Cloud for Customer (Sender abbreviation C4C) is the sender system, provide the
sender system client certificate using the browse button. See chapter Configure
Communication Arrangements.)
If S/4 HANA (Sender abbreviation yMKT) is the sender system, provide the sender
system client certificate using the browse button. See chapter How to get the S/4HANA
Client Certificate )
4. Under the receiver tab, provide the host name and port for the receiver system. Select
the appropriate authentication type (certificate based or role-based authentication). We
recommend to use Certificate-based Authentication.
In case S/4 HANA is the receiver (receiver abbreviation yMKT), choose authentication
Type Certificate Based Authentication. Take the S/4 HANA System URL without the
protocol (https://) as the host name. See chapter How to get the S/4HANA System URL.
The port is always 443.
In case Cloud for Customer is the receiver (receiver abbreviation C4C), choose
authentication type Certificate Based Authentication. Take the C4C logon URL as
provided in the provisioning e-mail without the protocol (https://) as the host name. The
port is always 443.
5. Click Deploy
6. You should see a “Deploy Successful” message in the console.
7. Repeat the above steps for all integration flows which you wish to deploy
Alternatively, you can get it from the following place once the integration flow Replicate Lead with
Business Partner Address Information from SAP Business Suite is deployed. See Configure and
Deploy Integration Flows using SAP HCI Web UI
In the HCI Web UI, navigate to Monitor. Click on the Started tile. Search for the integration
flow Replicate Lead with Business Partner Address Information from SAP Business Suite.
Click on status Started. The first part of the listed endpoint is the needed HCI tenant runtime
URL. Example https://<tenant>-iflmap.hana.ondemand.com
In the HCI Web UI, navigate to Monitor. Click on the Started tile.
Search for the integration flow e.g. Replicate Lead with Business Partner Address Information from
SAP Business Suite. Click on status Started. The second part of the listed endpoint starting with
/cxf/ is the needed service endpoint. Example: /cxf/yMKT/C4C/LeadReplicationRequest_Out
3. Within the integration flow, select the sender system, and under Properties tab.
4. If you wish to update the authentication of the integration flow to Basic Authentication, it is
possible by, selecting the mode of authentication as Basic Authentication. For more
information on configuring basic authentication, see How-To guides.
Note
When using Basic Authentication, make sure to create new SCN user or use the
existing SCN user and password to authenticate into HCI. The SAP SCN can be
accessed from https://scn.sap.com.
5. For Certificate-based Authentication, view the details under the Properties tab.
6. To view the configuration of the integration flow, click on Externalized Parameters tab,
under the Value field, and view the configured <host>:<port> information of the receiver
system.
Mandatory Mappings
Mapping CUAN-Sender System ↔ COD-Business System (Tenant ID)
CUAN-LogicalSystemID COD-BusinessSystemID
This is the S/4 HANA tenant ID that you This is the short tenant ID of the SAP
noted down. Cloud for Customer system.
See chapter Maintain Communication
Arrangements
Optional Mappings
The optional mappings are only relevant for special use cases. For example, in a use case where
data from an SAP CRM or SAP ERP system is imported into SAP S/4 HANA Cloud Marketing
Edition.
CUAN-Origin COD-ExternalSystemIDType
This is an identifier describing the root This defines what kind of system ID was
origin of an ID. Values are for example provided. This is usually BusinessSystem
SAP_ERP_CUSTOMER or ID or LogicalSystemID. By default, it is set
SAP_CRM_BUPA. This value is to BusinessSystemID.
set/provided by SAP Hybris Marketing
Cloud, depending on from which system
the Business Partner is loaded.
Default values:
First_Origin: SAP_CRM_BUPA
Second_Origin: SAP_ERP_ACCOUNT
Default values:
First_Origin: SAP_CRM_BUPA
Second_Origin: SAP_ERP_CONTACT
CUAN-Origin_Individual_Customer COD-Origin_Individual_Customer
This is the indicator whether the value in Defines the origin from which the ID is
COD_DEFAULTS- passed on. It is passed from SAP Hybris
Origin_Individual_Customer should be Marketing Cloud to SAP Cloud for
used as primary or secondary choice to Customer. If no value is given for
pass on the ID. Two values must be First_Origin, the ID of Second_Origin will
defined: First_Origin and Second_Origin. be used. If this is also not given, origin
SAP_HYBRIS_MKT_IC (SAP Hybris
Marketing Cloud ID) will be used.
Default values:
First_Origin: SAP_CRM_BUPA
Second_Origin: SAP_ERP_CUSTOMER
02 07 Workshop
02 08 Product Presentati
02 09 Marketing
02 10 Annual Visit
03 02 Telephone Call
03 09 Marketing
03 12 Sales Call
SAP Cloud for Is visible in the Marketing – Data Management work center as
Customer
Account Corporate Accounts
Contact Contacts
Individual Customer Contacts
Opportunities Contact Factsheet of Contact/Corporate Account - Interactions
Leads Contact Factsheet of Contact/Corporate Account - Interactions
Activities Contact Factsheet of Contact/Corporate Account - Interactions
Please note that only specific activities (visits and phone calls) are replicated to SAP S/4 HANA.
4. If you want to check the number of object instances that will be loaded to the target system, before
triggering the data load, click Test Run. No messages will be initiated to transfer data. Once you
decide to initiate the transfer, uncheck the option.
5. Click Execute.
6. You can check the status of the execution and any associated errors in the application log under
Data Extraction Results.
Some software products marketed by SAP AG and its distributors contain proprietary software
components of other software vendors. National product specifications may vary.
These materials are provided by SAP AG and its affiliated companies ("SAP Group") for
informational purposes only, without representation or warranty of any kind, and SAP Group shall
not be liable for errors or omissions with respect to the materials. The only warranties for SAP
Group products and services are those that are set forth in the express warranty statements
accompanying such products and services, if any. Nothing herein should be construed as
constituting an additional warranty.
SAP and other SAP products and services mentioned herein as well as their respective logos are
trademarks or registered trademarks of SAP AG in Germany and other countries.