• No results found

SAP Cloud for Customer Integration Troubleshooting

1 Integrations Troubleshooting

1.4 SAP Cloud for Customer Integration Troubleshooting

This section provides more information about common issues that may occur when SAP CPQ is integrated with SAP Cloud for Customer, and when using the SAP Cloud for Customer IFlow on SAP Cloud Integration as middleware for other integrations.

1. The IFlow defined on SAP Cloud Integration for the integration SAP CPQ - SAP Cloud for Customer is used as middleware for API calls in an integration with another CRM.

getQuoteContent

API is used for fetching the quote content and the endpoint in Providers is set up accordingly. However, the log shows that SAP CPQ is calling the

getoppdetailsfornewquote

API instead. What may be the cause of this?

To solve this, remove the opportunity ID from the URL and the getQuoteContent API will be used. SAP CPQ is calling the getoppdetailsfornewquote API because the opportunity ID is passed within the URL to SAP

CPQ. Currently, SAP CPQ has two integrations with SAP Cloud for Customer. In the legacy integration, users land to SAP CPQ from an opportunity, while in the new integration, users land to SAP CPQ from a sales quote.

Consequently, if the opportunity ID is passed to SAP CPQ, the system automatically calls the getoppdetailsfornewquote API used in the legacy integration.

2. Why is custom field data missing in SAP CPQ on quote creation?

If data is missing on quote creation, make sure that all the necessary custom fields are created on the SAP CPQ side. See Field Mapping.

3. The error message (500) Internal Server Error appears when landing to SAP CPQ. What is causing this?

This error most likely occurs on the SAP Cloud Integration side. You should check which endpoint is set for the Replicate Quote to SAP CPQ artifact and check the logs for the artifact. On the SAP CPQ side, verify that the same endpoint is set in Setup Providers Providers SAP Cloud Platform in C4C CRM Setttings and that the REST API base URL address has the correct SAP Cloud Integration base URL set as a value in Common Settings.

4. When creating a new sales quote or editing an existing one in SAP Cloud for Customer, the SAP CPQ IFrame can't be loaded and the quote can't be accessed. How can this be fixed?

Two scenarios are possible here depending on the exact error:

1. If, in the browser console (F12), the following error message appears: Refused to frame 'https://

dev.webcomcpq.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' *.dev.sapbydesign.com *.crm.ondemand.com *.c4c.sapbybriscloud.cn *.visual.force.com", the issue is that SAP CPQ is not allowed to load in SAP Cloud for Customer. To fix this, go to Setup General Application Parameters Security and edit the application parameter URLs that may Embed CPQ so that it includes the SAP Cloud for Customer domain.

For example, if the SAP Cloud for Customer URL is https://my311386-sso.vlab.sapbydesign.com/, you should change the parameter value from:

*.dev.sapbydesign.com *.crm.ondemand.com *.c4c.sapbybriscloud.cn

*.visual.force.com to: *.dev.sapbydesign.com *.crm.ondemand.com

*.c4c.sapbybriscloud.cn *.visual.force.com *.vlab.sapbydesign.com.

2. If, in the browser console (F12), the following error message appears: Refused to display <url> in a frame because ‘X-Frame-Options’ is set to ‘deny’. check the URL in the error message. If the URL contains a SAMLRequest parameter or anything related to SAML, that is probably the URL to the Identity Provider, such as ADFS or SAP ID. The Identity Provider is used when federated single sign-on is enabled, and it verifies whether the SAP Cloud for Customer user can be authenticated in SAP CPQ. In this case, it is necessary to review Identity Provider settings (see Federation Settings) and allow the Identity Provider URL to load in an IFrame.

Here is an example of such a URL: https://login.microsoftonline.com/0e17f90f-88a3-4f93- a5d7-cc847cff307e/saml2?SAMLRequest=jZJNT%2BMwFEX%2FSmTWjh07NInVmore%23rsa-sha256&Signature=YkzxFF5dzOyO%2BZh7FS69eQ7y

Error Diagnostics - SAP Cloud for Customer Integration [page 10]

If there is an error when saving a new sales quote in SAP Cloud for Customer while landing to SAP CPQ, or if you want to see the payload received in SAP CPQ, use the Developer Console to troubleshoot the communication between SAP CPQ and SAP Cloud for Customer or SAP Cloud Integration.

SAP CPQ Troubleshooting

Integrations Troubleshooting PUBLIC 9

1.4.1 Error Diagnostics - SAP Cloud for Customer Integration

If there is an error when saving a new sales quote in SAP Cloud for Customer while landing to SAP CPQ, or if you want to see the payload received in SAP CPQ, use the Developer Console to troubleshoot the

communication between SAP CPQ and SAP Cloud for Customer or SAP Cloud Integration.

Procedure

1. At least once, land from SAP Cloud for Customer to SAP CPQ, so that you get logged in (even if there is an error on landing).

2. In another tab of the same browser window, open the SAP CPQ environment with which the SAP Cloud for Customer environment is integrated.

3. Open the Developer Console in SAP CPQ in full mode.

4. In the browser tab where SAP Cloud for Customer is open, try to open the sales quote again.

5. In the browser tab where the Developer Console is open, find the action Proceed to Quote.

6. In the filter field Logger, use SAPCommunicator.

7. Click the Info icon next to the highlighted message.

You are now able to see the data SAP CPQ received from SAP Cloud for Customer.

SAP CPQ Troubleshooting

Integrations Troubleshooting PUBLIC 11

Related documents