8/16/2016                                                       Business to Business (B2B) Release 5 hybris Wiki

 
  

Business to Business (B2B)

Created by Mateusz Wiktor, last modified on 06.10.2015 CEST

This document presents the activities necessary to configure SAP Cloud for Customer system, in order to integrate with hybris Commerce in the B2B scenario

  1. 1. Activate SAP hybris Commerce Integration in Scoping
  1. 2. Setup SSO between SAP Cloud for Customer and Identity Provider
  1. 3. Setup Communication System
  1. 4. Create a URL Mashup for Deep Link
  1. 5. Configure hybris Storefront Integration
  1. 1. Activate SAP hybris Commerce Integration in Scoping

Purpose

Ensuring that hybris Commerce integration is active in the SAP Cloud for Customer system.

Procedure

  1. 1. Log on to SAP Cloud for Customer system, as a system administrator.
  2. 2. In the Business Configuration work center, select the

Implementation Projects view.

  1. 3. Select your implementation project, and click Edit Project Scope.
  2. 4. In the scoping wizard, choose Next until the Scoping screen appears.
  3. 5. Expand Communication and Information Exchange Integration with External Applications and Solutions nodes.
  4. 6. Select Integration with hybris, and select Next.
  5. 7. After you have carefully reviewed and confirmed your entries, click Finish and close the view.
  6. 8. In order to deploy the solution, click on the Business Configuration work center, and click Open Activity List.
  7. 9. Select Confirm Milestone: Design Accepted.
  8. 10. Select Design Accepted and click Confirm.
  1. 2. Setup SSO between SAP Cloud for Customer and Identity Provider

Purpose

Establishing an authenticated commection between SAP Cloud for Customer and your identity provider systems. This requires an exchange of the service provider metadata information between these systems.

Prerequisites

  1. 1. Download the service provider metadata from your Identity Provider For example, if you use SAP Cloud Identity (SCI) as your identity provider, then do the following:
  1. a. Logon to the SCI system.
  2. b. Click Home and then Tenant Settings.
  3. c. Choose SAML 2.0 Configuration.
  4. d. Click Download Metadata File.
  5. e. Save the xml file on your computer.

This file needs to be uploaded in the SAP Cloud for Customer system.

  1. 2. Download the service provider metadata from SAP Cloud for Customer system
    1. a. Logon to SAP Cloud for Customer system, as a system administrator.
    2. b. In the Administrator work center, choose Configure Single SignOn.
    3. c. In the My System tab, click SP Metadata to download the metadata.
    4. d. Save the metadata xml file on your computer.

This file needs to be uploaded in your Identity Provider system.

  1. 3. Download tenant certificate from SAP Cloud for Customer system
    1. a. In the SAP Cloud for Customer system, click Administrator work center and choose Communication

 
  

About this Document

Configuration activities to be performed in the SAP Cloud for Customer system in the B2B scenario.

Audience: Consultants, developers

Related module: Customer Ticketing System, Assisted Service Module, Data Hub

Validity: 5.7.0 and higher

Based on hybris version: 5.7.0

Rate the Document:

Your Rating:    Results:  6 rates

Integration Procedure Steps

Expand all    Collapse all

  Installing SAP hybris Commerce for SAP Cloud for Customer Integration

  Integrating the hybris Assisted Service Module with SAP Cloud Identity

  Configuring SAP Cloud for Customer Integration

  Business to Business (B2B)

  Business to Consumer (B2C)

  Testing SAP Cloud for Customer Integration

See Also

Installation

Extension Concept in the hybris Commerce Suite

 
  

https://wiki.hybris.com/pages/viewpage.action?pageId=285417562                                                                                                             1/4

 
  

8/16/2016                                                       Business to Business (B2B) Release 5 hybris Wiki

 
  

  1. Certificates.
  1. b. Click Download Tenant Certificate.
  2. c. Save the cetificate file on your computer.

The certificate file you downloaded is in DER encoded format. However, SCI understands the certificate file in BASE encoded format.

  1. 4. To convert the certificate file from DER to BASE encoded format:
    1. a. Doubleclick on the certificate file, and click Open.
    2. b. In the Details tab, click Copy to File.
    3. c. In the Certificate Export Wizard, click Next.
    4. d. Select Base64 encoded X.509 (.CER) and click Next.
    5. e. Select a folder and enter a file name for the converted certificate file.
    6. f. Click Next and then Finish. The file is now available in the required format.

This file needs to be uploaded in your Identity Provider system.

Procedure

Steps to be performed in SAP Cloud for Customer:

  1. 1. Logon to SAP Cloud for Customer system, as a system administrator.
  2. 2. In the Administrator work center, select Configure Single Sign On.
  3. 3. In the Identity Provider tab, click New Identity Provider.
  4. 4. Upload the metadata file that you downloaded from your identity provider system (step 1 in the Prerequisites section).
  5. 5. Click Actions and select Activate.
  6. 6. Click Activate Single SignOn.

Steps to be performed in your identity provider system

  1. 1. Upload metadata from Cloud to your identity provider system. For example, if SCI is your identity provider:
    1. a. Logon to SCI.
    2. b. Click Applications.
    3. c. Click the + icon at the bottomleft row to add an application.
    4. d. Enter a name and click Save.
    5. e. In the application, under Trust tab, click SAML 2.0 Configuration.
    6. f. In the SAML 2.0 Configuration screen, under Define from Metadata section, click Browse.
    7. g. Select the metadata xml file you downloaded from SAP Cloud for Customer (step 2 in the Prerequisites section), and click Save.
  1. 2. Configure the attribute that should be used by the system to identify the users.

For example, if SCI is your identity provider:

  1. a. In SCI, click on the application you created, and under Trust tab click Name ID Attribute.
  2. b. Ensure that Login Name is selected.
  3. 3. Establish basic and certificatebased authentication For example, if SCI is your identity provider:
  1. a. In SCI, click on the application you created, and under Trust tab click Certificate for API Authentication.
  2. b. In the Configure Certificate section, click Browse.
  3. c. Upload the tenant certificate you downloaded from SAP Cloud for Customer (step 3 in prerequisites).
  4. d. Click the back button, and choose HTTP Basic Authentication.
  5. e. Click New to configure a user for basic authentication in your identity provider.

A user ID is automatically generated once you set your password.

Note

For more information, see the Integrating the hybris Assisted Service Module with SAP Cloud Identity document.

  1. 3.  Setup Communication System

Purpose

A communication system represents an external system for communication. It is also a reference for ID mapping maintained within your Cloud solution. The communication system representates the hybris client, even if the technical communication occurs using Data Hub.

Procedure

  1. 1. Logon to the SAP Cloud for Customer system, as a system administrator.
  2. 2. In the Administrator work center select Communication Systems.
  3. 3. Click New.
  4. 4. On the New Communication System screen, in the Basic Information section, enter the following information.

 
  

https://wiki.hybris.com/pages/viewpage.action?pageId=285417562                                                                                                             2/4

 
  

8/16/2016                                                       Business to Business (B2B) Release 5 hybris Wiki

 
  

ID ID or name of the hybris system to be connected

SAP Business Suite Leave it unchecked

Host Name Reverse proxy of Datahub

System Access Type Internet

  1. 5. (Optional): In the Technical Contact section, you can enter data of the contact person for the hybris system.
  2. 6. Save your data.
  3. 7. In the System Instances section, enter the following data:

System Instance ID Enter the ID or name of your business instance of the hybris system. You can find the instance ID in the following properties file:

See local.properties file of hybris ECP: customerticketingc4cintegration.siteId.electronics= <hybrisbusinessinstanceid>

Preferred Application Protocol Web Service

  1. 8. Choose Actions Set to Active.
  2. 9.Choose Save and Close. Note

For more information, see the customerticketingc4cintegration Extension document.

  1. 4.  Create a URL Mashup for Deep Link

Purpose

A URL mashup sends data from SAP Cloud for Customer solution to the hybris URL. The hybris system uses the data, for example, to perform a search, and the results are displayed in a new browser window. You need to create two mashups: one for ASM and the other for service ticket.

Prerequisites

You know the endpoint URL of the hybris system, for example, URL to the hybris ASM page or the service ticket page on hybris.

Procedure

  1. 1. Logon to the SAP Cloud for Customer system, as a system administrator.
  2. 2. In the Administrator work center select Mashup Authoring.
  3. 3. Click New and select URL Mashup.
  4. 4. Enter a name and a description for the mashup. The mashup name is displayed to business users when using the mashup.
  5. 5. Under URL Information, enter the URL of the hybris web service to the ASM or service ticket page, and click Extract Parameters.
  6. 6. Enter any URL parameters that you want to pass with the URL. For example, site parameter to capture the shop name.

Note

The customer ID and ticket ID parameters are automatically added to the URL by the system. So, do not add these two parameters.

  1. 7. Click the Preview link to display the end result of the mashup.
  1. 8. Save your changes. The mashup is now active and ready to be used.

You need these mashup IDs during the configuration of the integration of the hybris storefront.

  1. 5. Configure hybris Storefront Integration

Purpose

You need to maintain the details of the hybris system that you are connecting to. You can only connect to one hybris system to SAP Cloud for Customer.

Prerequisites

You know the mashup IDs that you created for ASM and service ticket.

Procedure

  1. 1. Logon to the SAP Cloud for Customer system, as a system administrator.
  2. 2. In the Administrator work center select hybris Storefront Integration.
  3. 3. Click New.
  4. 4. On the Integration Settings for hybris Storefront screen, enter the following information.

 
  

https://wiki.hybris.com/pages/viewpage.action?pageId=285417562                                                                                                             3/4

 
  

8/16/2016                                                       Business to Business (B2B) Release 5 hybris Wiki

 
  

hybris Storefront ID Enter an ID or name for the hybris system you want to connect

hybris Storefront Description Enter a short description of the hybris system

hybris Storefront System Instance ID Enter teh system instance ID of the hybris system

SAP ERP System Instance ID This field needs to be filled only if you have an SAP ERP backend connected to the SAP Cloud for Customer system. If so, enter the system instance ID of the connected ERP system.

  1. 5. Create an entry to maintain deep link to ASM page.

Under Deep Link Settings, click Add Row.

Under Navigation to Storefront, select Assisted Service Module (ASM) Page.

Enter the mashup ID.

  1. 6. Create an entry to maintain deep link to service ticket page.

Under Deep Link Settings, click Add Row.

Under Navigation to Storefront, select Service Ticket Page. Enter the mashup ID.

  1. 7. Choose Save and Close.
To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply