Question 1
You want to add a column to the list report table that will display the status of a sales transaction as OK, Warning, or Error. These values should be colored:
OK: green
Warning: Yellow
Error: Red
The field UpdatedStatus has the following values:
'1' = Error
'2' = Warning
'3' = OK
Which of the following ABAP CDS annotation must you add?
The criticality property in @UI.lineItem enables colored status indicators:
Values are interpreted using SAP-defined criticality semantics:
1 = Negative (Red)
2 = Critical (Yellow)
3 = Positive (Green)
SAP Annotations Guide:
''Use criticality in lineItem annotations to enable status coloring for numeric codes representing status.''
Color is not a valid annotation. @UI.selectionField is unrelated to table columns.
