Guide

CDS View Extensions and Custom Fields in SAP S/4HANA

How to extend standard SAP CDS Views using CDS View Extensions and Key User Extensibility without modifying SAP objects.

Why Extend CDS Views?

SAP delivers thousands of standard CDS Views, but businesses often need additional fields, calculated columns, or custom associations. CDS View Extensions allow you to add new elements to existing SAP views without modifying the original code — keeping your system upgrade-safe.

Types of Extensions

Developer Extension (ABAP)

Available in on-premise and ABAP Environment (Steampunk):

  • Create a CDS View Extension using extend view syntax
  • Add new fields, associations, or annotations
  • Requires the target view to have @ObjectModel.extensible: true
extend view I_SalesOrder with ZX_SalesOrder {
    _Extension.CustomField as ZZ_CustomField
}

Key User Extension

Available in SAP S/4HANA Cloud via the Custom Fields app:

  • Non-developer users can add custom fields through a guided UI
  • Fields are added to the underlying CDS Views automatically
  • SAP propagates custom fields through the VDM layers

Extension Points

Not all CDS Views are extensible. SAP marks extensible views with annotations:

  • @AbapCatalog.extensibility.extensible: true — Developer extensible
  • @AbapCatalog.extensibility.dataSources — Defines which extension include views are available

Explore on CDSee