@OData.publish: true
Used Code
Development flow:
Result
SAP S/4HANA Applications - Example CDS View with Annotations
Example: UI-Specific Annotations
UI-specific annotations are the ones that are easiest to explain. By adding the annotation @UI.selectionField: [ { position: 10 } ] to the CDS source code, a UI element is added to the SAP Fiori elements application that allows the user to filter the result for the company name.
The complete programming model is only planned to be available as of SAP NetWeaver 7.51 SP02. The main component of the programming SAP Fiori programming model, the CDS views, are available with SAP NetWeaver 7.40. Support of BOPF objects started with SAP NetWeaver 7.50. When implementing OData services with SAP Gateway, you should thus try to implement your business logic such that CDS views are leveraged.