SAP Knowledge Base Article - Public

3603837 - "No suitable value help key field exists" when trying to change the Value Help View of a Custom Field

Symptom

You have created a Custom Field of type "Code List based on CDS View". Now you want to change the Value Help View and you're getting the error message "No suitable value help key field exists" when selecting the new Value Help View. 

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Go to Custom Fields application
  2. Open the Custom Field of type "Code List Based on CDS View" 
  3. Click on the value help on the field "Value Help View" to choose the new view
  4. Choose the new CDS View 
  5. Error message will appear with a red flag

Cause

The Custom CDS View that you're selecting has a different number of Key Fields when comparing to the old Value Help View OR it has the same amount of Key Fields but they have different data type and/or length. 

Resolution

You can change the value help view that you selected even after you've published your custom field. However, that the number of key fields, their data type, and their length have to be kept stable.

Therefore, ensure that this rule is being followed or create a new Custom Field to achieve your requirement. 

See Also

For more information, check the following documentation: Creating a Field of the Type Code List Based on CDS View: Example

Keywords

custom field, value help, code list, based on, cds view, custom cds view, key field, length, value, type, amount, data, not suitable  , KBA , BC-SRV-APS-EXT-FLD , Custom Fields , Problem

Product

SAP S/4HANA Cloud Public Edition all versions