How-To Guide
SAP Cloud for Customer
Document Version: 1.0 - 2015-04-29
How to Configure Integration between SAP CRM and SAP Cloud for Customers using SAP PI
Document History © 2015 SAP AG or an SAP affiliate company. All rights reserved.
2
Document History
Document Version Description
How to Configure Integration between SAP CRM and SAP Cloud for Customers using SAP PI
Table of Contents © 2015 SAP AG or an SAP affiliate company. All rights reserved.
3
Table of Contents
1 Business Scenario ... 3
2 Prerequisites ... 3
3 Step-by-Step Procedure ... 4
3.1. Replication from SAP CRM to C4C ... 4
3.1.1. Create Marketing attribute set in SAP CRM ... 4
3.1.2.Assigning the attribute set to a BP ... 5
3.1.3.Replicating the data to C4C ... 6
3.1.4.Initial Load / Resending of Marketing Attributes Data ... 7
3.1.4.1. Characteristics / Marketing Attribute – CHRMAS ... 7
3.1.4.2. Classes / Marketing Attribute Set– CLSMAS ... 8
3.1.4.3. Classification / Marketing Attribute Assignment CLFMAS ... 8
3.1.5.Integration flows for marketing attribute ... 9
3.2. Replication from C4C to SAP CRM. ... 9
1 Business Scenario
This guide describes the required configuration to replicate marketing attributes from SAP CRM to SAP Cloud for Customer. You need to use this when you want to leverage the marketing attributes in SAP CRM in SAP Cloud for customer. The marketing set is replicated from CRM to C4C. The marketing attribute assignment are replicated bi-directionally. This guide describes the replication of marketing attribute, marketing attribute set and marketing attribute set assignment to BP from SAP CRM to C4C and the replication of marketing attribute set assignment from C4C to SAP CRM.
2 Prerequisites
This guide assumes you have already configured the integration connectivity from SAP CRM to SAP C4C. It assumes the connectivity reports were executed and marketing attributes were included in all SAP CRM settings. In addition there is a note to be implemented for enabling change pointer for marketing attribute assignment, details of which are available in the integration guide.
For all related details, please see the integration guide. All official integration guides are located at
How-to Configure SAP Web Dispatcher for Two-Way SSL Communication in 30 Minutes
Step-by-Step Procedure © 2015 SAP AG or an SAP affiliate company. All rights reserved.
4
3 Step-by-Step Procedure
3.1. Replication from SAP CRM to C4C
3.1.1. Create Marketing attribute set in SAP CRM
Please ensure you have marketing attributes already configured on SAP CRM.When you select the marketing attribute you see the details shows in the following screenshot. The screenshot describes how to create the marketing attributes.
How-to Configure SAP Web Dispatcher for Two-Way SSL Communication in 30 Minutes
3.1. Replication from SAP CRM to C4C © 2015 SAP AG or an SAP affiliate company. All rights reserved.
5
3.1.2. Assigning the attribute set to a BP
Select the account to which the attribute set is to be assigned and click edit List in Marketing Attribute tray.
You can select from the drop down list of all available Marketing Attribute set the desired one to be assigned.
How-to Configure SAP Web Dispatcher for Two-Way SSL Communication in 30 Minutes
3.1. Replication from SAP CRM to C4C © 2015 SAP AG or an SAP affiliate company. All rights reserved.
6
Default values if any maintained for an attribute will be selected automatically and you can change the value accordingly.
Click save and the entered attribute and values are assigned to the business partner.
3.1.3. Replicating the data to C4C
For replicating the above created data and assignment we have to call the change pointer report for the IDoc types for attribute, attribute set and assignment.. (Note: The IDoc creation will not happen automatically and is only done via change pointers). In customer system these reports with the corresponding input types will be scheduled.
Change pointer report is accessible via report name RBDMIDOC from SE38 or directly via transaction BD21. The corresponding IDoc type has to be given as input while running the report to generate IDocs from change pointers to the external systems as maintained in the distribution model. Unlike other CRM IDocs CHRMAS, CLSMAS and CLFMAS needs a distribution model to be maintained via transaction BD64.
Scenario IDoc Type
Marketing Attribute CHRMAS
Marketing Attribute Set CLSMAS
Marketing Attribute Assignment CLFMAS
Note: The sequence is very important: it must be CHRMAS followed by CLSMAS and then CLFMAS. The subsequent IDocs have dependent data in the predecessor and if not followed in this sequence will raise exception in C4C system during message processing.
1. CHRMAS
Execute 2. CLSMAS
How-to Configure SAP Web Dispatcher for Two-Way SSL Communication in 30 Minutes
3.1. Replication from SAP CRM to C4C © 2015 SAP AG or an SAP affiliate company. All rights reserved.
7
Execute
For all 3 you will get a message with the number of master and communication IDocs created. You can view the IDocs in transaction WE05
The replicated attributes can be viewed in C4C under the tab ‘Marketing Attributes’ for the Customer. Note: Marketing Attribute tab is available only in HTML5 UI and not in Silverlight.
3.1.4. Initial Load / Resending of Marketing Attributes Data
The following describes the reports required for initial load of marketing attribute characteristics, classes, and classification.3.1.4.1.
Characteristics / Marketing Attribute – CHRMAS
How-to Configure SAP Web Dispatcher for Two-Way SSL Communication in 30 Minutes
3.1. Replication from SAP CRM to C4C © 2015 SAP AG or an SAP affiliate company. All rights reserved.
8
Here a sample IDoc in Excel format:
chrmas.XLSX
3.1.4.2. Classes / Marketing Attribute Set– CLSMAS
The report to send class definitions is RBDSECLS.Here the sample IDoc that was generated:
clsmas.xlsx
3.1.4.3. Classification / Marketing Attribute Assignment
CLFMAS
How-to Configure SAP Web Dispatcher for Two-Way SSL Communication in 30 Minutes
Replication from C4C to SAP CRM. © 2015 SAP AG or an SAP affiliate company. All rights reserved.
9
Here a sample IDoc for CLFMAS:
clfmas.XLSX
3.1.5. Integration flows for marketing attribute
The integration flows for marketing attributes can be found in the integration spreadsheet athttps://service.sap.com/cloud4customers. Standard configuration is used for these scenarios.
In case of PI as the middleware you can check the process integration scenario COD_CRM_MasterDataReplication for the complete flow of marketing attributes data.
In case the middleware is HCI following are the integration iflows:
1. Marketing Attribute
a. CRM to COD
com.sap.scenarios.crm2cod.businessattribute.replication
2. Marketing Attribute Seta. CRM to COD
com.sap.scenarios.crm2cod.businessattributeset.replication
3. Marketing Attribute Assignmenta. CRM to COD
com.sap.scenarios.crm2cod.businessattributeassignment.replication
b. COD to CRM com.sap.scenarios.cod2crm.businessattributeassignment.replication
3.2. Replication from C4C to SAP CRM.
The replication is enabled from C4C to SAP CRM only for the marketing attribute assignment to an Account. There is no separate WoC view for marketing attribute or marketing attribute set.
How-to Configure SAP Web Dispatcher for Two-Way SSL Communication in 30 Minutes
How-to Configure SAP Web Dispatcher for Two-Way SSL Communication in 30 Minutes
Replication from C4C to SAP CRM. © 2015 SAP AG or an SAP affiliate company. All rights reserved.
11
When you click on Add all available Marketing Attribute Sets will be displayed in a pop up from where you can select the desired one.
There is also a filter option for easy selection.
How-to Configure SAP Web Dispatcher for Two-Way SSL Communication in 30 Minutes
Replication from C4C to SAP CRM. © 2015 SAP AG or an SAP affiliate company. All rights reserved.
12
Click on Save after desired changes are done.
An outbound message will be triggered for replicating the assignment to SAP CRM system as per configuration available in the C4C communication arrangement.
www.sdn.sap.com/irj/sdn/howtoguides
© 2015 SAP AG or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.
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.
Please see http://www.sap.com/corporate-en/legal/copyright/ index.epx for additional trademark information and notices.