OData FW Logo
API Reference (auto-generated)

ZCL_ODATA_ANNOTATION_ODATA

Auto-generated API reference for class ZCL_ODATA_ANNOTATION_ODATA

ZCL_ODATA_ANNOTATION_ODATA

SAP OData Capabilities annotation More information: https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Capabilities.V1.html

Type: Class

Public Methods

create static

Creates an instance for a specific entity set Initializes the vocabulary reference and sets the annotation target for the entity set.

ParameterDescription
io_vocan_modelVocabulary Annotation Model
iv_namespaceService Namespace
iv_entity_nameName of the Entity
iv_entity_containerName of the Entity Container
ro_odata_annotationCreated annotation instance

add_property_to_required

Adds a property to the RequiredProperties collection The FilterRestrictions annotation and collection are initialized on demand.

ParameterDescription
iv_property_nameName of the property (or Nav-Prop)

add_property_to_non_filterable

Adds a property to the NonFilterableProperties collection Use this to hide properties or navigation properties from the filter bar. The FilterRestrictions annotation and collection are initialized on demand.

ParameterDescription
iv_property_nameName of the property (or Nav-Prop)

Private Methods

get_filter_record

Lazy-loading for the FilterRestrictions record Ensures the annotation and record are only created if at least one property is added.

ParameterDescription
ro_recordThe FilterRestrictions record instance

Auto-generated from z_odata_annotations/zcl_odata_annotation_odata.clas.abap