What does it do? Annotation for specifying optional properties of a component> in the definition of a DDIC structure using the statement DEFINE STRUCTURE>> in Dictionary DDL >.
In quotation marks, @EndUserText.label> defines the short text of the component> in the original language of the structure.
@AbapCatalog.decfloat.outputStyle> defines the output style> of a decimal floating point number. style> can be specified as:
#NORMAL> - default, mathematical or scientific, depending on space
#SIGN_RIGHT>
#SCALE_PRESERVING>
#SCIENTIFIC>
#SCIENTIFIC_WITH_LEADING_ZERO>
#SCALE_PRESERVING_SCIENTIFIC>
#ENGINEERING>
@Semantics.amount.currencyCode> - Definition of a reference field> for a currency field>. A component comp> with the built-in dictionary type CUKY> from the same or from a different structure struc> must be specified in quotation marks.
@Semantics.quantity.unitOfMeasure> - Definition of a reference field> for a quantity field>. A component comp> with the built-in dictionary type UNIT> from the same or from a different structure struc> must be specified in quotation marks.
Latest notes: The syntax used to specify the properties is based on CDS annotations>. There are, however, no visible associated annotation definitions>. NON_V5_HINTS ABAP_HINT_END
ABAP_EXAMPLE_VX5 Definition of the component weight_unit> as a reference field for the quantity field weight> in the same structure. ... define structure struct { ... @Semantics.quantity.unitOfMeasure : 'struct.weight_unit' weight : abap.quan(2); weight_unit : abap.unit(2); ... }> ABAP_EXAMPLE_END