cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

2511 - Dynamic Quote Item Custom Field Access Control unexpected behavior

SAPSupport
Employee
Employee
0 Kudos
106

When using the SetColumnAccessLevel method with the Hidden option, only the fields in that column get "hidden" (they show up blank), but the column is still visible on the quote. This is not the desired behavior as the column should disappear from the quote if all of its fields are hidden.

--- Steps to Reproduce ---

  1. Open the Quote Item Custom Fields Access Permission scripting window under Field Editability.
  2. Enter the code below, replacing the quote item custom field name of your choosing and save.
  3. Open a quote where your chosen custom field was previously visible.
  4. Note that the column is still visible on the quote.

 

Code:

from Scripting.Quote import QuoteFieldAccessLevel

QuoteFieldAccessContext.SetColumnAccessLevel('my_quote_item_custom_field', QuoteFieldAccessLevel.Hidden)

 


------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee
0 Kudos

By using the hidden option, we can just hide the values, and the column won't be removed if it's empty.

The column can only be managed through the quote layout.

As the help document Dynamic Access Control for Quote Item Custom Fields | SAP Help Portal states, "Accessing Quote Item Custom Fields via scripting lets you dynamically set permissions for these fields. You can control their editability, read-only status, and visibility.

Answers (0)