Mentor SAP

@OData.publish: true

 

Used Code

Development flow:

  1. Create CDS view (for example Zsepm_C_Salesorder_Tpl) with annotation:

    @OData.publish: true
  2. Service is generated in the SAP Business Suite back-end system (Zsepm_C_Salesorder_Tpl_CDS)
  3. Service can be published in the SAP Gateway Server

 

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.