Show TOC

Defining Criticality of Field ValuesLocate this document in the navigation structure

Get information about how to define the criticality of field values for SAP Fiori UIs.

To define if a field value is negative, critical, or positive, you can use the criticality property of dataField-like annotations. This property must refer to a CDS element that has the value 1 (negative), 2 (critical), or 3 (positive).
Sample Code
...
define view ZExample_SalesOrder as select from sepm_cds_sales_order as so {
	@UI.identification: [ { position: 10, importance: #HIGH } ]
	key so.sales_order_id as SalesOrder,

	...

	@UI.statusInfo: [ { position: 10, criticality: 'GrossAmountCrit' } ]
	so.billing_status as BillingStatus,

	so.billing_status_crit as BillingStatusCrit,

	...
}