SAP Knowledge Base Article - Public

3255128 - No option to change the editability of the Quote Custom Field and Quote Item Custom field in Quote 2.0 tenant via scripting.

Symptom

There seems to be no option to change the Editability of a Quote Item Custom field or of Quote Custom field in Quote 2.0 engine tenants, via scripting.

Environment

SAP SALES CLOUD CPQ

Resolution

  • CPQ doesn't support changing the QICF's (Quote Item Custom Field) editability via scripting in both Quote 1.0 and 2.0 engines.
  • But it is indeed possible to change the editability of custom field in Quote 2.0 engine.
  • Note: In order for this to work, the script including this code below should be attached to "Before quote rendering" Event as a global script.
  • This is the code snippet example of how it should be done for Quote Custom Field:

 

from Scripting.Quote import AccessLevel


context.Quote.GetCustomField("<CF_Name>").AccessLevel = AccessLevel.Editable

Please Note: If customer needs to have editability option for QICFs via scripting, then they need to submit an enhancement request from the Influence portal.

Customer Influence portal is the go-to place for all SAP CPQ customers to share improvement/enhancement ideas for SAP CPQ solution. Customer influence portal also allows other customers to collaborate and contribute with scenarios, ideas, and creative thinking to turn good ideas into great SAP CPQ features. Customers and partners can collaborate with SAP CPQ Product Management in designing new SAP CPQ features.

Keywords

Quote Custom Field, Quote Item Custom field, Quote 2.0 tenant, Custom Field, QICF, editable, editability, Before quote rendering Event, Event trigger, global script, context.Quote, AccessLevel, code snippet, import, Scripting.Quote, limitation, enhancement request, via scripting, ironpython, python , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Problem

Product

SAP CPQ all versions