- 25 Oct 2024
- 11 Minutes to read
- Print
- DarkLight
C4C setup
- Updated on 25 Oct 2024
- 11 Minutes to read
- Print
- DarkLight
To set up Zilliant CPQ and SAP Cloud for Customer (C4C) to communicate with each other, complete the following setup tasks in C4C:
- Set up the HTML mashup or URL mashup in C4C to define the point of entry to CPQ based on your customer’s requirements. Set up a mashup for Account, Opportunity and Quote.
- Activate web services in C4C.
- Download the keystore files and upload them to CPQ.
- Embed the CPQ application inside the Account/Opportunity/Quote.
Set up C4C to export an account to CPQ
To author the HTML mashup, complete the following steps:
Sign in to C4C.
In C4C, go to Administrator in the left navigation area, then select Mashup Authoring.
At the top of the All Mashups page, select New, then use the down arrow to select HTML Mashup.
In the General Information area of the page, select With Port Binding as Port Binding Type.
Double-click inside the Port Binding field to open the Port Binding screen.
Make the following selections:
- Port Name—Select Additional Account Information.
- Import Field—Select Account Internal ID.
- Screens—Select Account Details.
In the HTML Mashup page, enter a Mashup Name such as "CPQ Account."
In the Configuration Information area, enter information or make selections as follows:
- Create the HTML mashup for account export to CPQ. Enter the following URL, replacing the domain with the customer's CPQ URI:
https://xxx.xxx.com/iss/entryPoint=CFC&action=importAccount&accountID=#######&uiModeEmbedded=true
- Set a value for Height.
- Select Extract Parameters.
- Create the HTML mashup for account export to CPQ. Enter the following URL, replacing the domain with the customer's CPQ URI:
Uncheck the AccountID parameter not to use Constant.
Select AccountInternalID.
Select Preview to view the CPQ signin page.
Select Activate.
Select Save, then select Close.
The following image shows the configuration screen:
Set up C4C to export an opportunity to CPQ
To create the HTML mashup to export an Opportunity to CPQ, use the following URL when prompted in the steps in this section.
[https://xxx.xxx.com/iss/?entryPoint=CFC&action=importOpportunity&opportunityID=OpportunityID&uiModeEmbedded=true](https://xxx.xxx.com/iss/?entryPoint=CFC&action=importOpportunity&opportunityID=OpportunityID&uiModeEmbedded=true)
To author the HTML mashup, complete the following steps:
- In C4C, go to Administrator in the left navigation area and select Mashup Authoring.
- At the top of the All Mashups page, select New and select the down arrow to select HTML Mashup.
- In the HTML Mashup page, select With Port Binding as Port Binding Type.
- Double-click inside the Port Binding field to open the Port Binding screen as shown in the following image:
- Select Opportunity Info as Port Binding.
- Select OpportunityID as Import Field.
- Select Opportunity Details as Screens.
- Select OK.
The following image shows the Port Binding settings for Opportunity:
6. When you are finished, select Preview to see the CPQ signin page.
7. Select Activate.
8. Select Save and Close.
Set up C4C to export a quote to CPQ
To create the HTML mashup to export a quote to CPQ, use the following URL when prompted to export the Account to CPQ, where you can then set uiModeEmbedded=true if you want to show the CPQ view inside the C4C.
**URL:** [https://xxx.xxx.com/iss/?entryPoint=CFC&action=importQuoteLight"eID=ObjectID&uiModeEmbedded=tru](https://xxx.xxx.com/iss/?entryPoint=CFC&action=importQuoteLight"eID=ObjectID&uiModeEmbedded=true)
To author the HTML mashup, complete the following steps:
- Log into C4C.
- In C4C, go to Administrator in the left navigation area and select Mashup Authoring.
- At the top of the All Mashups page, select New and use the down arrow to select HTML Mashup.
- In the HTML Mashup page, select With Port Binding as Port Binding Type.
- Double-click inside the Port Binding field to open the Port Binding screen.
- Select Quote Services as Port Name.
- Select Object ID as Import Field.
- Select Sales Quotes Details as Screens.
- Enter a Mashup Name. For example, "Cloud CPQ Express."
- In the Configuration Information section, complete the following steps:
- Select URL as Type.
- Enter https://xxx.xxx.com/iss/?entryPoint=CFC&action=importQuoteLight"eID=ObjectID&uiModeEmbedded=tru in the URL field.
- Enter 1024 in the Height field.
- Select the Extract Parameters link.
- Uncheck the quoteID parameter not to use Constant value.
- Select ObjectID.
- After you have completed the previous steps, select Preview to see the login page of CPQ.
- Select Activate.
- Select Save and Close.
When you finish authoring the HTML mashup, you can personalize the Account, Opportunity, and Quote pages and embed their the HTML mashups as a CPQ components inside details views for each of these in C4C.
Activate web services in C4C
Before activating web services in the C4C, you must create a communication system in C4C, along with a technical user that can access the web services.
- In C4C, go to Administrator and select General Settings.
- In the Integration section of the General Settings page, select the Communication Systems link as shown in the following image under Integration.
- In the Communication Systems page, select New.
- In the Basic Information screen, provide the following information:
- Enter the ID, for example,"CPQ."
- Toggle the SAP Business Suite setting to No.
- Enter https://www.inmindcloud.com in the Host Name field.
- Set Internet as System Access Type.
- Enter additional information such as First Name, Last Name, Email, and Phone.
- In the Actions link at the bottom right of the screen, select Active.
- Select Save and Close.
The following images shows the Basic Information page.
Next, add a Communication Arrangement to the Communication System you just created. CPQ will consume the following web services from C4C:
- Query Accounts
- Query Contacts
- Query Opportunities
- Sales Quote Integration
- Manage Sales Quote In
- Query Sales Quote In
- Query Materials
- Query Code Lists
- Query Employee
- Query Business Partners
- Query Organizational Unit
- Query Object Identifier Mapping
To configure the Communication Arrangement in C4C, complete the following steps:
- In C4C, go to Administrator and select General Settings.
- In the Integration section of the page, select the Communication Arrangement link.
- In the Communication Arrangement screen, select New.
- In the New Communication Arrangement.
- In the Select Scenario tab, select one communication scenario, for example, Query Code Lists as shown in the following image:
6. Select Next to go to Define Business Data.
7. In the Define Business Data tab, select the System Instance ID
- Select Next to define technical data.
- In the Define Technical Data tab, Select Direct Connection as Communication Method.
- Select Yes for Inbound Communication Enabled.
- Select Web Service for Application Protocol.
- Select SSL Client Certificate for Authentication Method.
The settings are shown in the following image:
The user ID _MX is automatically created. Later this user ID is used to generate the keystore file to upload to CPQ.
- Select Check Completeness to see if the definition is complete.
- Select Next to review.
- Review the new Communication Arrangement.
- Select Finish in the Review screen, as shown in the following image:
- Refresh the page. The Query Code Lists should be added to communication partner, as shown in the following image:
- Continue the same steps for other web services used by CPQ, except for the sales quote Integration web service, which is pre-delivered by SAP.
If you do not see the Query Code Lists, please follow the SAP documentation to enable the integration in the Implementation Project Scoping: Sales Quote Integration
Download C4C keystore files
CPQ needs the following two certificates to be installed inside the keystore folder to import, export, and synchronize the Account, Opportunity, and Quote.
- Query_Opportunity_Imported—used to import Account, Opportunity, and Quote from CPQ.
- Manage_Quote_Imported—used to export the quote back to the C4C from CPQ.
Existing customers can download both files. New customers may download only Query_Opportunity_Imported.
Check the certificate of web services in C4C used in CPQ regularly.
Download C4C keystore file for Query_Opportunity_Imported
The following section explains how to generate the keystore file for Query_Opportunity_Imported from C4C.
Use this keystore file for most web services communication except for the sales quote integration web service which needs another key store file.
- In C4C, go to Administrator in the left navigation area.
- Select General Settings and then Communication Arrangements as shown in the following image:
- Select one of the communication scenario setups for CPQ. For example, Communication Arrangement: Query Code Lists.
- Select Edit.
- Select the Technical Data tab.
- Select the Edit Credentials button.
- Select Certificate.
- Enter the Password. Note the password as it needs to used in the application.properties file inside CPQ.
- Select OK to download the keystore file for Query_Opportunity_Imported.
- Select Save and Reactivate.
The following image shows the keystore file information:
13. Go to the file location where the downloaded files are kept.
14. Rename the Download.p12 to Query_Opportunity_Imported.p12.
Use the following steps to upload this file to CPQ:
- In CPQ, go to Administration and select Content Management.
- At the root page, select Keystore and then Query_Opportunity_Imported.p12. to upload the file.
Please note the Valid To date because the keystore file needs to be regenerated by removing the certificate and following the same steps when it expires or for any security reason.
Embed the HTML mashup
To embed the HTML Mashups in C4C, complete the following steps:
- The mashup you wish to add must be activated
- Adaptation must be enabled in C4C.
- Sign in to C4C.
- Select User Profile and then Start Adaptation.
- Select the Pencil icon on the top tab.
- Select Add Tab.
- Enter Title of tab.
- Enter Section Title (Account).
- Click Apply.
- Select the CPQ menu from the drop-down menu or scroll to the right.
- Click Add and select Mashup.
- Select the HTML Mashup that was configured to integrate with CPQ.
- Select the Full Width.
- Set Height to 90%.
- Click Apply.
- Select User Profile and click End Adaptation to complete the task.
A similar setup can be accomplished for other detail views such as Opportunity and Quote by selecting the specfic HTML mashup that was configured to integrate with CPQ.
For additional information on Adding Mashups on screens, refer to SAP help.
Create WSDL with extension fields
The following fields are customized in C4C and must be enabled to include them in your web services.
- CPQQuoteStatus
- CPQQuoteDiscount
- CPQSalesItemDiscount
To add the extension field, you must be in adaptation mode. Complete the follow steps to change to adaptation mode.
- Log into the C4C application.
- Open a quote.
- Select Enter Adaptation Mode under User Profile menu.
- When adaptation mode is on, click Edit Screen.
For more information see, Add Mashups to Custom Sections and Tabs.
Add the CPQQuoteStatus field
To add the CPQQuoteStatus field to your web service, complete the following steps:
- Log into C4C
- Click the Overview tab as shown in the following image:
3. Select the pencil icon.
4. Select Header.
5. Select Add Field
6. Select the Create Fields link.
- In the Field form, provide the following information:
- Select Sales Quote – General Information as Business Context.
- Enter CPQQuoteStatus as the Technical Name.
- Select Text as Type.
- Select Short Text (40) as Sub Type.
- Enter text for Label to display as a tool tip.
- Select Save and Close.
When the new extension field has been added to the UI, you must then include the new extension fields in the web service responses.
To add the CPQQuoteStatus field to your web service, complete the following tasks:
- In C4C, select a quote in the system.
- Set the Adaptation Mode.
- Select the Overview tab.
- Select the pencil icon to select Header.
Select CPQ Quote Status at the bottom right of the Overview tab.
Set the following properties on the right side of the screen in the Personalize section as shown in the following image:
- Hide
- Mandatory
- Read-Only
- Visible
- Select Edit to edit the CPQ Quote Status field.
- Select the Services tab.
- Select Edit.
- Check Field Added to the following service description:
- Sales Quote – General Information
- Select Save.
Add the CPQQuoteDiscount Field
To add the CPQQuoteDiscount field to your web service, complete the following tasks:
- Sign in to C4C.
- Select the Overview tab.
- Select the pencil icon.
- Select Header on the left panel.
- Click Add Field.
- Click Create Fields and provide the following information as shown in the following image:
- Choose Sales Quote – General Information as Business Context.
- .Enter CPQQuoteDiscount as Technical Name.
- Select Decimal Number as Type.
- Enter 3 in the Length field and 2 in Decimal Places.
- Enter Label to display as tool tip.
- Select Save and Close.
When the new extension field is added to the UI, you must then include the field in the web service responses by completing the following steps:
- Select one of the quotes in C4C.
- Set to Adaptation Mode.
- Select the Overview tab.
- Select the pencil icon to select **Header.
- Select CPQ Quote Discount.
- Set the following properties:
- Hide
- Mandatory
- Read-Only
- Visible
- Select Edit to modify the CPQ Quote Discount field.
- Select the Services tab.
- Select Edit.
- Select Field Ad to the following service description:
Sales Quote –General Information - Select Save.
Add the CPQLineItemDiscount field
To add the CPQLineItemDiscount field complete the following steps:
- Sign in to C4C.
- Select the Products tab.
- Select Add Field.
- In the Fields page, select Create Fields.
- In the Create field page, complete the following steps:
- Select Sales Quote – Item as Business Context.
- Enter CPQ LineItemDiscount in the Technical Name field.
- Select Decimal Number as Type.
- Add 3 as Length and 2 as Decimal Places.
- Enter Label to display as Tooltip.
- Select Save and Close.
To add the CPQ LineItemDiscount extension field to the web service, complete the following steps:
- Sign in to C4C.
- Select a quote.
- Select the Products tab.
- Set to Adaptation Mode.
- Select the pencil icon.
- Select CPQ Line Item Discount.
- Set the following properties:
- Unselect Hide.
- Select Visible.
- Select Read-Only.
- Select Edit to modify the CPQ Line Item Discount Field.
- Select the Services tab.
- Select Edit.
- Check Field Added to the following service description:
- Sales Quote – Item
- Select Save.
- Select End Adaptation under User Profile when all the extension fields supported by CPQ have been configured completely.
Assign and update the owner field
When the owner is assigned or deleted in SAP Sales Cloud after a quote is created, the field is automatically updated in CPQ to reflect the changes.
This ensures that the information stays synchronized between both systems, providing real-time updates for a streamlined and consistent experience.
When the owner is assigned or deleted in SAP Sales Cloud after quote creation, the field is updated in CPQ accordingly.