SAP Knowledge Base Article - Public

3213932 - Getting REST Error While Updating The Extenstion Field From Guided Selling / ISE

Symptom

When you try to update the KUT field from GS/ISE, system is throwing error message "REST error from opportunity OData service: 400 bad request".

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP Cloud for customer

Reproducing the Issue

  1. Go to Sales workcenter
  2. Go to Guided Selling view
  3. Open any opportunity 
  4. Update the extension field
    Getting the error message: "REST error from opportunity OData service: 400 bad request".

Cause

The extension field is not added in C4C opportunity ODATA.

Resolution

Any updates from CNS to C4C  (e.g. update of fields in guided selling / ISE) happens via a synchronous OData call to C4C opportunity.

This means that all fields in GS/ISE should be there in C4C opportunity ODATA.  For standard fields this is handled by SAP.  However for custom fields, customer has to make an additional configuration update via adaptation mode.  Field need to be enabled in Odata for opportunity.

If this is not done, if try to update the extension field from GS/ISE,  System will throw an error like mentioned in the steps to reproduce.

To add field in the C4C opportunity OData, please follow the below steps:

  1. Select the extension field in the Adaptation 
  2. Click on Edit in the adaptation 
  3. Go to OData Services tab 
  4. Enable the field for Opportunity by checking the checkbox Field Added.
  5. Save 

Keywords

 REST error from opportunity OData service: 400 bad request , KBA , rest error from opportunity odata servic , LOD-CRM-SBS-GS , Guided Selling and Playbook , LOD-CRM-OPP , Opportunity Management , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions