Symptom
Create a custom CDS view based on Pirmary Data source I_UNITOFMEASURE and published it as an external API.
Field UnitOfMeasure_E was selected, however this field was missed in the metadata of the OData service.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create a custom CDS View based on I_UNITOFMEASURE
- Make sure field UnitOfMeasure_E is selected
- Publish the custom CDS view as an external API
- Test this API, the field is not showing in metadata
Cause
@Consumption.hidden: true
Standard data source I_UNITOFMEASURE has this property of consumption.hidden:true for that specific field.
So all the datasources referenced the same field will have this property.
Resolution
Modify the Field Properties and make sure the Hidden property is selected to 'False'.
Keywords
field, property, properties, edit, metadata, showing, hidden, odata service, missed, custom, external , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem