SAP Knowledge Base Article - Public

3207015 - Adding a Value Help with the Custom CDS Views App

Symptom

  • You want to create a custom Value Help using Custom CDS view app and populate the custom CDS view (type value help) with data from a released SAP view.
  • The data you want to use in the custom CDS view is not released as a target association for Custom Business Objects.
  • You are following documentation Help - Adding a Value Help with the Custom CDS Views App
  • You are following as well other documentation that suggests that you can use a custom value help with an association to a SAP released view in a custom business object.

Environment

S/4HANA Cloud

Reproducing the Issue

  1. Create a Custom Business Object YY1_CBO1. You have checkmarked Can Be Associated in the custom business object you want to associate.
  2. Create a custom CDS view YY1_CDS_VH as explained in Creating Custom CDS Views. Is is recommended to select the Value Help scenario. You have used the associated custom business object view YY1_CBO1 as Primary Data Source.
  3. Make an association to a SAP released view in custom CDS view YY1_CDS_VH.
  4. Navigate to the custom business object YY1_CBO2 in which you want to use the value help view and click on the Fields tab.
  5. Create a new field FIELD1 or select an already existing field.
  6. Select the type Association to Business Object and enter the following information: Business Object YY1_CBO1 and Value Help View YY1_CDS_VH.
  7. Publish your custom business object YY1_CBO2.

Accessing the generated UI based on custom business object YY1_CBO2, it is not supported to populate FIELD1 with the entries from the associated data source in YY1_CDS_VH

Cause

The value help pulls from the CDS View primary datasource and not associated datasource.

Resolution

The purpose of the "Association to Business Object" field type feature for Custom Business Objects is selecting a dataset from the associated business object, be it a custom or standard one, but not from any otherwise associated data sources.

Adding data to a Custom Business Object via an association in a custom CDS view (type value help) is not supported.

See Also

> Help - Adding a Value Help with the Custom CDS Views App

Keywords

KBA , BC-SRV-APS-EXT-BO , Custom Tables and Nodes , Problem

Product

SAP S/4HANA Cloud 2202