SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.ABAP Keyword Documentation → ABAP Dictionary → ABAP CDS in ABAP Dictionary → ABAP CDS - Views → ABAP CDS - DDL Statements → ABAP CDS - DEFINE VIEW → ABAP CDS - SELECT → ABAP CDS - SELECT, select_list → ABAP CDS - SELECT, element →
ABAP CDS - element_annot
... @annotation ...
... @<annotation ...
Specifies an annotation annotation in the definition of an element of a SELECT list in a CDS view in ABAP CDS. Annotations can be listed before and after the element.
The table below shows the possible predefined annotations, which can be specified, and their meanings. All other annotations are user-defined annotations.
|EndUserText.label||Character string with maximum 60 characters||Short text describing the element|
|EndUserText.quickInfo||Character string||Tooltip of the element|
|Semantics.amount.currencyCode||Name of an element defined as a currency key||Element is defined as a currency field to which a currency key is assigned|
|Semantics.currencyCode||-||Element is defined as a currency key.|
|Semantics.quantity.unitOfMeasure||Name of an element defined as a unit of measurement key||Element is defined as a quantity field to which a unit of measurement key is assigned|
|Semantics.unitOfMeasure||-||Element is defined as a unit of measurement key|
The first column shows the name of the predefined annotations annotation and the second column shows the possible values value. If nothing is specified for value, the annotation should be specified without a value.
In the CDS view corporation_sales_order, a short text and a tooltip are assigned to the element role. The element currency_code is flagged as a currency key and is assigned as a currency key to the element gross_amount.
For user-defined annotations, see the example under annotations.