Skip to Content
avatar image
Former Member

Add Annotations to OData Service based on exposed CDS View

Hi Experts,

we have exposed a CDS View via OData Annotation (@OData.publish: true). I know that a lot of annotations for such an OData service can be achieved by using various CDS annotations but how can I add some vocubulary based annotations to such an Odata Service that are not available for CDS yet e.g. a term like "com.sap.vocabularies.Common.v1.ValueList"?

Is there a way to create an OData extension project for these special kind of services? Though the regular extension (with OData Extension Projects in the service builder) technically works I encountered several issues that I couldn't fix.

Regards

Tobias

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Mar 23, 2017 at 10:37 AM

    Dear Tobias,

    you could create an annotation model project in SEGW. In this project you can reference your service and add annotations like in the vocabulary-based annotations service. The annotation model will be also suggested in Web IDE, when you create a new application for your service.

    Best Regards

    Christian Wolter

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 16, 2017 at 01:46 AM

    You can add a local annotation to your package by SAP Web IDE.

    It provides a Annotation Editor.

    Add comment
    10|10000 characters needed characters exceeded