OData FW Logo
API Reference (auto-generated)

ZCL_ODATA_ANNOTAION_SAP

Auto-generated API reference for class ZCL_ODATA_ANNOTAION_SAP

ZCL_ODATA_ANNOTAION_SAP

SAP Annotation namespace

Type: Class

Public Methods

get_annotation_object

Get annotation object

ParameterDescription
ro_annotationAnnotation object

add_date_only_annotation.

Add date only annotation With this annotation the date property will only show a date and not also a time (EDM has no date only type)

add_label_annotation

Add label annoation (is displayed in ui5) Default: the label is coming from the dataelement.

ParameterDescription
iv_label_textLabel text

add_unit_annotation

Add unit annoation The unit is coming from the property that is defined in the property.

ParameterDescription
iv_unitUnit of Measure

add_is_unit_annotation.

Add is unit annoation Add annotation to define it as a unit of measure.

add_required_filter_annotation.

Add required in filter annotation

add_visible_false_annotation.

Add visible = false annotation

create_from_property static

Create from property

ParameterDescription
io_propertyProperty
ro_sap_annotationSAP annotation instance

Exceptions:

  • /iwbep/cx_mgw_med_exception — Annotation couldn't be initialized

Auto-generated from z_odata_annotations/zcl_odata_annotaion_sap.clas.abap