We are using an SAP Gateway ODATA service that is generated based on a CDS view. The service metadata provides labels for each property, that are later used as column headers e.g. in fiori apps:
<Property Name="myProperty" Type="Edm.Byte" sap:unit="myUnit" sap:label="myLabel" sap:quickinfo="myInfo"/>
According to this documentation the sap:label is based on the underlying data element, if the property is bound to a data element. However, this blogpost suggests that there is something different when using services based on cds views.
According to the documentation, the label corresponds to the medium-lenght field label of the data element. However, when changing the medium-lenght field label, the sap:label does not get updated, but instead it seems to be bound to the long-lenght field label. When changing the long text, the according sap:label in the metadata is immediatly updated.
I know it is possible to programmatically change the sap:label for the service metadata, but is there any possibility to automatically bind it to the medium lenght text instead of the long text? For example with some annotation?