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.
| Parameter | Description |
|---|---|
io_vocan_model | Vocabulary Annotation Model |
iv_namespace | Service Namespace |
iv_entity_name | Name of the Entity |
iv_entity_container | Name of the Entity Container |
ro_odata_annotation | Created annotation instance |
add_property_to_required
Adds a property to the RequiredProperties collection The FilterRestrictions annotation and collection are initialized on demand.
| Parameter | Description |
|---|---|
iv_property_name | Name 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.
| Parameter | Description |
|---|---|
iv_property_name | Name 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.
| Parameter | Description |
|---|---|
ro_record | The FilterRestrictions record instance |
Auto-generated from z_odata_annotations/zcl_odata_annotation_odata.clas.abap