SAP Knowledge Base Article - Public

3613453 - How to Extend Custom Fields for a Custom CDS View in SAP S/4HANA Cloud Public Edition

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:

  1. Open the Custom Fields app.
  2. Create a custom field using the relevant business context.
  3. The relevant business catalog can be identified using the following link: CDS Views | SAP S/4HANA Cloud Public Edition | SAP Business Accelerator Hub 
  4. Navigate to the User Interfaces tab.
  5. Enable the custom field in the corresponding CDS View. (For example, C_SALESORDERQUERY)
  6. Publish the custom field.
  7. 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)
  8. The custom field can be found under the Element tab in the Custom CDS Views app.

See Also

SAP S/4HANA Cloud Extensibility for CDS Views on the SAP Business Accelerator Hub

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