Show TOC

Overwriting Default LabelsLocate this document in the navigation structure

Get information about how to overwrite default labels for SAP Fiori UIs.

If a CDS element is exposed via a dataField-like annotation, the label is by default derived from the CDS annotation @EndUsertText.label if available, or from a DDIC element.

If you want a default label to be overwritten by a specific label, for example Customer instead of Business, you can use the label property.
Sample Code
define view ZExample_SalesOrder as select from sepm_cds_sales_order as so 
  association [0..1] to sepm_cds_business_partner as _BusinessPartner 
    on $projection.buyer_guid = _BusinessPartner.business_partner_key
  key so.sales_order_id as SalesOrder,
  @UI.Identification: [ 
    { value: '_BusinessPartner.company_name', position: 110, label: 'Customer Name' }, 
    { value: '_BusinessPartner.bp_role', position: 120, label: 'Customer Role’ }