Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 05, 2016 at 04:12 PM

    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 ...

    Add comment
    10|10000 characters needed characters exceeded

  • May 06, 2016 at 05:31 AM
    Add comment
    10|10000 characters needed characters exceeded