cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I find resources and tutorials for creating a CDS view and expose it as a BOPF and the OData?

Former Member
0 Kudos

Hi all,

I'm in trying to find out how to create a CDS View and then expose it as a BOPF and then exposing that via OData.

Thanks,

Jian

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182874
Active Contributor
0 Kudos
dirk_roeckmann
Participant
0 Kudos

Hi Jian,

please try with the following annotations in ADT:

@AbapCatalog.sqlViewName: 'ZSUNAMETEST'

@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #NOT_REQUIRED

@EndUserText.label: 'Uname Test'

@ObjectModel.compositionRoot: true

@ObjectModel.writeEnabled: true

@ObjectModel.createEnabled: true

@ObjectModel.updateEnabled: true

@ObjectModel.writeActivePersistence: 'usr02'

@OData.publish: true

This will create a BOPF object which then can further be refined by an implementation class. Hope that helps ...