cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to create a CDS view in Eclipse with Annotation-@VDM.viewType: #BASIC

former_member645632
Discoverer
0 Kudos

Hello all

I have been trying the SAP Cloud Trial Cockpit and started using the Eclipse and creating basic views for testing.

I am trying to create a basic interface view based on the /dmo/flight table

the Annotation @VDM.viewType: #BASIC fails and eclipse suggests that theres no such annotation and its unknown.


as

@AbapCatalog.sqlViewName: 'ZXSHTRAVELM'

@AbapCatalog.compiler.compareFilter: true

@AbapCatalog.preserveKey: true

@AccessControl.authorizationCheck: #NOT_REQUIRED

@EndUserText.label: 'basic interface view'

@VDM.viewType: #BASIC

@Analytics.dataCategory: #DIMENSION

define view zi_travel_m_sodogan as select from /dmo/flight {

key carrier_id,

key connection_id,

key flight_date, price,

@Semantics.currencyCode: true

currency_code,

plane_type_id,

seats_max,

seats_occupied }

Accepted Solutions (0)

Answers (2)

Answers (2)

GK817
Active Contributor

Hi Solen,

This annotation is not yet available in ABAP Cloud, but your CDS view should get created without it. Why do you need it?

I understand that for analytical models, you may need it. I am assuming you are not building the same.

Regards

GK

former_member645632
Discoverer
0 Kudos

Hi

thanks for your response,i appreciate it

I am trying to learn odata via exposing cds through consumption view.

To create a consumption view i need this annotation and mark it as

consumption.

So that i can expose it as an ODATA service

GK817
Active Contributor
0 Kudos

to expose it as odata, you just need @odata.publish = true.

Would like to understand, What is that you will do with view type as consumption that you are not able to do without it. I understand for analytics, you may need it.

GK

former_member269156
Active Participant
0 Kudos

Hi,

VDM has no influence on out put of CDS. This annotation is used to just understand the type of the view.

Thanks,

Raju