SAP Knowledge Base Article - Public

3606125 - Quote Table access level change via script

Symptom

Access level set via script for Quote tables doesn't work.

Environment

SAP SALES CLOUD CPQ

Reproducing the Issue

  1. Create a Quote that contains a Quote table with access level as "editable"
  2. Execute following script in script workbench:
    "from Scripting.QuoteTables import AccessLevel
    context.Quote.QuoteTables['Quote_table_name'].AccessLevel = AccessLevel.Hidden
  3. Change won't be reflected in the Quote even with the script working normally.

Cause

The method is designed to provide the ability to change predefined access level settings during the request, right before Quote rendering. Therefore, if quote table access level is changed from the scripting workbench, the access level is updated but the change won't persist. Executing the script again will reload the quote table with the predefined access level settings.

Resolution

"Before quote rendering' global scripting event should be used for the change on the access level to work and persist.

Keywords

Quote, tables, access, level, hidden, editable, readonly, custom, method, script, workbench, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Bug Filed

Product

SAP CPQ 2025