Ansicht
Dokumentation

ABENCDS_ELEMENT_ANNOTATIONS_V2 - CDS ELEMENT ANNOTATIONS V2

ABENCDS_ELEMENT_ANNOTATIONS_V2 - CDS ELEMENT ANNOTATIONS V2

rdisp/max_wprun_time - Maximum work process run time   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

- CDS View Entity, SELECT, element_annot

... @annotation ...

Effect

Specifies an annotation annotation in the definition of an element of a SELECT list in a CDS view entity as element annotation. Element annotations must be specified before the element they belong to, and the character @ must be placed in front of the name annotation of the annotation.

For CDS view entities, there are strict checks that all element annotations used must be defined as a CDS object in a CDS annotation definition. Otherwise, a syntax error occurs.

All available element annotations are listed in topic element_annot.

Example

In the CDS view entity DEMO_SALES_CDS_ELEM_ANNOT, a short text and a tooltip are assigned to the element given_name.

Example

This example demonstrates how element annotations are passed on between views via CDS associations. The following CDS view entity defines and exposes a CDS association _some_assoc:

A further CDS view entity accesses the view and also exposes the CDS association. Here, the annotation @EndUserText.label is inherited.

The following CDS view entity defines and exposes its own CDS association _some_assoc. In this case, the CDS annotation @EndUserText.label is not inherited.

If the CDS association _some_assoc was exposed from DEMO_CDS_ASSOC_ANNO2_VE instead of or in addition to _some_assoc by specifying the name Demo_Cds_Assoc_Anno2_ve._some_assoc explicitly, the annotation would be inherited again. The program DEMO_CDS_ASSOC_ANNO_VE evaluates the annotations of both views. No local element annotations are defined for the locally defined association _some_assoc of the view DEMO_CDS_ASSOC_ANNO1_LOC_VE, which means that the result for this CDS association is empty.






RFUMSV00 - Advance Return for Tax on Sales/Purchases   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 4180 Date: 20240427 Time: 055302     sap01-206 ( 53 ms )