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
- Create a Custom Business Object YY1_CBO1. You have checkmarked Can Be Associated in the custom business object you want to associate.
- 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.
- Make an association to a SAP released view in custom CDS view YY1_CDS_VH.
- Navigate to the custom business object YY1_CBO2 in which you want to use the value help view and click on the Fields tab.
- Create a new field FIELD1 or select an already existing field.
- Select the type Association to Business Object and enter the following information: Business Object YY1_CBO1 and Value Help View YY1_CDS_VH.
- 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
Keywords
KBA , BC-SRV-APS-EXT-BO , Custom Tables and Nodes , Problem