Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP CDS View error with Annotation in Eclipse Editor.

cp08
Explorer
3,469

Hi All,

I am working with the SAP Manual 'Core Data Services for ABAP'(2019), and am developing some custom ABAP CDS Views in Eclipse. I created an ABAP Cloud Project, as i have Eclipse connected to my SCP Foundry ABAP Trial Account. When i use some Annotation in my custom ABAP CDS Views, as instructed by the SAP Manual, i get the following error messages for these Annotations in the Eclipse Editor, as follows:

'Use of Annotation 'ObjectModel.modelCategory' is not permitted (not released)'

'Use of Annotation 'ObjectModel.compositionRoot' is not permitted (not released)'

'Use of Annotation 'ObjectModel.association.type' is not permitted (not released)'

Annotations in my View code:

@ObjectModel.modelCategory: #BUSINESS_OBJECT

@ObjectModel.compositionRoot: true

@ObjectModel.association.type: [#TO_COMPOSITION_CHILD]

fyi....the API State for the Custom CDS View is 'Released'.

Much appreciated if someone could assist?

thanks,

Con.

1 ACCEPTED SOLUTION
Read only

pfefferf
Active Contributor
2,286

The annoations you are using are used by the "ABAP Programming Model for SAP Fiori" which is not released for the ABAP environment on SCP.

On the ABAP environment on SCP the new "ABAP RESTful Application Programming Model" needs to be used, if you want to create business models via CDS.

1 REPLY 1
Read only

pfefferf
Active Contributor
2,287

The annoations you are using are used by the "ABAP Programming Model for SAP Fiori" which is not released for the ABAP environment on SCP.

On the ABAP environment on SCP the new "ABAP RESTful Application Programming Model" needs to be used, if you want to create business models via CDS.