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
| Parameter | Description |
|---|---|
ro_annotation | Annotation 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.
| Parameter | Description |
|---|---|
iv_label_text | Label text |
add_unit_annotation
Add unit annoation The unit is coming from the property that is defined in the property.
| Parameter | Description |
|---|---|
iv_unit | Unit 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
| Parameter | Description |
|---|---|
io_property | Property |
ro_sap_annotation | SAP 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