Symptom
There is a requirement to add or extend custom fields in a Custom CDS View
Environment
SAP S/4HANA Cloud Public Edition
Resolution
To extend a Custom CDS View with custom fields, follow the steps below:
- Open the Custom Fields app.
- Create a custom field using the relevant business context.
- The relevant business catalog can be identified using the following link: CDS Views | SAP S/4HANA Cloud Public Edition | SAP Business Accelerator Hub
- Navigate to the User Interfaces tab.
- Enable the custom field in the corresponding CDS View. (For example, C_SALESORDERQUERY)
- Publish the custom field.
- Use the Custom CDS Views app to extend a Custom CDS View with with the same data source as the CDS View enabled in Custom Fields app. (for example Custom CDS View created with data source I_SalesOrderCube, because it's the data source of C_SALESORDERQUERY)
- The custom field can be found under the Element tab in the Custom CDS Views app.
See Also
Keywords
Custom Fields, CDS View, extensibility, Custom CDS View, Extend Custom Fields for a Custom CDS View, How to add custom field to custom report , KBA , BC-SRV-APS-EXT-FLD , Custom Fields , How To
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public